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

    Fields
    Modifier and Type
    Field
    Description
    protected final org.apache.jena.cmd.ArgDecl
     
    protected final org.apache.jena.cmd.ArgDecl
     

    Fields inherited from class arq.cmdline.CmdARQ

    cmdStrictMode, modContext

    Fields inherited from class org.apache.jena.cmd.CmdGeneral

    cmdName, modGeneral, modVersion

    Fields inherited from class org.apache.jena.cmd.CmdLineArgs

    argMap, args, positionals
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
    execWithHeFQUIN1(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 void
    execWithHeFQUIN2(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 String
     
    static void
    main(String[] argv)
     

    Methods inherited from class arq.cmdline.CmdARQ

    getCommandName, processModulesAndArgs

    Methods inherited from class org.apache.jena.cmd.CmdGeneral

    add, addModule, getUsage, help, isDebug, isQuiet, isVerbose, printHelp, usage, usage

    Methods inherited from class org.apache.jena.cmd.CmdArgModule

    process

    Methods inherited from class org.apache.jena.cmd.CmdMain

    cmdError, cmdError, mainAndExit, mainMethod, mainRun, mainRun, mainRun

    Methods 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, toString

    Methods inherited from class org.apache.jena.cmd.CommandLineBase

    apply, getArg, getArgList, setArgs

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • argQuery

      protected final org.apache.jena.cmd.ArgDecl argQuery
    • argFedDescr

      protected final org.apache.jena.cmd.ArgDecl argFedDescr
  • Constructor Details

    • ExternalIntegrationDemo

      public ExternalIntegrationDemo(String[] argv)
  • Method Details

    • main

      public static void main(String[] argv)
    • getSummary

      protected String getSummary()
      Specified by:
      getSummary in class org.apache.jena.cmd.CmdGeneral
    • exec

      protected void exec()
      Specified by:
      exec in class org.apache.jena.cmd.CmdMain
    • execWithHeFQUIN1

      protected void execWithHeFQUIN1(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.
    • execWithHeFQUIN2

      protected void execWithHeFQUIN2(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. The implementation here simply prints the result to stdout, but you can also use it in any other way.