001: /*
002: * (c) Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
003: * All rights reserved.
004: * [See end of file]
005: * $Id: RDFSyntax.java,v 1.6 2008/01/02 12:07:28 andy_seaborne Exp $
006: */
007:
008: package com.hp.hpl.jena.vocabulary;
009:
010: import com.hp.hpl.jena.rdf.model.impl.ResourceImpl;
011:
012: import com.hp.hpl.jena.rdf.model.Resource;
013:
014: /**
015: * This class includes fragment IDs from the
016: * <a href="http://www.w3.org/TR/rdf-syntax-grammar">
017: * RDF Syntax WD</a>, to identify grammar rules etc.
018: * using in the Jena I/O routines.
019: * These URIs can be used in some options (specifically
020: * the configuration of the RDF/XML-ABBREV writer) to indicate
021: * behaviour concerning these rules.
022: * @author jjc
023: */
024: public class RDFSyntax {
025: protected static final String uri = "http://www.w3.org/TR/rdf-syntax-grammar#";
026:
027: static public String getURI() {
028: return uri;
029: }
030:
031: static final public Resource coreSyntaxTerms = new ResourceImpl(uri
032: + "coreSyntaxTerms");
033: static final public Resource syntaxTerms = new ResourceImpl(uri
034: + "syntaxTerms");
035: static final public Resource oldTerms = new ResourceImpl(uri
036: + "oldTerms");
037: static final public Resource nodeElementURIs = new ResourceImpl(uri
038: + "nodeElementURIs");
039: static final public Resource propertyElementURIs = new ResourceImpl(
040: uri + "propertyElementURIs");
041: static final public Resource propertyAttributeURIs = new ResourceImpl(
042: uri + "propertyAttributeURIs");
043: static final public Resource doc = new ResourceImpl(uri + "doc");
044: static final public Resource RDF = new ResourceImpl(uri + "RDF");
045: static final public Resource nodeElementList = new ResourceImpl(uri
046: + "nodeElementList");
047: static final public Resource nodeElement = new ResourceImpl(uri
048: + "nodeElement");
049: static final public Resource ws = new ResourceImpl(uri + "ws");
050: static final public Resource propertyEltList = new ResourceImpl(uri
051: + "propertyEltList");
052: static final public Resource propertyElt = new ResourceImpl(uri
053: + "propertyElt");
054: static final public Resource resourcePropertyElt = new ResourceImpl(
055: uri + "resourcePropertyElt");
056: static final public Resource literalPropertyElt = new ResourceImpl(
057: uri + "literalPropertyElt");
058: static final public Resource parseTypeLiteralPropertyElt = new ResourceImpl(
059: uri + "parseTypeLiteralPropertyElt");
060: static final public Resource parseTypeResourcePropertyElt = new ResourceImpl(
061: uri + "parseTypeResourcePropertyElt");
062: static final public Resource parseTypeCollectionPropertyElt = new ResourceImpl(
063: uri + "parseTypeCollectionPropertyElt");
064: static final public Resource parseTypeOtherPropertyElt = new ResourceImpl(
065: uri + "parseTypeOtherPropertyElt");
066: static final public Resource emptyPropertyElt = new ResourceImpl(
067: uri + "emptyPropertyElt");
068: static final public Resource idAttr = new ResourceImpl(uri
069: + "idAttr");
070: static final public Resource nodeIdAttr = new ResourceImpl(uri
071: + "nodeIdAttr");
072: static final public Resource aboutAttr = new ResourceImpl(uri
073: + "aboutAttr");
074: static final public Resource bagIdAttr = new ResourceImpl(uri
075: + "bagIdAttr");
076: static final public Resource propertyAttr = new ResourceImpl(uri
077: + "propertyAttr");
078: static final public Resource resourceAttr = new ResourceImpl(uri
079: + "resourceAttr");
080: static final public Resource datatypeAttr = new ResourceImpl(uri
081: + "datatypeAttr");
082: static final public Resource parseLiteral = new ResourceImpl(uri
083: + "parseLiteral");
084: static final public Resource parseResource = new ResourceImpl(uri
085: + "parseResource");
086: static final public Resource parseCollection = new ResourceImpl(uri
087: + "parseCollection");
088: static final public Resource parseOther = new ResourceImpl(uri
089: + "parseOther");
090: static final public Resource URIReference = new ResourceImpl(uri
091: + "URI-reference");
092: static final public Resource literal = new ResourceImpl(uri
093: + "literal");
094: static final public Resource rdfId = new ResourceImpl(uri
095: + "rdf-id");
096: static final public Resource sectionReification = new ResourceImpl(
097: uri + "section-Reification");
098: static final public Resource sectionListExpand = new ResourceImpl(
099: uri + "section-List-Expand");
100:
101: }
102:
103: /*
104: * (c) Copyright 2000, 2001, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
105: * All rights reserved.
106: *
107: * Redistribution and use in source and binary forms, with or without
108: * modification, are permitted provided that the following conditions
109: * are met:
110: * 1. Redistributions of source code must retain the above copyright
111: * notice, this list of conditions and the following disclaimer.
112: * 2. Redistributions in binary form must reproduce the above copyright
113: * notice, this list of conditions and the following disclaimer in the
114: * documentation and/or other materials provided with the distribution.
115: * 3. The name of the author may not be used to endorse or promote products
116: * derived from this software without specific prior written permission.
117:
118: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
119: * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
120: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
121: * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
122: * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
123: * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
124: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
125: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
126: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
127: * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
128: *
129: * RDF.java
130: *
131: * Created on 28 July 2000, 18:12
132: */
|