1   package eu.fbk.knowledgestore.vocabulary;
2   
3   import org.openrdf.model.Namespace;
4   import org.openrdf.model.URI;
5   import org.openrdf.model.impl.NamespaceImpl;
6   import org.openrdf.model.impl.ValueFactoryImpl;
7   
8   /**
9    * Constants for the KnowledgeStore Core Data Model.
10   * 
11   * @see <a href="http://dkm.fbk.eu/ontologies/knowledgestore">vocabulary specification</a>
12   */
13  public final class KS {
14  
15      /** Recommended prefix for the vocabulary namespace: "ks". */
16      public static final String PREFIX = "ks";
17  
18      /** Vocabulary namespace: "http://dkm.fbk.eu/ontologies/knowledgestore#". */
19      public static final String NAMESPACE = "http://dkm.fbk.eu/ontologies/knowledgestore#";
20  
21      /** Immutable {@link Namespace} constant for the vocabulary namespace. */
22      public static final Namespace NS = new NamespaceImpl(PREFIX, NAMESPACE);
23  
24      // CLASSES
25  
26      /** Class ks:User. */
27      public static final URI USER = createURI("User");
28  
29      /** Class ks:Axiom. */
30      public static final URI AXIOM = createURI("Axiom");
31  
32      /** Class ks:Combination. */
33      public static final URI COMBINATION = createURI("Combination");
34  
35      /** Class ks:Context. */
36      public static final URI CONTEXT = createURI("Context");
37  
38      /** Class ks:Entity. */
39      public static final URI ENTITY = createURI("Entity");
40  
41      /** Class ks:Mention. */
42      public static final URI MENTION = createURI("Mention");
43  
44      /** Class ks:Representation. */
45      public static final URI REPRESENTATION = createURI("Representation");
46  
47      /** Class ks:Resource. */
48      public static final URI RESOURCE = createURI("Resource");
49  
50      // PROPERTIES
51  
52      /** Property ks:hasCredential. */
53      public static final URI HAS_CREDENTIAL = createURI("hasCredential");
54  
55      /** Property ks:hasPermission. */
56      public static final URI HAS_PERMISSION = createURI("hasPemission");
57  
58      /** Property ks:describedBy. */
59      public static final URI DESCRIBED_BY = createURI("describedBy");
60  
61      /** Property ks:describes. */
62      public static final URI DESCRIBES = createURI("describes");
63  
64      /** Property ks:encodedBy. */
65      public static final URI ENCODED_BY = createURI("encodedBy");
66  
67      /** Property ks:expressedBy. */
68      public static final URI EXPRESSED_BY = createURI("expressedBy");
69  
70      /** Property ks:expresses. */
71      public static final URI EXPRESSES = createURI("expresses");
72  
73      /** Property ks:hasMention. */
74      public static final URI HAS_MENTION = createURI("hasMention");
75  
76      /** Property ks:holdsIn. */
77      public static final URI HOLDS_IN = createURI("holdsIn");
78  
79      /** Property ks:matchedAxiom. */
80      public static final URI MATCHED_AXIOM = createURI("matchedAxiom");
81  
82      /** Property ks:matchedEntity. */
83      public static final URI MATCHED_ENTITY = createURI("matchedEntity");
84  
85      /** Property ks:matchedMention. */
86      public static final URI MATCHED_MENTION = createURI("matchedMention");
87  
88      /** Property ks:matchedResource. */
89      public static final URI MATCHED_RESOURCE = createURI("matchedResource");
90  
91      /** Property ks:mentionOf. */
92      public static final URI MENTION_OF = createURI("mentionOf");
93  
94      /** Property ks:referredBy. */
95      public static final URI REFERRED_BY = createURI("referredBy");
96  
97      /** Property ks:refersTo. */
98      public static final URI REFERS_TO = createURI("refersTo");
99  
100     /** Property ks:storedAs. */
101     public static final URI STORED_AS = createURI("storedAs");
102 
103     /** Property ks:storedAttribute. */
104     public static final URI STORED_ATTRIBUTE = createURI("storedAttribute");
105 
106     // INDIVIDUALS
107 
108     /** Individual ks:global. */
109     public static final URI GLOBAL = createURI("global");
110 
111     // HELPER METHODS
112 
113     private static URI createURI(final String localName) {
114         return ValueFactoryImpl.getInstance().createURI(NAMESPACE, localName);
115     }
116 
117     private KS() {
118     }
119 
120 }