Class ExternalIntegrationDemo
java.lang.Object
org.apache.jena.cmd.CommandLineBase
org.apache.jena.cmd.CmdLineArgs
org.apache.jena.cmd.CmdMain
org.apache.jena.cmd.CmdArgModule
org.apache.jena.cmd.CmdGeneral
arq.cmdline.CmdARQ
se.liu.ida.hefquin.cli.ExternalIntegrationDemo
public class ExternalIntegrationDemo
extends arq.cmdline.CmdARQ
The purpose of this class is to demonstrate how the HeFQUIN engine can be
used directly within the Java code of other Java projects. The relevant
functions to look at are
execWithHeFQUIN1(String, Query) and
execWithHeFQUIN2(String, Query).-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.jena.cmd.ArgDeclprotected final org.apache.jena.cmd.ArgDeclFields inherited from class arq.cmdline.CmdARQ
cmdStrictMode, modContextFields inherited from class org.apache.jena.cmd.CmdGeneral
cmdName, modGeneral, modVersionFields inherited from class org.apache.jena.cmd.CmdLineArgs
argMap, args, positionals -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexec()protected voidexecWithHeFQUIN1(String fedDescrFile, org.apache.jena.query.Query query) This function demonstrates how to use the HeFQUIN engine if you simply want the result of each query printed to some output stream, including stdout.protected voidexecWithHeFQUIN2(String fedDescrFile, org.apache.jena.query.Query query) This function demonstrates how to use the HeFQUIN engine if you want to process the query result with your program.protected Stringstatic voidMethods inherited from class arq.cmdline.CmdARQ
getCommandName, processModulesAndArgsMethods inherited from class org.apache.jena.cmd.CmdGeneral
add, addModule, getUsage, help, isDebug, isQuiet, isVerbose, printHelp, usage, usageMethods inherited from class org.apache.jena.cmd.CmdArgModule
processMethods inherited from class org.apache.jena.cmd.CmdMain
cmdError, cmdError, mainAndExit, mainMethod, mainRun, mainRun, mainRunMethods inherited from class org.apache.jena.cmd.CmdLineArgs
add, add, add, addArg, addArg, addPositional, clear, contains, contains, containsMultiple, containsMultiple, getArg, getArg, getNumPositional, getPositional, getPositionalArg, getPositionalOrStdin, getValue, getValue, getValues, getValues, handleUnrecognizedArg, hasArg, hasArg, hasArgs, hasPositional, hasValueOfFalse, hasValueOfTrue, indirect, indirect, matchesIndirect, matchesIndirect, removeArg, removeArg, removeArgAll, reset, toStringMethods inherited from class org.apache.jena.cmd.CommandLineBase
apply, getArg, getArgList, setArgs
-
Field Details
-
argQuery
protected final org.apache.jena.cmd.ArgDecl argQuery -
argFedDescr
protected final org.apache.jena.cmd.ArgDecl argFedDescr
-
-
Constructor Details
-
ExternalIntegrationDemo
-
-
Method Details
-
main
-
getSummary
- Specified by:
getSummaryin classorg.apache.jena.cmd.CmdGeneral
-
exec
protected void exec()- Specified by:
execin classorg.apache.jena.cmd.CmdMain
-
execWithHeFQUIN1
This function demonstrates how to use the HeFQUIN engine if you simply want the result of each query printed to some output stream, including stdout. -
execWithHeFQUIN2
This function demonstrates how to use the HeFQUIN engine if you want to process the query result with your program. The implementation here simply prints the result to stdout, but you can also use it in any other way.
-