1   package eu.fbk.dkm.premon.vocab;
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    * Vocabulary constants for the FrameBase 2.0 meta-vocabulry (FB-META).
10   */
11  public class FBMETA {
12  
13      /** Recommended prefix for the vocabulary namespace: "fb-meta". */
14      public static final String PREFIX = "fb-meta";
15  
16      /** Vocabulary namespace: "http://framebase.org/meta/". */
17      public static final String NAMESPACE = "http://framebase.org/meta/";
18  
19      /** Immutable {@link Namespace} constant for the vocabulary namespace. */
20      public static final Namespace NS = new NamespaceImpl(PREFIX, NAMESPACE);
21  
22      // Classes
23  
24      /** Class fb-meta:Frame. */
25      public static final URI FRAME = createURI("Frame");
26  
27      /** Class fb-meta:Macroframe. */
28      public static final URI MACROFRAME = createURI("Macroframe");
29  
30      /** Class fb-meta:Miniframe. */
31      public static final URI MINIFRAME = createURI("Miniframe");
32  
33      /** Class fb-meta:Microframe. */
34      public static final URI MICROFRAME = createURI("Microframe");
35  
36      /** Class fb-meta:SynsetMicroframe. */
37      public static final URI SYNSET_MICROFRAME = createURI("SynsetMicroframe");
38  
39      /** Class fb-meta:LuMicroframe. */
40      public static final URI LU_MICROFRAME = createURI("LuMicroframe");
41  
42      /** Class fb-meta:MetaPropertyClass. */
43      public static final URI META_PROPERTY_CLASS = createURI("MetaPropertyClass");
44  
45      /** Class fb-meta:MetaClassClass. */
46      public static final URI META_CLASS_CLASS = createURI("MetaClassClass");
47  
48      /** Class fb-meta:FrameElementPropertyClass. */
49      public static final URI FRAME_ELEMENT_PROPERTY_CLASS = createURI("FrameElementPropertyClass");
50  
51      /** Class fb-meta:DirectBinaryPredicateClass. */
52      public static final URI DIRECT_BINARY_PREDICATE_CLASS = createURI(
53              "DirectBinaryPredicateClass");
54  
55      // Object properties
56  
57      /** Object property fb-meta:isPerspectiveOf. */
58      public static final URI IS_PERSPECTIVE_OF = createURI("isPerspectiveOf");
59  
60      /** Object property fb-meta:isSimilarTo. */
61      public static final URI IS_SIMILAR_TO = createURI("isSimilarTo");
62  
63      /** Object property fb-meta:inheritsFrom. */
64      public static final URI INHERITS_FROM = createURI("inheritsFrom");
65  
66      // Datatype properties
67  
68      /** Datatype property fb-meta:hasDefinition. */
69      public static final URI HAS_DEFINITION = createURI("hasDefinition");
70  
71      /** Datatype property fb-meta:hasLexicalForm. */
72      public static final URI HAS_LEXICAL_FORM = createURI("hasLexicalForm");
73  
74      /** Datatype property fb-meta:hasSynsetNumber. */
75      public static final URI HAS_SYNSET_NUMBER = createURI("hasSynsetNumber");
76  
77      /** Datatype property fb-meta:isCreatedFromNumberOfFramenetAnnotatedSentences. */
78      public static final URI IS_CREATED_FROM_NUMBER_OF_FRAMENET_ANNOTATED_SENTENCES = createURI(
79              "isCreatedFromNumberOfFramenetAnnotatedSentences");
80  
81      /** Datatype property fb-meta:hasFramenetLU. */
82      public static final URI HAS_FRAMENET_LU = createURI("hasFramenetLU");
83  
84      /** Datatype property fb-meta:hasTraces. */
85      public static final URI HAS_TRACES = createURI("hasTraces");
86  
87      /** Datatype property fb-meta:hasFramenetFrame. */
88      public static final URI HAS_FRAMENET_FRAME = createURI("hasFramenetFrame");
89  
90      /** Datatype property fb-meta:isOriginalRule. */
91      public static final URI IS_ORIGINAL_RULE = createURI("isOriginalRule");
92  
93      /** Datatype property fb-meta:isExtendedRule. */
94      public static final URI IS_EXTENDED_RULE = createURI("isExtendedRule");
95  
96      /** Datatype property fb-meta:hasFramenetFE. */
97      public static final URI HAS_FRAMENET_FE = createURI("hasFramenetFE");
98  
99      /** Datatype property fb-meta:hasSyntacticallyAnnotatedLexicalLabel. */
100     public static final URI HAS_SYNTACTICALLY_ANNOTATED_LEXICAL_LABEL = createURI(
101             "hasSyntacticallyAnnotatedLexicalLabel");
102 
103     // Utility methods
104 
105     private static URI createURI(final String localName) {
106         return ValueFactoryImpl.getInstance().createURI(NAMESPACE, localName);
107     }
108 
109     private FBMETA() {
110     }
111 
112 }