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:25 UTC
[09/10] jena git commit: Revert "Moved vocab to separate package
Signed-off-by:Bart Hanssens "
Revert "Moved vocab to separate package Signed-off-by:Bart Hanssens <ba...@fedict.be>"
This reverts commit 96f7b155dfb2c1422514157dad78113230d99cd0.
Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/d11b5c8e
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/d11b5c8e
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/d11b5c8e
Branch: refs/heads/master
Commit: d11b5c8ea739068abd1ab53fc1360e536d6ea471
Parents: 9941094
Author: Bart.Hanssens <Ba...@AFI-PDEL150164.fed-gov.be>
Authored: Thu Jul 14 09:13:04 2016 +0100
Committer: Bart.Hanssens <Ba...@AFI-PDEL150164.fed-gov.be>
Committed: Thu Jul 14 09:13:04 2016 +0100
----------------------------------------------------------------------
.../java/org/apache/jena/vocabulary/DCAT.java | 64 ++++++++++++++
.../java/org/apache/jena/vocabulary/ORG.java | 92 ++++++++++++++++++++
.../java/org/apache/jena/vocabulary/ROV.java | 55 ++++++++++++
.../java/org/apache/jena/vocabulary/VOID.java | 79 +++++++++++++++++
4 files changed, 290 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jena/blob/d11b5c8e/jena-core/src/main/java/org/apache/jena/vocabulary/DCAT.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/DCAT.java b/jena-core/src/main/java/org/apache/jena/vocabulary/DCAT.java
new file mode 100644
index 0000000..99d4704
--- /dev/null
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/DCAT.java
@@ -0,0 +1,64 @@
+/*
+ * 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 Data Catalog Vocabulary.
+ *
+ * @see <a href="https://www.w3.org/TR/vocab-dcat/">Data Catalog Vocabulary</a>
+ */
+public class DCAT {
+ private static final Model m = ModelFactory.createDefaultModel();
+
+ public static final String NS = "http://www.w3.org/ns/dcat#";
+ 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 Catalog = m.createResource(NS + "Catalog");
+ public static final Resource CatalogRecord = m.createResource(NS + "CatalogRecord");
+ public static final Resource Dataset = m.createResource(NS + "Dataset");
+ public static final Resource Distribution = m.createResource(NS + "Distribution");
+
+ // Properties
+ public static final Property accessURL = m.createProperty(NS + "accessURL");
+ public static final Property byteSize = m.createProperty(NS + "byteSize");
+ public static final Property contactPoint = m.createProperty(NS + "contactPoint");
+ public static final Property dataset = m.createProperty(NS + "dataset");
+ public static final Property distribution = m.createProperty(NS + "distribution");
+ public static final Property downloadURL = m.createProperty(NS + "downloadURL");
+ public static final Property keyword = m.createProperty(NS + "keyword");
+ public static final Property landingPage = m.createProperty(NS + "landingPage");
+ public static final Property mediaType = m.createProperty(NS + "mediaType");
+ public static final Property record = m.createProperty(NS + "record");
+ public static final Property theme = m.createProperty(NS + "theme");
+ public static final Property themeTaxonomy = m.createProperty(NS + "themeTaxonomy");
+}
http://git-wip-us.apache.org/repos/asf/jena/blob/d11b5c8e/jena-core/src/main/java/org/apache/jena/vocabulary/ORG.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/ORG.java b/jena-core/src/main/java/org/apache/jena/vocabulary/ORG.java
new file mode 100644
index 0000000..1678ff2
--- /dev/null
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/ORG.java
@@ -0,0 +1,92 @@
+/*
+ * 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 Organization Ontology.
+ *
+ * @see <a href="https://www.w3.org/TR/vocab-org/">Organization Ontology</a>
+ */
+public class ORG {
+ private static final Model m = ModelFactory.createDefaultModel();
+
+ public static final String NS = "http://www.w3.org/ns/org#";
+ 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 ChangeEvent = m.createResource(NS + "ChangeEvent");
+ public static final Resource FormalOrganization = m.createResource(NS + "FormalOrganization");
+ public static final Resource Membership = m.createResource(NS + "Membership");
+ public static final Resource OrganizationalCollaboration = m.createResource(NS + "OrganizationalCollaboration");
+ public static final Resource OrganizationalUnit = m.createResource(NS + "OrganizationalUnit");
+ public static final Resource Organization = m.createResource(NS + "Organization");
+ public static final Resource Post = m.createResource(NS + "Post");
+ public static final Resource Role = m.createResource(NS + "Role");
+ public static final Resource Site = m.createResource(NS + "Site");
+
+ // Properties
+ public static final Property basedAt = m.createProperty(NS + "basedAt");
+ public static final Property changedBy = m.createProperty(NS + "changedBy");
+ public static final Property classification = m.createProperty(NS + "classification");
+ public static final Property hasMember = m.createProperty(NS + "hasMember");
+ public static final Property hasMembership = m.createProperty(NS + "hasMembership");
+ public static final Property hasPost = m.createProperty(NS + "hasPost");
+ public static final Property hasPrimarySite = m.createProperty(NS + "hasPrimarySite");
+ public static final Property hasRegisteredSite = m.createProperty(NS + "hasRegisteredSite");
+ public static final Property hasSite = m.createProperty(NS + "hasSite");
+ public static final Property hasSubOrganization = m.createProperty(NS + "hasSubOrganization");
+ public static final Property hasUnit = m.createProperty(NS + "hasUnit");
+ public static final Property headOf = m.createProperty(NS + "headOf");
+ public static final Property heldBy = m.createProperty(NS + "heldBy");
+ public static final Property holds = m.createProperty(NS + "holds");
+ public static final Property identifier = m.createProperty(NS + "identifier");
+ public static final Property linkedTo = m.createProperty(NS + "linkedTo");
+ public static final Property location = m.createProperty(NS + "location");
+ public static final Property memberDuring = m.createProperty(NS + "memberDuring");
+ public static final Property memberOf = m.createProperty(NS + "memberOf");
+ public static final Property member = m.createProperty(NS + "member");
+ public static final Property organization = m.createProperty(NS + "organization");
+ public static final Property originalOrganization = m.createProperty(NS + "originalOrganization");
+ public static final Property postIn = m.createProperty(NS + "postIn");
+ public static final Property purpose = m.createProperty(NS + "purpose");
+ public static final Property remuneration = m.createProperty(NS + "remuneration");
+ public static final Property reportsTo = m.createProperty(NS + "reportsTo");
+ public static final Property resultedFrom = m.createProperty(NS + "resultedFrom");
+ public static final Property resultingOrganization = m.createProperty(NS + "resultingOrganization");
+ public static final Property role = m.createProperty(NS + "role");
+ public static final Property roleProperty = m.createProperty(NS + "roleProperty");
+ public static final Property siteAddress = m.createProperty(NS + "siteAddress");
+ public static final Property siteOf = m.createProperty(NS + "siteOf");
+ public static final Property subOrganizationOf = m.createProperty(NS + "subOrganizationOf");
+ public static final Property transitiveSubOrganizationOf = m.createProperty(NS + "transitiveSubOrganizationOf");
+ public static final Property unitOf = m.createProperty(NS + "unitOf");
+}
http://git-wip-us.apache.org/repos/asf/jena/blob/d11b5c8e/jena-core/src/main/java/org/apache/jena/vocabulary/ROV.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/ROV.java b/jena-core/src/main/java/org/apache/jena/vocabulary/ROV.java
new file mode 100644
index 0000000..c48f97b
--- /dev/null
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/ROV.java
@@ -0,0 +1,55 @@
+/*
+ * 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 Registered Organization Vocabulary.
+ *
+ * @see <a href="https://www.w3.org/TR/vocab-regorg/">Registered Organization Vocabulary</a>
+ */
+public class ROV {
+ private static final Model m = ModelFactory.createDefaultModel();
+
+ public static final String NS = "http://www.w3.org/ns/regorg#";
+ 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 RegisteredOrganization = m.createResource(NS + "RegisteredOrganization");
+
+ // Properties
+ public static final Property hasRegisteredOrganization = m.createProperty(NS + "hasRegisteredOrganization");
+ public static final Property legalName = m.createProperty(NS + "legalName");
+ public static final Property orgActivity = m.createProperty(NS + "orgActivity");
+ public static final Property orgStatus = m.createProperty(NS + "orgStatus");
+ public static final Property orgType = m.createProperty(NS + "orgType");
+ public static final Property registration = m.createProperty(NS + "registration");
+}
http://git-wip-us.apache.org/repos/asf/jena/blob/d11b5c8e/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");
+}