Class ExecutionUtils

java.lang.Object
org.aksw.jena_sparql_api.conjure.dataset.engine.ExecutionUtils

public class ExecutionUtils extends Object
  • Constructor Details

    • ExecutionUtils

      public ExecutionUtils()
  • Method Details

    • deriveId

      public static String deriveId(org.apache.jena.rdf.model.Resource r)
      Create an Id from a given resource with the following precedence of preferences: - maven identifier - URI - generic hash
      Parameters:
      r -
      Returns:
    • createDefaultJobHash

      public static String createDefaultJobHash(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 used
      Parameters:
      job -
      Returns:
    • executeJob

      public static RdfDataPod executeJob(Op op)
      Execute a basic workflow
      Parameters:
      op -
      Returns:
      Throws:
      IOException
    • executeJob

      public static org.aksw.dcat.jena.domain.api.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

      public static org.apache.jena.rdf.model.Property prov(String name)