1   package eu.fbk.dkm.pikes.rdf.vocab;
2   
3   import org.eclipse.rdf4j.model.Namespace;
4   import org.eclipse.rdf4j.model.IRI;
5   import org.eclipse.rdf4j.model.impl.SimpleNamespace;
6   import org.eclipse.rdf4j.model.impl.SimpleValueFactory;
7   
8   public final class KS {
9   
10      public static final String PREFIX = "ks";
11  
12      public static final String NAMESPACE = "http://dkm.fbk.eu/ontologies/knowledgestore#";
13  
14      public static final Namespace NS = new SimpleNamespace(PREFIX, NAMESPACE);
15  
16      // RESOURCE LAYER
17  
18      public static final IRI RESOURCE = createIRI("Resource");
19  
20      public static final IRI TEXT = createIRI("Text");
21  
22      public static final IRI NAF = createIRI("NAF");
23  
24      public static final IRI TEXT_HASH = createIRI("textHash");
25  
26      public static final IRI ANNOTATED_WITH = createIRI("annotatedWith");
27  
28      public static final IRI ANNOTATION_OF = createIRI("annotationOf");
29  
30      public static final IRI VERSION = createIRI("version");
31  
32      public static final IRI LAYER = createIRI("layer");
33  
34      public static final IRI NAF_FILE_NAME = createIRI("nafFileName");
35  
36      public static final IRI NAF_FILE_TYPE = createIRI("nafFileType");
37  
38      public static final IRI NAF_PAGES = createIRI("nafPages");
39  
40      // MENTION LAYER
41  
42      public static final IRI MENTION = createIRI("Mention");
43  
44      public static final IRI INSTANCE_MENTION = createIRI("InstanceMention");
45  
46      public static final IRI ATTRIBUTE_MENTION = createIRI("AttributeMention");
47  
48      public static final IRI TIME_MENTION = createIRI("TimeMention");
49  
50      public static final IRI FRAME_MENTION = createIRI("FrameMention");
51  
52      public static final IRI NAME_MENTION = createIRI("NameMention");
53  
54      public static final IRI PARTICIPATION_MENTION = createIRI("ParticipationMention");
55  
56      public static final IRI COREFERENCE_MENTION = createIRI("CoreferenceMention");
57  
58      public static final IRI LINKED_TO = createIRI("linkedTo");
59  
60      public static final IRI SYNSET = createIRI("synset");
61  
62      public static final IRI MODIFIER_SYNSET = createIRI("modifierSynset");
63  
64      public static final IRI NORMALIZED_VALUE = createIRI("normalizedValue");
65  
66      public static final IRI BEGIN_POINT = createIRI("normalizedValue"); // TODO
67  
68      public static final IRI END_POINT = createIRI("endPointValue"); // TODO
69  
70      public static final IRI ANCHOR_TIME = createIRI("anchorTime"); // TODO
71  
72      public static final IRI ROLESET = createIRI("roleset");
73  
74      public static final IRI FACTUALITY = createIRI("factuality"); // TODO
75  
76      public static final IRI POLARITY = createIRI("polarity"); // TODO
77  
78      public static final IRI NERC_TYPE = createIRI("nercType");
79  
80      public static final IRI FRAME_PROPERTY = createIRI("frame");
81  
82      public static final IRI ARGUMENT = createIRI("argument");
83  
84      public static final IRI ROLE = createIRI("role");
85  
86      public static final IRI COREFERENTIAL = createIRI("coreferential");
87  
88      public static final IRI COREFERENTIAL_CONJUNCT = createIRI("coreferentialConjunct");
89  
90      public static final IRI EXPRESSES = createIRI("expresses");
91  
92      public static final IRI DENOTES = createIRI("denotes");
93  
94      public static final IRI IMPLIES = createIRI("implies");
95  
96      public static final IRI MENTION_OF = createIRI("mentionOf");
97  
98      public static final IRI COMPOUND_STRING = createIRI("CompoundString");
99  
100     public static final IRI COMPONENT_SUB_STRING = createIRI("componentSubString");
101 
102     public static final IRI LEMMA = createIRI("lemma"); // TODO
103 
104     public static final IRI SST = createIRI("sst"); // TODO
105 
106     public static final IRI PLURAL = createIRI("plural"); // TODO
107 
108     // ENTITY LAYER
109 
110     public static final IRI INSTANCE = createIRI("Instance");
111 
112     public static final IRI ATTRIBUTE = createIRI("Attribute");
113 
114     public static final IRI TIME = createIRI("Time");
115 
116     public static final IRI FRAME = createIRI("Frame");
117 
118     public static final IRI INCLUDE = createIRI("include");
119 
120     // MAPPING
121 
122     public static final IRI ARGUMENT_NOMINALIZATION = createIRI("ArgumentNominalization");
123 
124     public static final IRI MAPPED_TO = createIRI("mappedTo");
125 
126     public static final IRI SUBJECT_ROLE = createIRI("subjectRole");
127 
128     public static final IRI COMPLEMENT_ROLE = createIRI("complementRole");
129 
130     // HELPER METHODS
131 
132     private static IRI createIRI(final String localName) {
133         return SimpleValueFactory.getInstance().createIRI(NAMESPACE, localName);
134     }
135 
136     private KS() {
137     }
138 
139 }