/* * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2007. * * Licensed under the Aduna BSD-style license. */ package org.openrdf.model.vocabulary; import org.openrdf.model.URI; import org.openrdf.model.ValueFactory; import org.openrdf.model.impl.ValueFactoryImpl; /** * Constants for RDF primitives and for the RDF namespace. */ public class RDF { /** http://www.w3.org/1999/02/22-rdf-syntax-ns# */ public static final String NAMESPACE = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; /** http://www.w3.org/1999/02/22-rdf-syntax-ns#type */ public final static URI TYPE; /** http://www.w3.org/1999/02/22-rdf-syntax-ns#Property */ public final static URI PROPERTY; /** http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral */ public final static URI XMLLITERAL; /** http://www.w3.org/1999/02/22-rdf-syntax-ns#subject */ public final static URI SUBJECT; /** http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate */ public final static URI PREDICATE; /** http://www.w3.org/1999/02/22-rdf-syntax-ns#object */ public final static URI OBJECT; /** http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement */ public final static URI STATEMENT; /** http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag */ public final static URI BAG; /** http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt */ public final static URI ALT; /** http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq */ public final static URI SEQ; /** http://www.w3.org/1999/02/22-rdf-syntax-ns#value */ public final static URI VALUE; /** http://www.w3.org/1999/02/22-rdf-syntax-ns#li */ public final static URI LI; /** http://www.w3.org/1999/02/22-rdf-syntax-ns#List */ public final static URI LIST; /** http://www.w3.org/1999/02/22-rdf-syntax-ns#first */ public final static URI FIRST; /** http://www.w3.org/1999/02/22-rdf-syntax-ns#rest */ public final static URI REST; /** http://www.w3.org/1999/02/22-rdf-syntax-ns#nil */ public final static URI NIL; static{ ValueFactory factory = ValueFactoryImpl.getInstance(); TYPE = factory.createURI(RDF.NAMESPACE, "type"); PROPERTY = factory.createURI(RDF.NAMESPACE, "Property"); XMLLITERAL = factory.createURI(RDF.NAMESPACE, "XMLLiteral"); SUBJECT = factory.createURI(RDF.NAMESPACE, "subject"); PREDICATE = factory.createURI(RDF.NAMESPACE, "predicate"); OBJECT = factory.createURI(RDF.NAMESPACE, "object"); STATEMENT = factory.createURI(RDF.NAMESPACE, "Statement"); BAG = factory.createURI(RDF.NAMESPACE, "Bag"); ALT = factory.createURI(RDF.NAMESPACE, "Alt"); SEQ = factory.createURI(RDF.NAMESPACE, "Seq"); VALUE = factory.createURI(RDF.NAMESPACE, "value"); LI = factory.createURI(RDF.NAMESPACE, "li"); LIST = factory.createURI(RDF.NAMESPACE, "List"); FIRST = factory.createURI(RDF.NAMESPACE, "first"); REST = factory.createURI(RDF.NAMESPACE, "rest"); NIL = factory.createURI(RDF.NAMESPACE, "nil"); } }