All Superinterfaces:
org.apache.jena.graph.FrontsNode, org.apache.jena.rdf.model.RDFNode, org.apache.jena.rdf.model.Resource

public interface Job extends org.apache.jena.rdf.model.Resource
A Job corresponds to a Job in spring / java batch terminology It is comprised of - an operator expression - a binding - a specification for how to process an input resource into job parameters
Author:
raven
  • Method Summary

    Modifier and Type
    Method
    Description
    default Job
    addJobBinding(String varName, OpTraversal traversal)
     
    default JobParam
     
    static Job
    create(org.apache.jena.rdf.model.Model model)
     
    static Job
    create(org.apache.jena.rdf.model.Model model, String jobName)
     
    Experimental; Express that the output of applying this transformation conforms to one ore more certain specifications, such as VoID.
    default Iterable<String>
    Return a view of only the variable names
    Specification of a mapping from resource to literal in order to create binding of the job's variables to values based on a another resource TODO Probably this should go to a higher level class that combines a job with a default binding
     
     
     
    Explicitly declared variables for the job.
    Experimental; A short handle which can be used to tag output generated by this job; e.g.
     
     
    setOp(Op op)
     
     
    setTag(String name)
     

    Methods inherited from interface org.apache.jena.graph.FrontsNode

    asNode

    Methods inherited from interface org.apache.jena.rdf.model.RDFNode

    as, asLiteral, asResource, asStatementTerm, canAs, getModel, isAnon, isLiteral, isResource, isStatementTerm, isURIResource, visitWith

    Methods inherited from interface org.apache.jena.rdf.model.Resource

    abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, removeAll, removeProperties, toString
  • Method Details

    • getOp

      Op getOp()
    • setOp

      Job setOp(Op op)
    • getParams

      Set<JobParam> getParams()
      Explicitly declared variables for the job. Can be automatically derived from certain jobs, such as ones making use of placeholders in sparql quries. (TODO add link to util method), An explicit description is always useful.
      Returns:
    • getDeclaredVars

      default Iterable<String> getDeclaredVars()
      Return a view of only the variable names
    • addNewParam

      default JobParam addNewParam()
    • getOpVars

      Set<String> getOpVars()
    • setOpVars

      Job setOpVars(Collection<String> varNames)
    • getJobBindings

      List<JobBinding> getJobBindings()
      Specification of a mapping from resource to literal in order to create binding of the job's variables to values based on a another resource TODO Probably this should go to a higher level class that combines a job with a default binding
      Returns:
    • setJobBindings

      Job setJobBindings(List<JobBinding> bindings)
    • getJobName

      String getJobName()
    • setJobName

      Job setJobName(String name)
    • getTag

      String getTag()
      Experimental; A short handle which can be used to tag output generated by this job; e.g. useful as suffixes in generated files inputFile.{tag}.ttl
    • setTag

      Job setTag(String name)
    • getConformances

      Set<String> getConformances()
      Experimental; Express that the output of applying this transformation conforms to one ore more certain specifications, such as VoID.
    • addJobBinding

      default Job addJobBinding(String varName, OpTraversal traversal)
    • create

      static Job create(org.apache.jena.rdf.model.Model model)
    • create

      static Job create(org.apache.jena.rdf.model.Model model, String jobName)