diff --git a/src/main/java/solutions/fairdata/openrefine/metadata/fdp/VocabularyHelper.java b/src/main/java/solutions/fairdata/openrefine/metadata/fdp/VocabularyHelper.java index de482d0..ebe7f60 100644 --- a/src/main/java/solutions/fairdata/openrefine/metadata/fdp/VocabularyHelper.java +++ b/src/main/java/solutions/fairdata/openrefine/metadata/fdp/VocabularyHelper.java @@ -25,6 +25,8 @@ import org.eclipse.rdf4j.model.IRI; import org.eclipse.rdf4j.model.impl.SimpleValueFactory; import org.eclipse.rdf4j.model.vocabulary.DCAT; +import org.eclipse.rdf4j.model.vocabulary.DCTERMS; +import org.eclipse.rdf4j.model.vocabulary.FOAF; import org.eclipse.rdf4j.model.vocabulary.RDF; public class VocabularyHelper { @@ -35,32 +37,32 @@ public class VocabularyHelper { public static final IRI TYPE_CATALOG = DCAT.CATALOG; public static final IRI TYPE_DATASET = DCAT.DATASET; public static final IRI TYPE_DISTRIBUTION = DCAT.DISTRIBUTION; - public static final IRI TITLE = vf.createIRI("http://purl.org/dc/terms/title"); - public static final IRI VERSION = vf.createIRI("http://purl.org/dc/terms/hasVersion"); - public static final IRI DESCRIPTION = vf.createIRI("http://purl.org/dc/terms/description"); - public static final IRI LICENSE = vf.createIRI("http://purl.org/dc/terms/license"); - public static final IRI RIGHTS = vf.createIRI("http://purl.org/dc/terms/accessRights"); - public static final IRI PUBLISHER = vf.createIRI("http://purl.org/dc/terms/publisher"); - public static final IRI PUBLISHER_NAME = vf.createIRI("http://xmlns.com/foaf/0.1/name"); - public static final IRI PARENT = vf.createIRI("http://purl.org/dc/terms/isPartOf"); - public static final IRI LANGUAGE = vf.createIRI("http://purl.org/dc/terms/language"); + public static final IRI TITLE = DCTERMS.TITLE; + public static final IRI VERSION = DCTERMS.HAS_VERSION; + public static final IRI DESCRIPTION = DCTERMS.DESCRIPTION; + public static final IRI LICENSE = DCTERMS.LICENSE; + public static final IRI RIGHTS = DCTERMS.RIGHTS; + public static final IRI PUBLISHER = DCTERMS.PUBLISHER; + public static final IRI PUBLISHER_NAME = FOAF.NAME; + public static final IRI PARENT = DCTERMS.IS_PART_OF; + public static final IRI LANGUAGE = DCTERMS.LANGUAGE; // "Repository" public static final IRI CATALOG = vf.createIRI("http://www.re3data.org/schema/3-0#dataCatalog"); // "Catalog" - public static final IRI DATASET = vf.createIRI("http://www.w3.org/ns/dcat#dataset"); - public static final IRI HOMEPAGE = vf.createIRI("http://xmlns.com/foaf/0.1/homepage"); - public static final IRI THEME_TAXONOMY = vf.createIRI("https://www.w3.org/ns/dcat#themeTaxonomy"); + public static final IRI DATASET = DCAT.DATASET; + public static final IRI HOMEPAGE = FOAF.HOMEPAGE; + public static final IRI THEME_TAXONOMY = DCAT.THEME_TAXONOMY; // "Dataset" - public static final IRI DISTRIBUTION = vf.createIRI("http://www.w3.org/ns/dcat#distribution"); - public static final IRI CONTACT_POINT = vf.createIRI("http://www.w3.org/ns/dcat#contactPoint"); - public static final IRI LANDING_PAGE = vf.createIRI("http://www.w3.org/ns/dcat#landingPage"); - public static final IRI THEME = vf.createIRI("http://www.w3.org/ns/dcat#theme"); - public static final IRI KEYWORD = vf.createIRI("http://www.w3.org/ns/dcat#keyword"); + public static final IRI DISTRIBUTION = DCAT.DISTRIBUTION; + public static final IRI CONTACT_POINT = DCAT.CONTACT_POINT; + public static final IRI LANDING_PAGE = DCAT.LANDING_PAGE; + public static final IRI THEME = DCAT.THEME; + public static final IRI KEYWORD = DCAT.KEYWORD; // "Distribution" - public static final IRI FORMAT = vf.createIRI("http://purl.org/dc/terms/format"); - public static final IRI BYTE_SIZE = vf.createIRI("http://www.w3.org/ns/dcat#byteSize"); - public static final IRI MEDIA_TYPE = vf.createIRI("http://www.w3.org/ns/dcat#mediaType"); - public static final IRI DOWNLOAD_URL = vf.createIRI("http://www.w3.org/ns/dcat#downloadUrl"); - public static final IRI ACCESS_URL = vf.createIRI("http://www.w3.org/ns/dcat#accessUrl"); + public static final IRI FORMAT = DCTERMS.FORMAT; + public static final IRI BYTE_SIZE = DCAT.BYTE_SIZE; + public static final IRI MEDIA_TYPE = DCAT.MEDIA_TYPE; + public static final IRI DOWNLOAD_URL = DCAT.DOWNLOAD_URL; + public static final IRI ACCESS_URL = DCAT.ACCESS_URL; }