diff --git a/core/model-vocabulary/src/main/java/org/eclipse/rdf4j/model/vocabulary/GEO.java b/core/model-vocabulary/src/main/java/org/eclipse/rdf4j/model/vocabulary/GEO.java index 36d01385461..60ab011f366 100644 --- a/core/model-vocabulary/src/main/java/org/eclipse/rdf4j/model/vocabulary/GEO.java +++ b/core/model-vocabulary/src/main/java/org/eclipse/rdf4j/model/vocabulary/GEO.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others. + * Copyright (c) 2024 Eclipse RDF4J contributors. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Distribution License v1.0 @@ -11,25 +11,474 @@ package org.eclipse.rdf4j.model.vocabulary; import org.eclipse.rdf4j.model.IRI; +import org.eclipse.rdf4j.model.Namespace; import org.eclipse.rdf4j.model.base.CoreDatatype; /** - * @version 1.0 + * @version 1.1 * @see http://www.opengeospatial.org/standards/geosparql */ public class GEO { + /** + * The GEO namespace: http://www.opengis.net/ont/geosparql# + */ public static final String NAMESPACE = CoreDatatype.GEO.NAMESPACE; - public static final IRI AS_WKT; + /** + * The recommended prefix for the GEO namespace: "geo" + */ + public static final String PREFIX = "geo"; - public static final IRI WKT_LITERAL; + /** + * An immutable {@link Namespace} constant that represents the GEO namespace. + */ + public static final Namespace NS = Vocabularies.createNamespace(PREFIX, NAMESPACE); + + // classes + + /** + * The geo:Feature class + * + * @see The geo:Feature Class + */ + public static final IRI Feature = createIRI("Feature"); + + /** + * The geo:FeatureCollection class + * + * @see The geo:FeatureCollection Class + */ + public static final IRI FeatureCollection = createIRI("FeatureCollection"); + + /** + * The geo:Geometry class + * + * @see The geo:Geometry Class + */ + public static final IRI Geometry = createIRI("Geometry"); + + /** + * The geo:GeometryCollection class + * + * @see The geo:GeometryCollection Class + */ + public static final IRI GeometryCollection = createIRI("GeometryCollection"); + + /** + * The geo:SpatialObject class + * + * @see The geo:SpatialObject Class + */ + public static final IRI SpatialObject = createIRI("SpatialObject"); + + /** + * The geo:SpatialObjectCollection class + * + * @see The geo:SpatialObjectCollection + * Class + */ + public static final IRI SpatialObjectCollection = createIRI("SpatialObjectCollection"); + + // Object Properties + + /** + * The geo:defaultGeometry property + * + * @see The geo:defaultGeometry property + */ + public static final IRI defaultGeometry = createIRI("defaultGeometry"); + + /** + * The geo:ehContains property + * + * @see The geo:ehContains property + */ + public static final IRI ehContains = createIRI("ehContains"); + + /** + * The geo:ehCoveredBy property + * + * @see The geo:ehCoveredBy property + */ + public static final IRI ehCoveredBy = createIRI("ehCoveredBy"); + + /** + * The geo:ehCovers property + * + * @see The geo:ehCovers property + */ + public static final IRI ehCovers = createIRI("ehCovers"); + + /** + * The geo:ehDisjoint property + * + * @see The geo:ehDisjoint property + */ + public static final IRI ehDisjoint = createIRI("ehDisjoint"); + + /** + * The geo:ehEquals property + * + * @see The geo:ehEquals property + */ + public static final IRI ehEquals = createIRI("ehEquals"); + + /** + * The geo:ehInside property + * + * @see The geo:ehInside property + */ + public static final IRI ehInside = createIRI("ehInside"); + + /** + * The geo:ehMeet property + * + * @see The geo:ehMeet property + */ + public static final IRI ehMeet = createIRI("ehMeet"); + + /** + * The geo:ehOverlap property + * + * @see The geo:ehOverlap property + */ + public static final IRI ehOverlap = createIRI("ehOverlap"); + + /** + * The geo:hasArea property + * + * @see The geo:hasArea property + */ + public static final IRI hasArea = createIRI("hasArea"); + + /** + * The geo:hasBoundingBox property + * + * @see The geo:hasBoundingBox property + */ + public static final IRI hasBoundingBox = createIRI("hasBoundingBox"); + + /** + * The geo:hasCentroid property + * + * @see The geo:hasCentroid property + */ + public static final IRI hasCentroid = createIRI("hasCentroid"); + + /** + * The geo:hasDefaultGeometry property + * + * @see The geo:hasDefaultGeometry property + */ + public static final IRI hasDefaultGeometry = createIRI("hasDefaultGeometry"); + + /** + * The geo:hasGeometry property + * + * @see The geo:hasGeometry property + */ + public static final IRI hasGeometry = createIRI("hasGeometry"); + + /** + * The geo:hasLength property + * + * @see The geo:hasLength property + */ + public static final IRI hasLength = createIRI("hasLength"); + + /** + * The geo:hasPerimeterLength property + * + * @see The geo:hasPerimeterLength property + */ + public static final IRI hasPerimeterLength = createIRI("hasPerimeterLength"); + + /** + * The geo:hasSize property + * + * @see The geo:hasSize property + */ + public static final IRI hasSize = createIRI("hasSize"); + + /** + * The geo:hasSpatialAccuracy property + * + * @see The geo:hasSpatialAccuracy property + */ + public static final IRI hasSpatialAccuracy = createIRI("hasSpatialAccuracy"); + + /** + * The geo:hasSpatialResolution property + * + * @see The geo:hasSpatialResolution + * property + */ + public static final IRI hasSpatialResolution = createIRI("hasSpatialResolution"); + + /** + * The geo:hasVolume property + * + * @see The geo:hasVolume property + */ + public static final IRI hasVolume = createIRI("hasVolume"); + + /** + * The geo:rcc8dc property + * + * @see The geo:rcc8dc property + */ + public static final IRI rcc8dc = createIRI("rcc8dc"); + + /** + * The geo:rcc8ec property + * + * @see The geo:rcc8ec property + */ + public static final IRI rcc8ec = createIRI("rcc8ec"); + + /** + * The geo:rcc8eq property + * + * @see The geo:rcc8eq property + */ + public static final IRI rcc8eq = createIRI("rcc8eq"); + + /** + * The geo:rcc8ntpp property + * + * @see The geo:rcc8ntpp property + */ + public static final IRI rcc8ntpp = createIRI("rcc8ntpp"); + + /** + * The geo:rcc8ntppi property + * + * @see The geo:rcc8ntppi property + */ + public static final IRI rcc8ntppi = createIRI("rcc8ntppi"); + + /** + * The geo:rcc8po property + * + * @see The geo:rcc8po property + */ + public static final IRI rcc8po = createIRI("rcc8po"); + + /** + * The geo:rcc8tpp property + * + * @see The geo:rcc8tpp property + */ + public static final IRI rcc8tpp = createIRI("rcc8tpp"); + + /** + * The geo:rcc8tppi property + * + * @see The geo:rcc8tppi property + */ + public static final IRI rcc8tppi = createIRI("rcc8tppi"); + + /** + * The geo:sfContains property + * + * @see The geo:sfContains property + */ + public static final IRI sfContains = createIRI("sfContains"); + + /** + * The geo:sfCrosses property + * + * @see The geo:sfCrosses property + */ + public static final IRI sfCrosses = createIRI("sfCrosses"); + + /** + * The geo:sfDisjoint property + * + * @see The geo:sfDisjoint property + */ + public static final IRI sfDisjoint = createIRI("sfDisjoint"); + + /** + * The geo:sfEquals property + * + * @see The geo:sfEquals property + */ + public static final IRI sfEquals = createIRI("sfEquals"); + + /** + * The geo:sfIntersects property + * + * @see The geo:sfOverlaps property + */ + public static final IRI sfOverlaps = createIRI("sfOverlaps"); + + /** + * The geo:sfTouchest property + * + * @see The geo:sfTouches property + */ + public static final IRI sfTouches = createIRI("sfTouches"); + + /** + * The geo:sfWithin property + * + * @see The geo:sfWithin property + */ + public static final IRI sfWithin = createIRI("sfWithin"); + + // Datatype Properties + + /** + * The geo:asDGGS property + * + * @see The geo:asDGGST property + */ + public static final IRI asDGGS = createIRI("asDGGS"); + + /** + * The geo:asGML property + * + * @see The geo:asGML property + */ + public static final IRI asGML = createIRI("asGML"); + + /** + * The geo:asGeoJSON property + * + * @see The geo:asGeoJSON property + */ + public static final IRI asGeoJSON = createIRI("asGeoJSON"); + + /** + * The geo:asKML property + * + * @see The geo:asKML property + */ + public static final IRI asKML = createIRI("asKML"); + + /** + * The geo:coordinateDimension property + * + * @see The geo:coordinateDimension property + */ + public static final IRI coordinateDimension = createIRI("coordinateDimension"); + + /** + * The geo:dimension property + * + * @see The geo:dimension property + */ + public static final IRI dimension = createIRI("dimension"); + + /** + * The geo:hasMetricArea property + * + * @see The geo:hasMetricArea property + */ + public static final IRI hasMetricArea = createIRI("hasMetricArea"); + + /** + * The geo:hasMetricLength property + * + * @see The geo:hasMetricLength property + */ + public static final IRI hasMetricLength = createIRI("hasMetricLength"); + + /** + * The geo:hasMetricPerimeterLength property + * + * @see The geo:hasMetricPerimeterLength + * property + */ + public static final IRI hasMetricPerimeterLength = createIRI("hasMetricPerimeterLength"); + + /** + * The geo:hasMetricSize property + * + * @see The geo:hasMetricSize property + */ + public static final IRI hasMetricSize = createIRI("hasMetricSize"); + + /** + * The geo:hasMetricSpatialAccuracy property + * + * @see The geo:hasMetricSpatialAccuracyT + * property + */ + public static final IRI hasMetricSpatialAccuracy = createIRI("hasMetricSpatialAccuracy"); + + /** + * The geo:hasMetricSpatialResolution property + * + * @see The geo:hasMetricSpatialResolution + * property + */ + public static final IRI hasMetricSpatialResolution = createIRI("hasMetricSpatialResolution"); + + /** + * The geo:hasMetricVolume property + * + * @see The geo:hasMetricVolume property + */ + public static final IRI hasMetricVolume = createIRI("hasMetricVolume"); + + /** + * The geo:hasSerialization property + * + * @see The geo:hasSerialization property + */ + public static final IRI hasSerialization = createIRI("hasSerialization"); + + /** + * The geo:isEmpty property + * + * @see The geo:isEmpty property + */ + public static final IRI isEmpty = createIRI("isEmpty"); + + /** + * The geo:isSimple property + * + * @see The geo:isSimple property + */ + public static final IRI isSimple = createIRI("isSimple"); + + /** + * The geo:spatialDimension property + * + * @see The geo:spatialDimension property + */ + public static final IRI spatialDimension = createIRI("spatialDimension"); + + // leaving the following constants as it is + + /** + * The geo:asWKT property + * + * @see The geo:asWKT property + */ + public static final IRI AS_WKT = createIRI("asWKT"); + + /** + * The geo:wktLiteral property + * + * @see The geo:wktLiteral property + */ + public static final IRI WKT_LITERAL = createIRI("wktLiteral"); public static final String DEFAULT_SRID = "http://www.opengis.net/def/crs/OGC/1.3/CRS84"; - static { - AS_WKT = Vocabularies.createIRI(NAMESPACE, "asWKT"); - WKT_LITERAL = CoreDatatype.GEO.WKT_LITERAL.getIri(); + private static IRI createIRI(String localName) { + return Vocabularies.createIRI(NAMESPACE, localName); } }