From 67ff493c84b164c2d07939681199c131210d7d43 Mon Sep 17 00:00:00 2001 From: Bart Hanssens Date: Mon, 17 Dec 2018 17:42:12 +0100 Subject: [PATCH] Added LOCN vocabulary Signed-off-by: Bart Hanssens --- .../eclipse/rdf4j/model/vocabulary/LOCN.java | 116 ++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 model/src/main/java/org/eclipse/rdf4j/model/vocabulary/LOCN.java diff --git a/model/src/main/java/org/eclipse/rdf4j/model/vocabulary/LOCN.java b/model/src/main/java/org/eclipse/rdf4j/model/vocabulary/LOCN.java new file mode 100644 index 00000000000..a27ad445daa --- /dev/null +++ b/model/src/main/java/org/eclipse/rdf4j/model/vocabulary/LOCN.java @@ -0,0 +1,116 @@ +/** + * Copyright (c) 2018 Eclipse RDF4J contributors, and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Distribution License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/org/documents/edl-v10.php. + */ +package org.eclipse.rdf4j.model.vocabulary; + +import org.eclipse.rdf4j.model.IRI; +import org.eclipse.rdf4j.model.Namespace; +import org.eclipse.rdf4j.model.ValueFactory; +import org.eclipse.rdf4j.model.impl.SimpleNamespace; +import org.eclipse.rdf4j.model.impl.SimpleValueFactory; + +/** + * Constants for the ISA Programme Location Core Vocabulary. + * + * @see ISA Programme Location Core Vocabulary + * + * @author Bart Hanssens + */ +public class LOCN { + /** + * The LOCN namespace: http://www.w3.org/ns/locn# + */ + public static final String NAMESPACE = "http://www.w3.org/ns/locn#"; + + /** + * Recommended prefix for the namespace: "locn" + */ + public static final String PREFIX = "locn"; + + /** + * An immutable {@link Namespace} constant that represents the namespace. + */ + public static final Namespace NS = new SimpleNamespace(PREFIX, NAMESPACE); + + // Classes + /** locn:Address */ + public static final IRI ADDRESS; + + /** locn:Geometry */ + public static final IRI GEOMETRY; + + + // Properties + /** locn:address */ + public static final IRI ADDRESS_PROP; + + /** locn:addressArea */ + public static final IRI ADDRESS_AREA; + + /** locn:addressId */ + public static final IRI ADDRESS_ID; + + /** locn:adminUnitL1 */ + public static final IRI ADMIN_UNIT_L1; + + /** locn:adminUnitL2 */ + public static final IRI ADMIN_UNIT_L2; + + /** locn:fullAddress */ + public static final IRI FULL_ADDRESS; + + /** locn:geographicName */ + public static final IRI GEOGRAPHIC_NAME; + + /** locn:geometry */ + public static final IRI GEOMETRY_PROP; + + /** locn:location */ + public static final IRI LOCATION; + + /** locn:locatorDesignator */ + public static final IRI LOCATOR_DESIGNATOR; + + /** locn:locatorName */ + public static final IRI LOCATOR_NAME; + + /** locn:poBox */ + public static final IRI PO_BOX; + + /** locn:postCode */ + public static final IRI POST_CODE; + + /** locn:postName */ + public static final IRI POST_NAME; + + /** locn:thoroughfare */ + public static final IRI THOROUGHFARE; + + static { + ValueFactory factory = SimpleValueFactory.getInstance(); + + ADDRESS = factory.createIRI(NAMESPACE, "Address"); + GEOMETRY = factory.createIRI(NAMESPACE, "Geometry"); + + ADDRESS_PROP = factory.createIRI(NAMESPACE, "address"); + ADDRESS_AREA = factory.createIRI(NAMESPACE, "addressArea"); + ADDRESS_ID = factory.createIRI(NAMESPACE, "addressId"); + ADMIN_UNIT_L1 = factory.createIRI(NAMESPACE, "adminUnitL1"); + ADMIN_UNIT_L2 = factory.createIRI(NAMESPACE, "adminUnitL2"); + FULL_ADDRESS = factory.createIRI(NAMESPACE, "fullAddress"); + GEOGRAPHIC_NAME = factory.createIRI(NAMESPACE, "geographicName"); + GEOMETRY_PROP = factory.createIRI(NAMESPACE, "geometry"); + LOCATION = factory.createIRI(NAMESPACE, "location"); + LOCATOR_DESIGNATOR = factory.createIRI(NAMESPACE, "locatorDesignator"); + LOCATOR_NAME = factory.createIRI(NAMESPACE, "locatorName"); + PO_BOX = factory.createIRI(NAMESPACE, "poBox"); + POST_CODE = factory.createIRI(NAMESPACE, "postCode"); + POST_NAME = factory.createIRI(NAMESPACE, "postName"); + THOROUGHFARE = factory.createIRI(NAMESPACE, "thoroughfare"); + } +} +