Interface Job
- 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 TypeMethodDescriptiondefault JobaddJobBinding(String varName, OpTraversal traversal) default JobParamstatic Jobcreate(org.apache.jena.rdf.model.Model model) static JobExperimental; Express that the output of applying this transformation conforms to one ore more certain specifications, such as VoID.Return a view of only the variable namesSpecification 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 bindinggetOp()Explicitly declared variables for the job.getTag()Experimental; A short handle which can be used to tag output generated by this job; e.g.setJobBindings(List<JobBinding> bindings) setJobName(String name) setOpVars(Collection<String> varNames) Methods inherited from interface org.apache.jena.graph.FrontsNode
asNodeMethods inherited from interface org.apache.jena.rdf.model.RDFNode
as, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isStmtResource, isURIResource, visitWithMethods 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, getStmtTerm, 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
-
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
Return a view of only the variable names -
addNewParam
-
getOpVars
-
setOpVars
-
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
-
getJobName
String getJobName() -
setJobName
-
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
-
getConformances
Experimental; Express that the output of applying this transformation conforms to one ore more certain specifications, such as VoID. -
addJobBinding
-
create
-
create
-