Class ExecutionUtils
java.lang.Object
org.aksw.jena_sparql_api.conjure.dataset.engine.ExecutionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Set<org.apache.jena.rdf.model.Resource>clear(org.apache.jena.rdf.model.Model model, org.apache.jena.rdf.model.Property property) static StringcreateDefaultJobHash(Job job) Create a hash for a given job Note, that this does not take any variable substitutions into account TODO The method should in addition to the hash return a label for the hash method usedstatic org.apache.jena.rdf.model.ResourcecreateProvenanceData(Job job, org.apache.jena.rdf.model.Resource inputRecord) static StringderiveId(org.apache.jena.rdf.model.Resource r) Create an Id from a given resource with the following precedence of preferences: - maven identifier - URI - generic hashstatic RdfDataPodexecuteJob(Op op) Execute a basic workflowstatic DcatDatasetexecuteJob(Job job, TaskContext taskContext, HttpResourceRepositoryFromFileSystem repo, ResourceStore cacheStore, ConjureFormatConfig formatConfig) Execute a job and return a dcat model of the resultstatic RdfDataPodexecuteJob(Job job, HttpResourceRepositoryFromFileSystem repo, TaskContext taskContext, org.apache.jena.rdf.model.Resource inputRecord, org.apache.jena.riot.RDFFormat persistRdfFormat) TODO The result of this computation are two datasets: The result dataset and its dcat record dataset.static org.apache.jena.rdf.model.Propertystatic voidtoPlaceholder(org.apache.jena.rdf.model.Model model, org.apache.jena.rdf.model.Property property, String placeholderUri)
-
Constructor Details
-
ExecutionUtils
public ExecutionUtils()
-
-
Method Details
-
deriveId
Create an Id from a given resource with the following precedence of preferences: - maven identifier - URI - generic hash- Parameters:
r-- Returns:
-
createDefaultJobHash
Create a hash for a given job Note, that this does not take any variable substitutions into account TODO The method should in addition to the hash return a label for the hash method used- Parameters:
job-- Returns:
-
executeJob
Execute a basic workflow- Parameters:
op-- Returns:
- Throws:
IOException
-
executeJob
public static DcatDataset executeJob(Job job, TaskContext taskContext, HttpResourceRepositoryFromFileSystem repo, ResourceStore cacheStore, ConjureFormatConfig formatConfig) Execute a job and return a dcat model of the result- Parameters:
job-taskContexts-repo-cacheStore-- Returns:
-
executeJob
public static RdfDataPod executeJob(Job job, HttpResourceRepositoryFromFileSystem repo, TaskContext taskContext, org.apache.jena.rdf.model.Resource inputRecord, org.apache.jena.riot.RDFFormat persistRdfFormat) TODO The result of this computation are two datasets: The result dataset and its dcat record dataset. How to chache that? - Cache both - if so: What to use as the id of the metadata? Maybe $classifier$ + -meta? - Cache only the result dataset -- Parameters:
job-repo-taskContext-inputRecord-- Returns:
-
toPlaceholder
public static void toPlaceholder(org.apache.jena.rdf.model.Model model, org.apache.jena.rdf.model.Property property, String placeholderUri) -
clear
public static Set<org.apache.jena.rdf.model.Resource> clear(org.apache.jena.rdf.model.Model model, org.apache.jena.rdf.model.Property property) -
createProvenanceData
public static org.apache.jena.rdf.model.Resource createProvenanceData(Job job, org.apache.jena.rdf.model.Resource inputRecord) -
prov
-