Class JobUtils

java.lang.Object
org.aksw.jena_sparql_api.conjure.fluent.JobUtils

public class JobUtils extends Object
  • Constructor Details

    • JobUtils

      public JobUtils()
  • Method Details

    • listJobs

      public static List<Job> listJobs(org.apache.jena.rdf.model.Model model)
    • getOnlyJob

      public static Job getOnlyJob(org.apache.jena.rdf.model.Model model)
    • fromSparqlStmts

      public static Job fromSparqlStmts(Collection<org.aksw.jenax.stmt.core.SparqlStmt> stmts, Set<String> optionalArgs, Map<org.apache.jena.sparql.core.Var,org.apache.jena.sparql.expr.Expr> varToExpr)
      Create a job to derive a new dataset using a set of sparql construct statements. (Update statements could be made part of the workflow but are not supported by this method yet) The OpVar placeholder for the input dataset is "ARG".
      Parameters:
      stmts -
      optionalArgs -
      varToExpr -
      Returns:
    • fromSparqlFile

      public static Job fromSparqlFile(String path) throws FileNotFoundException, IOException
      Throws:
      FileNotFoundException
      IOException
    • createJobInstanceWithCopy

      public static JobInstance createJobInstanceWithCopy(Job job, Map<String,? extends org.apache.jena.graph.Node> env, Map<String,? extends Op> map)
    • createJobInstance

      public static JobInstance createJobInstance(Job job, Map<String,? extends org.apache.jena.graph.Node> env, Map<String,? extends Op> map)
      Create a job instance in the same model as the job
      Parameters:
      job -
      env -
      map -
      Returns:
    • materializeJobInstance

      public static Op materializeJobInstance(JobInstance jobInstance)
      Return the associated op with all all variables (literals and resources) substituted
      Parameters:
      jobInstance -
      Returns: