From 659af9aef01b3fce145030c97d184f6c9c44a4e0 Mon Sep 17 00:00:00 2001 From: Christian Autermann Date: Thu, 28 May 2020 13:03:26 +0200 Subject: [PATCH] add time vocabulary --- shetland/rdf/pom.xml | 106 +++----------- .../n52/shetland/rdf/AbstractDatatype.java | 3 +- .../org/n52/shetland/rdf/AbstractLang.java | 32 +++-- .../n52/shetland/rdf/AbstractResource.java | 3 +- .../org/n52/shetland/rdf/AbstractValue.java | 5 +- .../org/n52/shetland/rdf/RDFDataTypes.java | 1 + .../org/n52/shetland/rdf/RDFMediaTypes.java | 28 ++++ .../org/n52/shetland/rdf/dcat/Keyword.java | 8 +- .../org/n52/shetland/rdf/locn/Geometry.java | 3 +- .../java/org/n52/shetland/rdf/locn/LOCN.java | 86 ----------- .../n52/shetland/rdf/locn/LocnRdfPrefix.java | 1 + .../org/n52/shetland/rdf/vocabulary/LOCN.java | 75 ++++++++++ .../org/n52/shetland/rdf/vocabulary/TIME.java | 133 ++++++++++++++++++ 13 files changed, 290 insertions(+), 194 deletions(-) create mode 100644 shetland/rdf/src/main/java/org/n52/shetland/rdf/RDFMediaTypes.java delete mode 100644 shetland/rdf/src/main/java/org/n52/shetland/rdf/locn/LOCN.java create mode 100644 shetland/rdf/src/main/java/org/n52/shetland/rdf/vocabulary/LOCN.java create mode 100644 shetland/rdf/src/main/java/org/n52/shetland/rdf/vocabulary/TIME.java diff --git a/shetland/rdf/pom.xml b/shetland/rdf/pom.xml index 1228d6bb6..a482ab8c7 100644 --- a/shetland/rdf/pom.xml +++ b/shetland/rdf/pom.xml @@ -17,50 +17,18 @@ limitations under the License. --> - + 4.0.0 - org.n52.arctic-sea shetland-parent 7.5.0-SNAPSHOT - shetland-rdf 52°North Shetland RDF 52°North RDF Framework - - - org.junit.jupiter - junit-jupiter-api - test - - - org.junit.jupiter - junit-jupiter-engine - test - - - org.hamcrest - hamcrest - test - - - org.springframework - spring-test - test - - - org.mockito - mockito-core - test - - - org.slf4j - slf4j-simple - test - com.github.spotbugs spotbugs-annotations @@ -69,64 +37,26 @@ org.apache.jena jena-core + + + org.apache.jena + jena-shaded-guava + + org.apache.jena jena-arq + + + org.apache.jena + jena-shaded-guava + + + + + com.google.guava + guava - - - since-jdk9 - - [9,) - - - - - org.apache.maven.plugins - maven-javadoc-plugin - ${version.maven-javadoc-plugin} - - - javax.xml.soap - javax.xml.soap-api - ${version.javax-xml-soap} - - - - - - - - javax.xml.soap - javax.xml.soap-api - provided - - - - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - test-jar - - - tests - - **/*Test.* - **/*$.* - - - - - - - diff --git a/shetland/rdf/src/main/java/org/n52/shetland/rdf/AbstractDatatype.java b/shetland/rdf/src/main/java/org/n52/shetland/rdf/AbstractDatatype.java index e905183d6..e06e92207 100644 --- a/shetland/rdf/src/main/java/org/n52/shetland/rdf/AbstractDatatype.java +++ b/shetland/rdf/src/main/java/org/n52/shetland/rdf/AbstractDatatype.java @@ -43,8 +43,7 @@ public AbstractDatatype(String dataType, String value) { @Override public Resource addToResource(Model model, Resource parent) { addNsPrefix(model); - parent.addProperty(getProperty(), getValue(), getDataType()); - return parent; + return parent.addProperty(getProperty(), getValue(), getDataType()); } public RDFDatatype getDataType() { diff --git a/shetland/rdf/src/main/java/org/n52/shetland/rdf/AbstractLang.java b/shetland/rdf/src/main/java/org/n52/shetland/rdf/AbstractLang.java index 3be58ee19..fd2e5f085 100644 --- a/shetland/rdf/src/main/java/org/n52/shetland/rdf/AbstractLang.java +++ b/shetland/rdf/src/main/java/org/n52/shetland/rdf/AbstractLang.java @@ -16,26 +16,38 @@ */ package org.n52.shetland.rdf; +import com.google.common.base.Strings; import org.apache.jena.rdf.model.Model; +import org.apache.jena.rdf.model.Property; import org.apache.jena.rdf.model.Resource; public abstract class AbstractLang extends AbstractValue { - private final String lang; + private final String language; - public AbstractLang(String value, String lang) { + public AbstractLang(String value) { + this(value, null); + } + + public AbstractLang(String value, String language) { super(value); - this.lang = lang; + this.language = language; + } + + public String getLanguage() { + return language; } - @Override + public boolean hasLanguage() { + return getLanguage() != null && !getLanguage().isEmpty(); + } + + public abstract Property getProperty(); + public Resource addToResource(Model model, Resource parent) { addNsPrefix(model); - if (lang != null) { - parent.addProperty(getProperty(), getValue(), lang); - } else { - parent.addProperty(getProperty(), getValue()); - } - return parent; + return parent.addProperty(getProperty(), + getValue(), + Strings.nullToEmpty(getLanguage())); } } diff --git a/shetland/rdf/src/main/java/org/n52/shetland/rdf/AbstractResource.java b/shetland/rdf/src/main/java/org/n52/shetland/rdf/AbstractResource.java index f197c79d7..9fdfafde8 100644 --- a/shetland/rdf/src/main/java/org/n52/shetland/rdf/AbstractResource.java +++ b/shetland/rdf/src/main/java/org/n52/shetland/rdf/AbstractResource.java @@ -28,7 +28,6 @@ public AbstractResource(String value) { @Override public Resource addToResource(Model model, Resource parent) { addNsPrefix(model); - parent.addProperty(getProperty(), model.createResource(getValue())); - return parent; + return parent.addProperty(getProperty(), model.createResource(getValue())); } } diff --git a/shetland/rdf/src/main/java/org/n52/shetland/rdf/AbstractValue.java b/shetland/rdf/src/main/java/org/n52/shetland/rdf/AbstractValue.java index 362c3672a..406df572e 100644 --- a/shetland/rdf/src/main/java/org/n52/shetland/rdf/AbstractValue.java +++ b/shetland/rdf/src/main/java/org/n52/shetland/rdf/AbstractValue.java @@ -20,7 +20,7 @@ import org.apache.jena.rdf.model.Property; import org.apache.jena.rdf.model.Resource; -public abstract class AbstractValue implements ResourceAdder { +public abstract class AbstractValue implements RdfPrefix, ResourceAdder { private final String value; @@ -36,8 +36,7 @@ public String getValue() { public Resource addToResource(Model model, Resource parent) { addNsPrefix(model); - parent.addProperty(getProperty(), getValue()); - return parent; + return parent.addProperty(getProperty(), getValue()); } } diff --git a/shetland/rdf/src/main/java/org/n52/shetland/rdf/RDFDataTypes.java b/shetland/rdf/src/main/java/org/n52/shetland/rdf/RDFDataTypes.java index eeb0cbc63..a480b0b27 100644 --- a/shetland/rdf/src/main/java/org/n52/shetland/rdf/RDFDataTypes.java +++ b/shetland/rdf/src/main/java/org/n52/shetland/rdf/RDFDataTypes.java @@ -21,5 +21,6 @@ public interface RDFDataTypes { RDFDatatype WKT_LITERAL = new BaseDatatype("http://www.opengis.net/ont/geosparql#wktLiteral"); + RDFDatatype GML_LITERAL = new BaseDatatype("http://www.opengis.net/ont/geosparql#gmlLiteral"); RDFDatatype GEO_JSON = new BaseDatatype("https://www.iana.org/assignments/media-types/application/geo+json"); } diff --git a/shetland/rdf/src/main/java/org/n52/shetland/rdf/RDFMediaTypes.java b/shetland/rdf/src/main/java/org/n52/shetland/rdf/RDFMediaTypes.java new file mode 100644 index 000000000..71cf67c27 --- /dev/null +++ b/shetland/rdf/src/main/java/org/n52/shetland/rdf/RDFMediaTypes.java @@ -0,0 +1,28 @@ +/* + * Copyright 2015-2020 52°North Initiative for Geospatial Open Source + * Software GmbH + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.n52.shetland.rdf; + +public interface RDFMediaTypes { + String APPLICATION_RDF_XML = "application/rdf+xml"; + String APPLICATION_N_TRIPLES = "application/n-triples"; + String APPLICATION_LD_JSON = "application/ld+json"; + String APPLICATION_RDF_JSON = "application/rdf+json"; + String APPLICATION_N_QUADS = "application/n-quads"; + String APPLICATION_TRIG = "application/trig"; + String TEXT_TURTLE = "text/turtle"; + String TEXT_N3 = "text/n3"; +} diff --git a/shetland/rdf/src/main/java/org/n52/shetland/rdf/dcat/Keyword.java b/shetland/rdf/src/main/java/org/n52/shetland/rdf/dcat/Keyword.java index 6869b3c32..e779ae31a 100644 --- a/shetland/rdf/src/main/java/org/n52/shetland/rdf/dcat/Keyword.java +++ b/shetland/rdf/src/main/java/org/n52/shetland/rdf/dcat/Keyword.java @@ -18,14 +18,18 @@ import org.apache.jena.rdf.model.Property; import org.apache.jena.vocabulary.DCAT; -import org.n52.shetland.rdf.AbstractValue; +import org.n52.shetland.rdf.AbstractLang; -public class Keyword extends AbstractValue implements DcatRdfPrefix { +public class Keyword extends AbstractLang implements DcatRdfPrefix { public Keyword(String value) { super(value); } + public Keyword(String value, String language) { + super(value, language); + } + @Override public Property getProperty() { return DCAT.keyword; diff --git a/shetland/rdf/src/main/java/org/n52/shetland/rdf/locn/Geometry.java b/shetland/rdf/src/main/java/org/n52/shetland/rdf/locn/Geometry.java index 03cc223c6..f497e9863 100644 --- a/shetland/rdf/src/main/java/org/n52/shetland/rdf/locn/Geometry.java +++ b/shetland/rdf/src/main/java/org/n52/shetland/rdf/locn/Geometry.java @@ -19,6 +19,7 @@ import org.apache.jena.datatypes.RDFDatatype; import org.apache.jena.rdf.model.Property; import org.n52.shetland.rdf.AbstractDatatype; +import org.n52.shetland.rdf.vocabulary.LOCN; public class Geometry extends AbstractDatatype implements LocnRdfPrefix { @@ -37,7 +38,7 @@ public Geometry(String dataType, String value) { @Override public Property getProperty() { - return LOCN.GEOMETRY_PROPERTY; + return LOCN.geometry; } } diff --git a/shetland/rdf/src/main/java/org/n52/shetland/rdf/locn/LOCN.java b/shetland/rdf/src/main/java/org/n52/shetland/rdf/locn/LOCN.java deleted file mode 100644 index 718148498..000000000 --- a/shetland/rdf/src/main/java/org/n52/shetland/rdf/locn/LOCN.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2015-2020 52°North Initiative for Geospatial Open Source - * Software GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.n52.shetland.rdf.locn; - -import org.apache.jena.rdf.model.Resource; - -import org.apache.jena.rdf.model.Model; -import org.apache.jena.rdf.model.ModelFactory; -import org.apache.jena.rdf.model.Property; - -/** - * Constants for the W3C Data Catalog Vocabulary. - * - * @see ISA Programme Location Core - * Vocabulary - */ -public class LOCN { - - public static final Model MODEL = ModelFactory.createDefaultModel(); - - public static final String NS = "http://www.w3.org/ns/locn#"; - - public static final Resource NAMESPACE = MODEL.createResource(NS); - - // Classes - public static final Resource CATALOG_RESOURCE = MODEL.createResource(NS + "Location"); - - public static final Resource CATALOG_RECORD_RESOURCE = MODEL.createResource(NS + "Address"); - - public static final Resource DATASET_RESOURCE = MODEL.createResource(NS + "Geometry"); - - // Properties - public static final Property LOCATION_PROPERTY = MODEL.createProperty(NS + "location"); - - public static final Property GEOGRAPHIC_NAME_PROPERTY = MODEL.createProperty(NS + "geographicName"); - - public static final Property GEOMETRY_PROPERTY = MODEL.createProperty(NS + "geometry"); - - public static final Property ADDRESS_PROPERTY = MODEL.createProperty(NS + "address"); - - public static final Property FULL_ADDRESS_PROPERTY = MODEL.createProperty(NS + "fullAddress"); - - public static final Property PO_BOX_PROPERTY = MODEL.createProperty(NS + "poBox"); - - public static final Property THOROUFH_FARE_PROPERTY = MODEL.createProperty(NS + "thoroughfare"); - - public static final Property LOCATOR_DESIGNATOR_PROPERTY = MODEL.createProperty(NS + "locatorDesignator"); - - public static final Property LOCATOR_NAME_PROPERTY = MODEL.createProperty(NS + "locatorName"); - - public static final Property ADDRESS_AREA_PROPERTY = MODEL.createProperty(NS + "addressArea"); - - public static final Property POST_NAME_PROPERTY = MODEL.createProperty(NS + "postName"); - - public static final Property ADMIN_UNIT_L2_PROPERTY = MODEL.createProperty(NS + "adminUnitL2"); - - public static final Property ADMIN_UNIT_L1_PROPERTY = MODEL.createProperty(NS + "adminUnitL1"); - - public static final Property POST_CODE_PROPERTY = MODEL.createProperty(NS + "postCode"); - - public static final Property ADDRESS__PROPERTY = MODEL.createProperty(NS + "addressId"); - - /** - * Returns the URI for this schema - * - * @return URI - */ - public static String getURI() { - return NS; - } - -} diff --git a/shetland/rdf/src/main/java/org/n52/shetland/rdf/locn/LocnRdfPrefix.java b/shetland/rdf/src/main/java/org/n52/shetland/rdf/locn/LocnRdfPrefix.java index 6d61c98c0..540c29c13 100644 --- a/shetland/rdf/src/main/java/org/n52/shetland/rdf/locn/LocnRdfPrefix.java +++ b/shetland/rdf/src/main/java/org/n52/shetland/rdf/locn/LocnRdfPrefix.java @@ -17,6 +17,7 @@ package org.n52.shetland.rdf.locn; import org.n52.shetland.rdf.RdfPrefix; +import org.n52.shetland.rdf.vocabulary.LOCN; public interface LocnRdfPrefix extends RdfPrefix { diff --git a/shetland/rdf/src/main/java/org/n52/shetland/rdf/vocabulary/LOCN.java b/shetland/rdf/src/main/java/org/n52/shetland/rdf/vocabulary/LOCN.java new file mode 100644 index 000000000..b4a509b8b --- /dev/null +++ b/shetland/rdf/src/main/java/org/n52/shetland/rdf/vocabulary/LOCN.java @@ -0,0 +1,75 @@ +/* + * Copyright 2015-2020 52°North Initiative for Geospatial Open Source + * Software GmbH + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.n52.shetland.rdf.vocabulary; + +import org.apache.jena.rdf.model.Model; +import org.apache.jena.rdf.model.ModelFactory; +import org.apache.jena.rdf.model.Property; +import org.apache.jena.rdf.model.Resource; +import org.apache.jena.vocabulary.DCTerms; + +/** + * Constants for the W3C Data Catalog Vocabulary. + * + * @see ISA Programme Location Core + * Vocabulary + */ +@SuppressWarnings({"checkstyle:ConstantName", "checkstyle:LineLength", "checkstyle:DeclarationOrder"}) +public class LOCN { + private static final Model MODEL = ModelFactory.createDefaultModel(); + /** + * The namespace of the vocabulary as a string. + */ + + public static final String NS = "http://www.w3.org/ns/locn#"; + + /** + * The namespace of the vocabulary as a resource. + */ + public static final Resource NAMESPACE = MODEL.createResource(NS); + + // Classes + public static final Resource Location = DCTerms.Location; + public static final Resource Address = MODEL.createResource("http://www.w3.org/ns/locn#Address"); + public static final Resource Geometry = MODEL.createResource("http://www.w3.org/ns/locn#Geometry"); + + // Properties + public static final Property location = MODEL.createProperty("http://www.w3.org/ns/locn#location"); + public static final Property geographicName = MODEL.createProperty("http://www.w3.org/ns/locn#geographicName"); + public static final Property geometry = MODEL.createProperty("http://www.w3.org/ns/locn#geometry"); + public static final Property address = MODEL.createProperty("http://www.w3.org/ns/locn#address"); + public static final Property fullAddress = MODEL.createProperty("http://www.w3.org/ns/locn#fullAddress"); + public static final Property poBox = MODEL.createProperty("http://www.w3.org/ns/locn#poBox"); + public static final Property thoroughfare = MODEL.createProperty("http://www.w3.org/ns/locn#thoroughfare"); + public static final Property locatorDesignator = MODEL.createProperty("http://www.w3.org/ns/locn#locatorDesignator"); + public static final Property locatorName = MODEL.createProperty("http://www.w3.org/ns/locn#locatorName"); + public static final Property addressArea = MODEL.createProperty("http://www.w3.org/ns/locn#addressArea"); + public static final Property postName = MODEL.createProperty("http://www.w3.org/ns/locn#postName"); + public static final Property adminUnitL2 = MODEL.createProperty("http://www.w3.org/ns/locn#adminUnitL2"); + public static final Property adminUnitL1 = MODEL.createProperty("http://www.w3.org/ns/locn#adminUnitL1"); + public static final Property postCode = MODEL.createProperty("http://www.w3.org/ns/locn#postCode"); + public static final Property addressId = MODEL.createProperty("http://www.w3.org/ns/locn#addressId"); + + /** + * Returns the URI for this schema + * + * @return URI + */ + public static String getURI() { + return NS; + } +} diff --git a/shetland/rdf/src/main/java/org/n52/shetland/rdf/vocabulary/TIME.java b/shetland/rdf/src/main/java/org/n52/shetland/rdf/vocabulary/TIME.java new file mode 100644 index 000000000..796d78b56 --- /dev/null +++ b/shetland/rdf/src/main/java/org/n52/shetland/rdf/vocabulary/TIME.java @@ -0,0 +1,133 @@ +/* + * Copyright 2015-2020 52°North Initiative for Geospatial Open Source + * Software GmbH + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.n52.shetland.rdf.vocabulary; + +import org.apache.jena.rdf.model.Model; +import org.apache.jena.rdf.model.ModelFactory; +import org.apache.jena.rdf.model.Property; +import org.apache.jena.rdf.model.Resource; + +/** + * Constants for the W3C Time Ontology. + * + * @see Time Ontology in OWL + */ +@SuppressWarnings({"checkstyle:ConstantName", "checkstyle:LineLength", "checkstyle:DeclarationOrder"}) +public class TIME { + private static final Model MODEL = ModelFactory.createDefaultModel(); + /** + * The namespace of the vocabulary as a string. + */ + public static final String NS = "http://www.w3.org/2006/time#"; + + /** + * The namespace of the vocabulary as a resource. + */ + public static final Resource NAMESPACE = MODEL.createResource(NS); + + // Classes + public static final Resource TemporalEntity = MODEL.createResource("http://www.w3.org/2006/time#TemporalEntity"); + public static final Resource Instant = MODEL.createResource("http://www.w3.org/2006/time#Instant"); + public static final Resource Interval = MODEL.createResource("http://www.w3.org/2006/time#Interval"); + public static final Resource ProperInterval = MODEL.createResource("http://www.w3.org/2006/time#ProperInterval"); + public static final Resource DateTimeInterval = MODEL.createResource("http://www.w3.org/2006/time#DateTimeInterval"); + public static final Resource TemporalPosition = MODEL.createResource("http://www.w3.org/2006/time#TemporalPosition"); + public static final Resource TimePosition = MODEL.createResource("http://www.w3.org/2006/time#TimePosition"); + public static final Resource GeneralDateTimeDescription = MODEL.createResource("http://www.w3.org/2006/time#GeneralDateTimeDescription"); + public static final Resource DateTimeDescription = MODEL.createResource("http://www.w3.org/2006/time#DateTimeDescription"); + public static final Resource MonthOfYear = MODEL.createResource("http://www.w3.org/2006/time#MonthOfYear"); + public static final Resource TemporalDuration = MODEL.createResource("http://www.w3.org/2006/time#TemporalDuration"); + public static final Resource Duration = MODEL.createResource("http://www.w3.org/2006/time#Duration"); + public static final Resource GeneralDurationDescription = MODEL.createResource("http://www.w3.org/2006/time#GeneralDurationDescription"); + public static final Resource DurationDescription = MODEL.createResource("http://www.w3.org/2006/time#DurationDescription"); + public static final Resource TemporalUnit = MODEL.createResource("http://www.w3.org/2006/time#TemporalUnit"); + public static final Resource TRS = MODEL.createResource("http://www.w3.org/2006/time#TRS"); + public static final Resource TimeZone = MODEL.createResource("http://www.w3.org/2006/time#TimeZone"); + public static final Resource DayOfWeek = MODEL.createResource("http://www.w3.org/2006/time#DayOfWeek"); + + // Properties + public static final Property hasTime = MODEL.createProperty("http://www.w3.org/2006/time#hasTime"); + public static final Property hasBeginning = MODEL.createProperty("http://www.w3.org/2006/time#hasBeginning"); + public static final Property hasEnd = MODEL.createProperty("http://www.w3.org/2006/time#hasEnd"); + public static final Property hasTemporalDuration = MODEL.createProperty("http://www.w3.org/2006/time#hasTemporalDuration"); + public static final Property hasDuration = MODEL.createProperty("http://www.w3.org/2006/time#hasDuration"); + public static final Property hasDurationDescription = MODEL.createProperty("http://www.w3.org/2006/time#hasDurationDescription"); + public static final Property hasXSDDuration = MODEL.createProperty("http://www.w3.org/2006/time#hasXSDDuration"); + public static final Property before = MODEL.createProperty("http://www.w3.org/2006/time#before"); + public static final Property after = MODEL.createProperty("http://www.w3.org/2006/time#after"); + public static final Property inside = MODEL.createProperty("http://www.w3.org/2006/time#inside"); + public static final Property intervalEquals = MODEL.createProperty("http://www.w3.org/2006/time#intervalEquals"); + public static final Property intervalDisjoint = MODEL.createProperty("http://www.w3.org/2006/time#intervalDisjoint"); + public static final Property intervalAfter = MODEL.createProperty("http://www.w3.org/2006/time#intervalAfter"); + public static final Property intervalBefore = MODEL.createProperty("http://www.w3.org/2006/time#intervalBefore"); + public static final Property intervalMeets = MODEL.createProperty("http://www.w3.org/2006/time#intervalMeets"); + public static final Property intervalMetBy = MODEL.createProperty("http://www.w3.org/2006/time#intervalMetBy"); + public static final Property intervalOverlaps = MODEL.createProperty("http://www.w3.org/2006/time#intervalOverlaps"); + public static final Property intervalOverlappedBy = MODEL.createProperty("http://www.w3.org/2006/time#intervalOverlappedBy"); + public static final Property intervalStarts = MODEL.createProperty("http://www.w3.org/2006/time#intervalStarts"); + public static final Property intervalStartedBy = MODEL.createProperty("http://www.w3.org/2006/time#intervalStartedBy"); + public static final Property intervalFinishes = MODEL.createProperty("http://www.w3.org/2006/time#intervalFinishes"); + public static final Property intervalFinishedBy = MODEL.createProperty("http://www.w3.org/2006/time#intervalFinishedBy"); + public static final Property intervalContains = MODEL.createProperty("http://www.w3.org/2006/time#intervalContains"); + public static final Property intervalDuring = MODEL.createProperty("http://www.w3.org/2006/time#intervalDuring"); + public static final Property intervalIn = MODEL.createProperty("http://www.w3.org/2006/time#intervalIn"); + public static final Property hasDateTimeDescription = MODEL.createProperty("http://www.w3.org/2006/time#hasDateTimeDescription"); + @Deprecated + public static final Property xsdDateTime = MODEL.createProperty("http://www.w3.org/2006/time#xsdDateTime"); + public static final Property inTemporalPosition = MODEL.createProperty("http://www.w3.org/2006/time#inTemporalPosition"); + public static final Property inTimePosition = MODEL.createProperty("http://www.w3.org/2006/time#inTimePosition"); + public static final Property inDateTime = MODEL.createProperty("http://www.w3.org/2006/time#inDateTime"); + public static final Property inXSDDate = MODEL.createProperty("http://www.w3.org/2006/time#inXSDDate"); + @Deprecated + public static final Property inXSDDateTime = MODEL.createProperty("http://www.w3.org/2006/time#inXSDDateTime"); + public static final Property inXSDDateTimeStamp = MODEL.createProperty("http://www.w3.org/2006/time#inXSDDateTimeStamp"); + public static final Property inXSDgYearMonth = MODEL.createProperty("http://www.w3.org/2006/time#inXSDgYearMonth"); + public static final Property inXSDgYear = MODEL.createProperty("http://www.w3.org/2006/time#inXSDgYear"); + public static final Property numericDuration = MODEL.createProperty("http://www.w3.org/2006/time#numericDuration"); + public static final Property unitType = MODEL.createProperty("http://www.w3.org/2006/time#unitType"); + public static final Property years = MODEL.createProperty("http://www.w3.org/2006/time#years"); + public static final Property months = MODEL.createProperty("http://www.w3.org/2006/time#months"); + public static final Property weeks = MODEL.createProperty("http://www.w3.org/2006/time#weeks"); + public static final Property days = MODEL.createProperty("http://www.w3.org/2006/time#days"); + public static final Property hours = MODEL.createProperty("http://www.w3.org/2006/time#hours"); + public static final Property minutes = MODEL.createProperty("http://www.w3.org/2006/time#minutes"); + public static final Property seconds = MODEL.createProperty("http://www.w3.org/2006/time#seconds"); + public static final Property numericPosition = MODEL.createProperty("http://www.w3.org/2006/time#numericPosition"); + public static final Property nominalPosition = MODEL.createProperty("http://www.w3.org/2006/time#nominalPosition"); + public static final Property timeZone = MODEL.createProperty("http://www.w3.org/2006/time#timeZone"); + public static final Property year = MODEL.createProperty("http://www.w3.org/2006/time#year"); + public static final Property month = MODEL.createProperty("http://www.w3.org/2006/time#month"); + public static final Property day = MODEL.createProperty("http://www.w3.org/2006/time#day"); + public static final Property hour = MODEL.createProperty("http://www.w3.org/2006/time#hour"); + public static final Property minute = MODEL.createProperty("http://www.w3.org/2006/time#minute"); + public static final Property second = MODEL.createProperty("http://www.w3.org/2006/time#second"); + public static final Property week = MODEL.createProperty("http://www.w3.org/2006/time#week"); + public static final Property dayOfYear = MODEL.createProperty("http://www.w3.org/2006/time#dayOfYear"); + public static final Property dayOfWeek = MODEL.createProperty("http://www.w3.org/2006/time#dayOfWeek"); + public static final Property monthOfYear = MODEL.createProperty("http://www.w3.org/2006/time#monthOfYear"); + public static final Property hasTRS = MODEL.createProperty("http://www.w3.org/2006/time#hasTRS"); + + /** + * Returns the URI for this schema + * + * @return URI + */ + public static String getURI() { + return NS; + } +} +