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 ontological schema (FB).
10   */
11  public final class FB {
12  
13      /** Recommended prefix for the vocabulary namespace: "fb". */
14      public static final String PREFIX = "fb";
15  
16      /** Vocabulary namespace: "http://framebase.org/ns/". */
17      public static final String NAMESPACE = "http://framebase.org/ns/";
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-InverseFunctionalProperty. */
25      public static final URI META_INVERSE_FUNCTIONAL_PROPERTY = createURI("meta-InverseFunctionalProperty");
26  
27      /** Class fb:FrameElementProperty. */
28      public static final URI FRAME_ELEMENT_PROPERTY = createURI("FrameElementProperty");
29  
30      /** Class fb:Frame. */
31      public static final URI FRAME = createURI("Frame");
32  
33      /** Class fb:LuMicroframe. */
34      public static final URI LU_MICROFRAME = createURI("LuMicroframe");
35  
36      /** Class fb:Microframe. */
37      public static final URI MICROFRAME = createURI("Microframe");
38  
39      /** Class fb:SynsetMicroframe. */
40      public static final URI SYNSET_MICROFRAME = createURI("SynsetMicroframe");
41  
42      // Object properties
43  
44      /** Object property fb:inheritsFrom. */
45      public static final URI INHERITS_FROM = createURI("inheritsFrom");
46  
47      /** Object property fb:isPerspectiveOf. */
48      public static final URI IS_PERSPECTIVE_OF = createURI("isPerspectiveOf");
49  
50      // Datatype properties
51  
52      /** Datatype property fb:hasDefinition. */
53      public static final URI HAS_DEFINITION = createURI("hasDefinition");
54  
55      /** Datatype property fb:hasLexicalForm. */
56      public static final URI HAS_LEXICAL_FORM = createURI("hasLexicalForm");
57  
58      /** Datatype property fb:hasSynsetNumber. */
59      public static final URI HAS_SYNSET_NUMBER = createURI("hasSynsetNumber");
60  
61      // Utility methods
62  
63      private static URI createURI(final String localName) {
64          return ValueFactoryImpl.getInstance().createURI(NAMESPACE, localName);
65      }
66  
67      private FB() {
68      }
69  
70  }