01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2007.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.model.vocabulary;
07:
08: import org.openrdf.model.URI;
09: import org.openrdf.model.ValueFactory;
10: import org.openrdf.model.impl.ValueFactoryImpl;
11:
12: /**
13: * Constants for RDF primitives and for the RDF namespace.
14: */
15: public class RDF {
16:
17: /** http://www.w3.org/1999/02/22-rdf-syntax-ns# */
18: public static final String NAMESPACE = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
19:
20: /** http://www.w3.org/1999/02/22-rdf-syntax-ns#type */
21: public final static URI TYPE;
22:
23: /** http://www.w3.org/1999/02/22-rdf-syntax-ns#Property */
24: public final static URI PROPERTY;
25:
26: /** http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral */
27: public final static URI XMLLITERAL;
28:
29: /** http://www.w3.org/1999/02/22-rdf-syntax-ns#subject */
30: public final static URI SUBJECT;
31:
32: /** http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate */
33: public final static URI PREDICATE;
34:
35: /** http://www.w3.org/1999/02/22-rdf-syntax-ns#object */
36: public final static URI OBJECT;
37:
38: /** http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement */
39: public final static URI STATEMENT;
40:
41: /** http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag */
42: public final static URI BAG;
43:
44: /** http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt */
45: public final static URI ALT;
46:
47: /** http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq */
48: public final static URI SEQ;
49:
50: /** http://www.w3.org/1999/02/22-rdf-syntax-ns#value */
51: public final static URI VALUE;
52:
53: /** http://www.w3.org/1999/02/22-rdf-syntax-ns#li */
54: public final static URI LI;
55:
56: /** http://www.w3.org/1999/02/22-rdf-syntax-ns#List */
57: public final static URI LIST;
58:
59: /** http://www.w3.org/1999/02/22-rdf-syntax-ns#first */
60: public final static URI FIRST;
61:
62: /** http://www.w3.org/1999/02/22-rdf-syntax-ns#rest */
63: public final static URI REST;
64:
65: /** http://www.w3.org/1999/02/22-rdf-syntax-ns#nil */
66: public final static URI NIL;
67:
68: static {
69: ValueFactory factory = ValueFactoryImpl.getInstance();
70: TYPE = factory.createURI(RDF.NAMESPACE, "type");
71: PROPERTY = factory.createURI(RDF.NAMESPACE, "Property");
72: XMLLITERAL = factory.createURI(RDF.NAMESPACE, "XMLLiteral");
73: SUBJECT = factory.createURI(RDF.NAMESPACE, "subject");
74: PREDICATE = factory.createURI(RDF.NAMESPACE, "predicate");
75: OBJECT = factory.createURI(RDF.NAMESPACE, "object");
76: STATEMENT = factory.createURI(RDF.NAMESPACE, "Statement");
77: BAG = factory.createURI(RDF.NAMESPACE, "Bag");
78: ALT = factory.createURI(RDF.NAMESPACE, "Alt");
79: SEQ = factory.createURI(RDF.NAMESPACE, "Seq");
80: VALUE = factory.createURI(RDF.NAMESPACE, "value");
81: LI = factory.createURI(RDF.NAMESPACE, "li");
82: LIST = factory.createURI(RDF.NAMESPACE, "List");
83: FIRST = factory.createURI(RDF.NAMESPACE, "first");
84: REST = factory.createURI(RDF.NAMESPACE, "rest");
85: NIL = factory.createURI(RDF.NAMESPACE, "nil");
86: }
87: }
|