Class DcatUtils

java.lang.Object
org.aksw.dcat.jena.domain.api.DcatUtils

public class DcatUtils extends Object
  • Constructor Details

    • DcatUtils

      public DcatUtils()
  • Method Details

    • getFirstDownloadUrlFromDistribution

      public static String getFirstDownloadUrlFromDistribution(org.apache.jena.rdf.model.Resource dcatDistribution)
    • getFirstDownloadUrl

      public static String getFirstDownloadUrl(org.apache.jena.rdf.model.Resource dcatDataset)
    • resolveDistributions

      public static Set<? extends DcatDistribution> resolveDistributions(org.apache.jena.rdf.model.Resource res)
      Attempt to resolve the given resource to the set of related distributions. The result of the first matching rule is returned: - The singleton set of the given resource itself if it appears as a distribution of a dataset - The set of distributions having the given resource as a download URL. - The set of distributions of the resource interpreted as a dcat dataset
      Parameters:
      res -
      Returns:
    • resolveDistribution

      public static DcatDistribution resolveDistribution(org.apache.jena.rdf.model.Resource res)
    • getRelatedId

      public static org.apache.jena.rdf.model.Resource getRelatedId(DcatDistribution distribution, DcatIdType idType)
    • getRelatedIds

      public static Set<? extends org.apache.jena.rdf.model.Resource> getRelatedIds(DcatDistribution distribution, DcatIdType idType)