-
Notifications
You must be signed in to change notification settings - Fork 150
Expand file tree
/
Copy pathLDH.java
More file actions
109 lines (85 loc) · 3.91 KB
/
LDH.java
File metadata and controls
109 lines (85 loc) · 3.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/**
* Copyright 2019 Martynas Jusevičius <martynas@atomgraph.com>
*
* 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 com.atomgraph.linkeddatahub.vocabulary;
import org.apache.jena.ontology.DatatypeProperty;
import org.apache.jena.ontology.ObjectProperty;
import org.apache.jena.ontology.OntClass;
import org.apache.jena.ontology.OntModel;
import org.apache.jena.ontology.OntModelSpec;
import org.apache.jena.rdf.model.ModelFactory;
import org.apache.jena.rdf.model.Resource;
/**
* LDH vocabulary.
*
* @author Martynas Jusevičius {@literal <martynas@atomgraph.com>}
*/
public class LDH
{
/** The RDF model that holds the vocabulary terms */
private static OntModel m_model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, null);
/** The namespace of the vocabulary as a string */
public static final String NS = "https://w3id.org/atomgraph/linkeddatahub#";
/**
* The namespace of the vocabulary as a string
*
* @return namespace URI
* @see #NS */
public static String getURI()
{
return NS;
}
/** The namespace of the vocabulary as a resource */
public static final Resource NAMESPACE = m_model.createResource( NS );
/** Dataset class */
public static final OntClass Dataset = m_model.createClass(NS + "Dataset");
/** Generic service class */
public static final OntClass GenericService = m_model.createClass(NS + "GenericService");
/** Import class */
public static final OntClass Import = m_model.createClass(NS + "Import");
/** CSV import class */
public static final OntClass CSVImport = m_model.createClass(NS + "CSVImport");
/** RDF import class */
public static final OntClass RDFImport = m_model.createClass(NS + "RDFImport");
/** File class */
public static final OntClass File = m_model.createClass(NS + "File");
/** Object class */
public static final OntClass Object = m_model.createClass(NS + "Object");
/** View class */
public static final OntClass View = m_model.createClass(NS + "View");
/** URI syntax violation class */
public static final OntClass URISyntaxViolation = m_model.createClass(NS + "URISyntaxViolation");
/** Base property */
public static final ObjectProperty base = m_model.createObjectProperty( NS + "base" );
/** File property */
public static final ObjectProperty file = m_model.createObjectProperty( NS + "file" );
/** Action property */
public static final ObjectProperty action = m_model.createObjectProperty( NS + "action" );
/** Delimiter property */
public static final DatatypeProperty delimiter = m_model.createDatatypeProperty( NS + "delimiter" );
/** Violation value property */
public static final DatatypeProperty violationValue = m_model.createDatatypeProperty( NS + "violationValue" );
/** Request URI property */
public static final ObjectProperty requestUri = m_model.createObjectProperty(NS + "requestUri");
/** Service property */
public static final ObjectProperty service = m_model.createObjectProperty( NS + "service" );
/**
* For shape property */
public static final ObjectProperty forShape = m_model.createObjectProperty( NS + "forShape" );
/**
* Import property - used to import packages into an application */
public static final ObjectProperty importPackage = m_model.createObjectProperty( NS + "import" );
}