Package se.liu.ida.hefquin.cli
Class RunQueryWithoutSrcSel
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.RunQueryWithoutSrcSel
public class RunQueryWithoutSrcSel
extends arq.cmdline.CmdARQ
A command-line tool that executes SPARQL queries using the HeFQUIN federation
engine without source selection. This class extends
CmdARQ for query
processing, execution, and result handling within the HeFQUIN system. It also
supports printing various statistics about query execution and federation
access.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.jena.cmd.ArgDeclprotected final org.apache.jena.cmd.ArgDeclprotected final org.apache.jena.cmd.ArgDeclprotected final org.apache.jena.cmd.ArgDeclprotected final org.apache.jena.cmd.ArgDeclprotected final ModEngineConfigprotected final ModFederationprotected final ModPlanPrintingprotected final ModQueryprotected final arq.cmdline.ModResultsOutprotected final arq.cmdline.ModTimeFields 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
ConstructorsConstructorDescriptionRunQueryWithoutSrcSel(String[] argv) Constructor that initializes the command-line tool with necessary argument modules for speciffying, e.g., federation configuration, engine configuration, and output format. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexec()Executes the query using the HeFQUIN federation engine and handles the results and statistics.protected StringReturns the command name used to invoke the tool.protected org.apache.jena.query.QuerygetQuery()Rturns the SPARQL query to be executed.protected StringReturns the usage summary string of the command, showing the required arguments.static voidMain entry point of the tool, accepting command-line arguments to specify the query, configuration, and output format.Methods inherited from class arq.cmdline.CmdARQ
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, 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, toStringMethods inherited from class org.apache.jena.cmd.CommandLineBase
apply, getArg, getArgList, setArgs
-
Field Details
-
modTime
protected final arq.cmdline.ModTime modTime -
modQuery
-
modFederation
-
modPlanPrinting
-
modResults
protected final arq.cmdline.ModResultsOut modResults -
modEngineConfig
-
argSuppressResultPrintout
protected final org.apache.jena.cmd.ArgDecl argSuppressResultPrintout -
argSkipExecution
protected final org.apache.jena.cmd.ArgDecl argSkipExecution -
argQueryProcStats
protected final org.apache.jena.cmd.ArgDecl argQueryProcStats -
argOnelineTimeStats
protected final org.apache.jena.cmd.ArgDecl argOnelineTimeStats -
argFedAccessStats
protected final org.apache.jena.cmd.ArgDecl argFedAccessStats
-
-
Constructor Details
-
RunQueryWithoutSrcSel
Constructor that initializes the command-line tool with necessary argument modules for speciffying, e.g., federation configuration, engine configuration, and output format.- Parameters:
argv- Command-line arguments.
-
-
Method Details
-
main
Main entry point of the tool, accepting command-line arguments to specify the query, configuration, and output format.- Parameters:
argv- Command-line arguments.
-
getSummary
Returns the usage summary string of the command, showing the required arguments.- Specified by:
getSummaryin classorg.apache.jena.cmd.CmdGeneral- Returns:
- A string that describes the usage of the command.
-
getCommandName
Returns the command name used to invoke the tool.- Overrides:
getCommandNamein classarq.cmdline.CmdARQ- Returns:
- The name of the command.
-
exec
protected void exec()Executes the query using the HeFQUIN federation engine and handles the results and statistics.- Specified by:
execin classorg.apache.jena.cmd.CmdMain
-
getQuery
protected org.apache.jena.query.Query getQuery()Rturns the SPARQL query to be executed.- Returns:
- the
Queryobject - Throws:
org.apache.jena.cmd.TerminationException- if the query file could not be found
-