001: /*
002: * (c) Copyright 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
003: * [See end of file]
004: */
005:
006: package com.hp.hpl.jena.rdf.arp.impl;
007:
008: public interface Names {
009: String rdfns = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
010: .intern();
011:
012: String xmlns = "http://www.w3.org/XML/1998/namespace".intern();
013: String damlns = "http://www.daml.org/2001/03/daml+oil#";
014: String xmlnsns = "http://www.w3.org/2000/xmlns/";
015:
016: int A_XMLBASE = 1;
017:
018: int A_XMLLANG = 2;
019:
020: int A_XML_OTHER = 4;
021:
022: int A_XMLNS = 32768;
023:
024: int A_ID = 8;
025:
026: int A_ABOUT = 16;
027:
028: int A_NODEID = 32;
029:
030: int A_RESOURCE = 64;
031:
032: int A_PARSETYPE = 128;
033:
034: int A_DATATYPE = 256;
035:
036: int A_TYPE = 512;
037:
038: int A_DEPRECATED = 1024;
039:
040: int A_BAGID = 16384;
041:
042: int E_LI = 2048;
043:
044: int E_RDF = 4096;
045:
046: int E_DESCRIPTION = 8192;
047:
048: // see sections 7.2.[2-5] of RDF Syntax (Revised)
049: int CoreAndOldTerms = E_RDF | A_DEPRECATED | A_ABOUT | A_ID
050: | A_NODEID | A_RESOURCE | A_PARSETYPE | A_DATATYPE
051: | A_BAGID;
052:
053: int A_BADATTRS = CoreAndOldTerms | E_LI | E_DESCRIPTION;
054:
055: ANode RDF_STATEMENT = URIReference.createNoChecks(rdfns
056: + "Statement");
057:
058: ANode RDF_TYPE = URIReference.createNoChecks((rdfns + "type"));
059:
060: ANode RDF_SUBJECT = URIReference
061: .createNoChecks((rdfns + "subject"));
062:
063: ANode RDF_PREDICATE = URIReference.createNoChecks(rdfns
064: + "predicate");
065:
066: ANode RDF_OBJECT = URIReference.createNoChecks((rdfns + "object"));
067:
068: ANode RDF_NIL = URIReference.createNoChecks(rdfns + "nil");
069:
070: ANode RDF_FIRST = URIReference.createNoChecks(rdfns + "first");
071: ANode RDF_REST = URIReference.createNoChecks(rdfns + "rest");
072:
073: ANode DAML_NIL = URIReference.createNoChecks(damlns + "nil");
074:
075: ANode DAML_FIRST = URIReference.createNoChecks(damlns + "first");
076: ANode DAML_REST = URIReference.createNoChecks(damlns + "rest");
077: ANode DAML_LIST = URIReference.createNoChecks(damlns + "List");
078: }
079:
080: /*
081: * (c) Copyright 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP All rights
082: * reserved.
083: *
084: * Redistribution and use in source and binary forms, with or without
085: * modification, are permitted provided that the following conditions are met:
086: * 1. Redistributions of source code must retain the above copyright notice,
087: * this list of conditions and the following disclaimer. 2. Redistributions in
088: * binary form must reproduce the above copyright notice, this list of
089: * conditions and the following disclaimer in the documentation and/or other
090: * materials provided with the distribution. 3. The name of the author may not
091: * be used to endorse or promote products derived from this software without
092: * specific prior written permission.
093: *
094: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
095: * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
096: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
097: * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
098: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
099: * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
100: * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
101: * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
102: * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
103: * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
104: */
|