You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2016/07/14 13:56:18 UTC

[02/10] jena git commit: Added VoID Signed-off-by:Bart Hanssens

Added VoID
Signed-off-by:Bart Hanssens <ba...@fedict.be>

Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/2820c76d
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/2820c76d
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/2820c76d

Branch: refs/heads/master
Commit: 2820c76d576b21dff34b662d0104c7a8bdfe75b5
Parents: 80c6f45
Author: Bart Hanssens <ba...@fedict.be>
Authored: Wed Jul 6 10:12:50 2016 +0100
Committer: Bart Hanssens <ba...@fedict.be>
Committed: Wed Jul 6 10:12:50 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/jena/vocabulary/VOID.java   | 79 ++++++++++++++++++++
 1 file changed, 79 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/2820c76d/jena-core/src/main/java/org/apache/jena/vocabulary/VOID.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/VOID.java b/jena-core/src/main/java/org/apache/jena/vocabulary/VOID.java
new file mode 100644
index 0000000..dfe45f7
--- /dev/null
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/VOID.java
@@ -0,0 +1,79 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.apache.jena.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 Vocabulary of Interlinked Datasets.
+ *
+ * @see <a href="https://www.w3.org/TR/void/">Vocabulary of Interlinked Datasets</a>
+ */
+public class VOID {
+	private static final Model m = ModelFactory.createDefaultModel();
+
+	public static final String NS = "http://rdfs.org/ns/void#";
+	public static final Resource NAMESPACE = m.createResource(NS);
+	
+	/**
+	 * Returns the URI for this schema
+	 * @return URI
+	 */
+	public static String getURI() {
+		return NS;
+	}
+	
+	// Classes
+	public static final Resource Dataset = m.createResource(NS + "Dataset");
+	public static final Resource DatasetDescription = m.createResource(NS + "DatasetDescription");
+	public static final Resource Linkset = m.createResource(NS + "Linkset");
+	public static final Resource TechnicalFeature = m.createResource(NS + "TechnicalFeature");
+
+	// Properties
+	public static final Property _class = m.createProperty(NS + "class");
+	public static final Property classPartition = m.createProperty(NS + "classPartition");
+	public static final Property classes = m.createProperty(NS + "classes");
+	public static final Property dataDump = m.createProperty(NS + "dataDump");
+	public static final Property distinctObjects = m.createProperty(NS + "distinctObjects");
+	public static final Property distinctSubjects = m.createProperty(NS + "distinctSubjects");
+	public static final Property documents = m.createProperty(NS + "documents");
+	public static final Property entities = m.createProperty(NS + "entities");
+	public static final Property exampleResource = m.createProperty(NS + "exampleResource");
+	public static final Property feature = m.createProperty(NS + "feature");
+	public static final Property inDataset = m.createProperty(NS + "inDataset");
+	public static final Property linkPredicate = m.createProperty(NS + "linkPredicate");
+	public static final Property objectsTarget = m.createProperty(NS + "objectsTarget");
+	public static final Property openSearchDescription = m.createProperty(NS + "openSearchDescription");
+	public static final Property properties = m.createProperty(NS + "properties");
+	public static final Property property = m.createProperty(NS + "property");
+	public static final Property propertyPartition = m.createProperty(NS + "propertyPartition");
+	public static final Property rootResource = m.createProperty(NS + "rootResource");
+	public static final Property sparqlEndpoint = m.createProperty(NS + "sparqlEndpoint");
+	public static final Property subjectsTarget = m.createProperty(NS + "subjectsTarget");
+	public static final Property subset = m.createProperty(NS + "subset");
+	public static final Property target = m.createProperty(NS + "target");
+	public static final Property triples = m.createProperty(NS + "triples");
+	public static final Property uriLookupEndpoint = m.createProperty(NS + "uriLookupEndpoint");
+	public static final Property uriRegexPattern = m.createProperty(NS + "uriRegexPattern");
+	public static final Property uriSpace = m.createProperty(NS + "uriSpace");
+	public static final Property vocabulary = m.createProperty(NS + "vocabulary");
+}