001: /*
002: (c) Copyright 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
003: All rights reserved - see end of file.
004: $Id: JA.java,v 1.16 2008/01/31 12:30:47 chris-dollin Exp $
005: */
006:
007: package com.hp.hpl.jena.assembler;
008:
009: import com.hp.hpl.jena.rdf.model.*;
010:
011: public class JA {
012: public static final String uri = "http://jena.hpl.hp.com/2005/11/Assembler#";
013:
014: public static String getURI() {
015: return uri;
016: }
017:
018: protected static Model schema;
019:
020: protected static Resource resource(String localName) {
021: return ResourceFactory.createResource(uri + localName);
022: }
023:
024: public static Property property(String localName) {
025: return ResourceFactory.createProperty(uri + localName);
026: }
027:
028: public static final Resource MemoryModel = resource("MemoryModel");
029:
030: public static final Resource DefaultModel = resource("DefaultModel");
031:
032: public static final Resource InfModel = resource("InfModel");
033:
034: public static final Resource Object = resource("Object");
035:
036: public static final Property reasoner = property("reasoner");
037:
038: public static final Property reasonerURL = property("reasonerURL");
039:
040: public static final Property baseModel = property("baseModel");
041:
042: public static final Property literalContent = property("literalContent");
043:
044: public static final Property connection = property("connection");
045:
046: public static final Property rules = property("rules");
047:
048: public static final Resource Model = resource("Model");
049:
050: public static final Resource OntModel = resource("OntModel");
051:
052: public static final Resource NamedModel = resource("NamedModel");
053:
054: public static final Resource FileModel = resource("FileModel");
055:
056: public static final Resource RDBModel = resource("RDBModel");
057:
058: public static final Resource PrefixMapping = resource("PrefixMapping");
059:
060: public static final Resource ReasonerFactory = resource("ReasonerFactory");
061:
062: public static final Resource HasFileManager = resource("HasFileManager");
063:
064: public static final Resource Content = resource("Content");
065:
066: public static final Resource Connection = resource("Connection");
067:
068: public static final Resource Connectable = resource("Connectable");
069:
070: public static final Resource LiteralContent = resource("LiteralContent");
071:
072: public static final Resource OntModelSpec = resource("OntModelSpec");
073:
074: public static final Resource ModelSource = resource("ModelSource");
075:
076: public static final Resource RDBModelSource = resource("RDBModelSource");
077:
078: public static final Property content = property("content");
079:
080: public static final Resource ExternalContent = resource("ExternalContent");
081:
082: public static final Property externalContent = property("externalContent");
083:
084: public static final Property modelName = property("modelName");
085:
086: public static final Property ontModelSpec = property("ontModelSpec");
087:
088: public static final Resource This = resource("this");
089:
090: public static final Resource True = resource("true");
091:
092: public static final Resource False = resource("false");
093:
094: public static final Resource Expanded = resource("Expanded");
095:
096: public static final Property prefix = property("prefix");
097:
098: public static final Property namespace = property("namespace");
099:
100: public static final Property includes = property("includes");
101:
102: public static final Property directory = property("directory");
103:
104: public static final Property mapName = property("mapName");
105:
106: public static final Property documentManager = property("documentManager");
107:
108: public static final Property ontLanguage = property("ontLanguage");
109:
110: public static final Property importSource = property("importSource");
111:
112: public static final Property quotedContent = property("quotedContent");
113:
114: public static final Property contentEncoding = property("contentEncoding");
115:
116: public static final Property initialContent = property("initialContent");
117:
118: public static final Resource RuleSet = resource("RuleSet");
119:
120: public static final Property rule = property("rule");
121:
122: public static final Resource HasRules = resource("HasRules");
123:
124: public static final Property rulesFrom = property("rulesFrom");
125:
126: public static final Resource ContentItem = resource("ContentItem");
127:
128: public static final Property dbClass = property("dbClass");
129:
130: public static final Resource LocationMapper = resource("LocationMapper");
131:
132: public static final Property locationMapper = property("locationMapper");
133:
134: public static final Resource FileManager = resource("FileManager");
135:
136: public static final Resource DocumentManager = resource("DocumentManager");
137:
138: public static final Property fileManager = property("fileManager");
139:
140: public static final Property policyPath = property("policyPath");
141:
142: public static final Resource UnionModel = resource("UnionModel");
143:
144: public static final Property subModel = property("subModel");
145:
146: public static final Property rootModel = property("rootModel");
147:
148: public static final Property reificationMode = property("reificationMode");
149:
150: public static final Resource minimal = resource("minimal");
151:
152: public static final Resource convenient = resource("convenient");
153:
154: public static final Resource standard = resource("standard");
155:
156: public static final Resource ReificationMode = resource("ReificationMode");
157:
158: public static final Property fileEncoding = property("fileEncoding");
159:
160: public static final Property dbUser = property("dbUser");
161:
162: public static final Property dbUserProperty = property("dbUserProperty");
163:
164: public static final Property dbPassword = property("dbPassword");
165:
166: public static final Property dbPasswordProperty = property("dbPasswordProperty");
167:
168: public static final Property dbURL = property("dbURL");
169:
170: public static final Property dbURLProperty = property("dbURLProperty");
171:
172: public static final Property dbType = property("dbType");
173:
174: public static final Property dbTypeProperty = property("dbTypeProperty");
175:
176: public static final Property dbClassProperty = property("dbClassProperty");
177:
178: public static final Property assembler = property("assembler");
179:
180: public static final Property loadClass = property("loadClass");
181:
182: public static final Property imports = property("imports");
183:
184: public static final Property reasonerFactory = property("reasonerFactory");
185:
186: public static final Property reasonerClass = property("reasonerClass");
187:
188: public static final Property likeBuiltinSpec = property("likeBuiltinSpec");
189:
190: public static Model getSchema() { // inline packagename to avoid clash with /our/ FileManager.
191: if (schema == null)
192: schema = complete(com.hp.hpl.jena.util.FileManager.get()
193: .loadModel(getSchemaPath()));
194: return schema;
195: }
196:
197: private static Model complete(Model m) {
198: Model result = ModelFactory.createDefaultModel();
199: result.add(ModelFactory.createRDFSModel(m));
200: return result;
201: }
202:
203: private static String getSchemaPath() {
204: return "vocabularies/assembler.n3";
205: }
206: }
207:
208: /*
209: * (c) Copyright 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
210: * All rights reserved.
211: *
212: * Redistribution and use in source and binary forms, with or without
213: * modification, are permitted provided that the following conditions
214: * are met:
215: * 1. Redistributions of source code must retain the above copyright
216: * notice, this list of conditions and the following disclaimer.
217: * 2. Redistributions in binary form must reproduce the above copyright
218: * notice, this list of conditions and the following disclaimer in the
219: * documentation and/or other materials provided with the distribution.
220: * 3. The name of the author may not be used to endorse or promote products
221: * derived from this software without specific prior written permission.
222: *
223: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
224: * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
225: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
226: * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
227: * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
228: * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
229: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
230: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
231: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
232: * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
233: */
|