Package org.aksw.dcat.jena.domain.api
Class DcatUtils
java.lang.Object
org.aksw.dcat.jena.domain.api.DcatUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetFirstDownloadUrl(org.apache.jena.rdf.model.Resource dcatDataset) static StringgetFirstDownloadUrlFromDistribution(org.apache.jena.rdf.model.Resource dcatDistribution) static org.apache.jena.rdf.model.ResourcegetRelatedId(DcatDistribution distribution, DcatIdType idType) static Set<? extends org.apache.jena.rdf.model.Resource>getRelatedIds(DcatDistribution distribution, DcatIdType idType) static DcatDistributionresolveDistribution(org.apache.jena.rdf.model.Resource res) static Set<? extends DcatDistribution>resolveDistributions(org.apache.jena.rdf.model.Resource res) Attempt to resolve the given resource to the set of related distributions.
-
Constructor Details
-
DcatUtils
public DcatUtils()
-
-
Method Details
-
getFirstDownloadUrlFromDistribution
public static String getFirstDownloadUrlFromDistribution(org.apache.jena.rdf.model.Resource dcatDistribution) -
getFirstDownloadUrl
-
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
-
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)
-