001: /**
002: * generated by http://RDFReactor.semweb4j.org ($Id: CodeGenerator.java 1046 2008-01-26 14:38:26Z max.at.xam.de $) on 26.01.08 15:47
003: */package com.example;
004:
005: import org.ontoware.aifbcommons.collection.ClosableIterator;
006: import org.ontoware.rdf2go.exception.ModelRuntimeException;
007: import org.ontoware.rdf2go.model.Model;
008: import org.ontoware.rdf2go.model.node.BlankNode;
009: import org.ontoware.rdf2go.model.node.URI;
010: import org.ontoware.rdf2go.model.node.impl.URIImpl;
011: import org.ontoware.rdfreactor.runtime.Base;
012: import org.ontoware.rdfreactor.runtime.ReactorResult;
013:
014: /**
015: * This class was generated by <a href="http://RDFReactor.semweb4j.org">RDFReactor</a> on 26.01.08 15:47
016: */
017: public class BBB extends Thing {
018:
019: /** urn:ex:BBB */
020: public static final URI RDFS_CLASS = new URIImpl("urn:ex:BBB",
021: false);
022:
023: /** all property-URIs with this class as domain */
024: public static final URI[] MANAGED_URIS = {
025:
026: };
027:
028: // protected constructors needed for inheritance
029:
030: /**
031: * Returns a Java wrapper over an RDF object, identified by URI.
032: * Creating two wrappers for the same instanceURI is legal.
033: * @param model RDF2GO Model implementation, see http://rdf2go.semweb4j.org
034: * @param classURI URI of RDFS class
035: * @param instanceIdentifier Resource that identifies this instance
036: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
037: *
038: * [Generated from RDFReactor template rule #c1]
039: */
040: protected BBB(Model model, URI classURI,
041: org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
042: boolean write) {
043: super (model, classURI, instanceIdentifier, write);
044: }
045:
046: // public constructors
047:
048: /**
049: * Returns a Java wrapper over an RDF object, identified by URI.
050: * Creating two wrappers for the same instanceURI is legal.
051: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
052: * @param instanceIdentifier an RDF2Go Resource identifying this instance
053: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
054: *
055: * [Generated from RDFReactor template rule #c2]
056: */
057: public BBB(Model model,
058: org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
059: boolean write) {
060: super (model, RDFS_CLASS, instanceIdentifier, write);
061: }
062:
063: /**
064: * Returns a Java wrapper over an RDF object, identified by a URI, given as a String.
065: * Creating two wrappers for the same URI is legal.
066: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
067: * @param uriString a URI given as a String
068: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
069: * @throws ModelRuntimeException if URI syntax is wrong
070: *
071: * [Generated from RDFReactor template rule #c7]
072: */
073: public BBB(Model model, String uriString, boolean write)
074: throws ModelRuntimeException {
075: super (model, RDFS_CLASS, new URIImpl(uriString, false), write);
076: }
077:
078: /**
079: * Returns a Java wrapper over an RDF object, identified by a blank node.
080: * Creating two wrappers for the same blank node is legal.
081: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
082: * @param bnode BlankNode of this instance
083: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
084: *
085: * [Generated from RDFReactor template rule #c8]
086: */
087: public BBB(Model model, BlankNode bnode, boolean write) {
088: super (model, RDFS_CLASS, bnode, write);
089: }
090:
091: /**
092: * Returns a Java wrapper over an RDF object, identified by
093: * a randomly generated URI.
094: * Creating two wrappers results in different URIs.
095: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
096: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
097: *
098: * [Generated from RDFReactor template rule #c9]
099: */
100: public BBB(Model model, boolean write) {
101: super (model, RDFS_CLASS, model.newRandomUniqueURI(), write);
102: }
103:
104: ///////////////////////////////////////////////////////////////////
105: // typing
106:
107: /**
108: * Create a new instance of this class in the model.
109: * That is, create the statement (instanceResource, RDF.type, urn:ex:BBB).
110: * @param model an RDF2Go model
111: * @param instanceResource an RDF2Go resource
112: *
113: * [Generated from RDFReactor template rule #class1]
114: */
115: public static void createInstance(Model model,
116: org.ontoware.rdf2go.model.node.Resource instanceResource) {
117: Base.createInstance(model, RDFS_CLASS, instanceResource);
118: }
119:
120: /**
121: * @param model an RDF2Go model
122: * @param instanceResource an RDF2Go resource
123: * @return true if instanceResource is an instance of this class in the model
124: *
125: * [Generated from RDFReactor template rule #class2]
126: */
127: public static boolean hasInstance(Model model,
128: org.ontoware.rdf2go.model.node.Resource instanceResource) {
129: return Base.hasInstance(model, RDFS_CLASS, instanceResource);
130: }
131:
132: /**
133: * @param model an RDF2Go model
134: * @return all instances of this class in Model 'model' as RDF resources
135: *
136: * [Generated from RDFReactor template rule #class3]
137: */
138: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllInstances(
139: Model model) {
140: return Base.getAllInstances(model, RDFS_CLASS,
141: org.ontoware.rdf2go.model.node.Resource.class);
142: }
143:
144: /**
145: * @param model an RDF2Go model
146: * @return all instances of this class in Model 'model' as a ReactorResult,
147: * which can conveniently be converted to iterator, list or array.
148: *
149: * [Generated from RDFReactor template rule #class3-as]
150: */
151: public static ReactorResult<? extends BBB> getAllInstance_as(
152: Model model) {
153: return Base.getAllInstances_as(model, RDFS_CLASS, BBB.class);
154: }
155:
156: /**
157: * Delete all rdf:type from this instance. Other triples are not affected.
158: * @param model an RDF2Go model
159: * @param instanceResource an RDF2Go resource
160: *
161: * [Generated from RDFReactor template rule #class4]
162: */
163: public static void deleteInstance(Model model,
164: org.ontoware.rdf2go.model.node.Resource instanceResource) {
165: Base.deleteInstance(model, RDFS_CLASS, instanceResource);
166: }
167:
168: ///////////////////////////////////////////////////////////////////
169: // property access methods
170:
171: /**
172: * @param model an RDF2Go model
173: * @param objectValue
174: * @return all A's as RDF resources, that have a relation 'Ppp1' to this BBB instance
175: *
176: * [Generated from RDFReactor template rule #getallinverse1static]
177: */
178: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllPpp1_Inverse(
179: Model model, Object objectValue) {
180: return Base.getAll_Inverse(model, AAA.PPP1, objectValue);
181: }
182:
183: /**
184: * @param model an RDF2Go model
185: * @param objectValue
186: * @return all A's as RDF resources, that have a relation 'Ppp10' to this BBB instance
187: *
188: * [Generated from RDFReactor template rule #getallinverse1static]
189: */
190: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllPpp10_Inverse(
191: Model model, Object objectValue) {
192: return Base.getAll_Inverse(model, AAA.PPP10, objectValue);
193: }
194:
195: /**
196: * @param model an RDF2Go model
197: * @param objectValue
198: * @return all A's as RDF resources, that have a relation 'Ppp11' to this BBB instance
199: *
200: * [Generated from RDFReactor template rule #getallinverse1static]
201: */
202: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllPpp11_Inverse(
203: Model model, Object objectValue) {
204: return Base.getAll_Inverse(model, AAA.PPP11, objectValue);
205: }
206:
207: /**
208: * @param model an RDF2Go model
209: * @param objectValue
210: * @return all A's as RDF resources, that have a relation 'Ppp12' to this BBB instance
211: *
212: * [Generated from RDFReactor template rule #getallinverse1static]
213: */
214: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllPpp12_Inverse(
215: Model model, Object objectValue) {
216: return Base.getAll_Inverse(model, AAA.PPP12, objectValue);
217: }
218:
219: /**
220: * @param model an RDF2Go model
221: * @param objectValue
222: * @return all A's as RDF resources, that have a relation 'Ppp13' to this BBB instance
223: *
224: * [Generated from RDFReactor template rule #getallinverse1static]
225: */
226: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllPpp13_Inverse(
227: Model model, Object objectValue) {
228: return Base.getAll_Inverse(model, AAA.PPP13, objectValue);
229: }
230:
231: /**
232: * @param model an RDF2Go model
233: * @param objectValue
234: * @return all A's as RDF resources, that have a relation 'Ppp14' to this BBB instance
235: *
236: * [Generated from RDFReactor template rule #getallinverse1static]
237: */
238: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllPpp14_Inverse(
239: Model model, Object objectValue) {
240: return Base.getAll_Inverse(model, AAA.PPP14, objectValue);
241: }
242:
243: /**
244: * @param model an RDF2Go model
245: * @param objectValue
246: * @return all A's as RDF resources, that have a relation 'Ppp15' to this BBB instance
247: *
248: * [Generated from RDFReactor template rule #getallinverse1static]
249: */
250: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllPpp15_Inverse(
251: Model model, Object objectValue) {
252: return Base.getAll_Inverse(model, AAA.PPP15, objectValue);
253: }
254:
255: /**
256: * @param model an RDF2Go model
257: * @param objectValue
258: * @return all A's as RDF resources, that have a relation 'Ppp16' to this BBB instance
259: *
260: * [Generated from RDFReactor template rule #getallinverse1static]
261: */
262: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllPpp16_Inverse(
263: Model model, Object objectValue) {
264: return Base.getAll_Inverse(model, AAA.PPP16, objectValue);
265: }
266:
267: /**
268: * @param model an RDF2Go model
269: * @param objectValue
270: * @return all A's as RDF resources, that have a relation 'Ppp17' to this BBB instance
271: *
272: * [Generated from RDFReactor template rule #getallinverse1static]
273: */
274: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllPpp17_Inverse(
275: Model model, Object objectValue) {
276: return Base.getAll_Inverse(model, AAA.PPP17, objectValue);
277: }
278:
279: /**
280: * @param model an RDF2Go model
281: * @param objectValue
282: * @return all A's as RDF resources, that have a relation 'Ppp18' to this BBB instance
283: *
284: * [Generated from RDFReactor template rule #getallinverse1static]
285: */
286: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllPpp18_Inverse(
287: Model model, Object objectValue) {
288: return Base.getAll_Inverse(model, AAA.PPP18, objectValue);
289: }
290:
291: /**
292: * @param model an RDF2Go model
293: * @param objectValue
294: * @return all A's as RDF resources, that have a relation 'Ppp19' to this BBB instance
295: *
296: * [Generated from RDFReactor template rule #getallinverse1static]
297: */
298: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllPpp19_Inverse(
299: Model model, Object objectValue) {
300: return Base.getAll_Inverse(model, AAA.PPP19, objectValue);
301: }
302:
303: /**
304: * @param model an RDF2Go model
305: * @param objectValue
306: * @return all A's as RDF resources, that have a relation 'Ppp2' to this BBB instance
307: *
308: * [Generated from RDFReactor template rule #getallinverse1static]
309: */
310: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllPpp2_Inverse(
311: Model model, Object objectValue) {
312: return Base.getAll_Inverse(model, AAA.PPP2, objectValue);
313: }
314:
315: /**
316: * @param model an RDF2Go model
317: * @param objectValue
318: * @return all A's as RDF resources, that have a relation 'Ppp3' to this BBB instance
319: *
320: * [Generated from RDFReactor template rule #getallinverse1static]
321: */
322: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllPpp3_Inverse(
323: Model model, Object objectValue) {
324: return Base.getAll_Inverse(model, AAA.PPP3, objectValue);
325: }
326:
327: /**
328: * @param model an RDF2Go model
329: * @param objectValue
330: * @return all A's as RDF resources, that have a relation 'Ppp4' to this BBB instance
331: *
332: * [Generated from RDFReactor template rule #getallinverse1static]
333: */
334: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllPpp4_Inverse(
335: Model model, Object objectValue) {
336: return Base.getAll_Inverse(model, AAA.PPP4, objectValue);
337: }
338:
339: /**
340: * @param model an RDF2Go model
341: * @param objectValue
342: * @return all A's as RDF resources, that have a relation 'Ppp5' to this BBB instance
343: *
344: * [Generated from RDFReactor template rule #getallinverse1static]
345: */
346: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllPpp5_Inverse(
347: Model model, Object objectValue) {
348: return Base.getAll_Inverse(model, AAA.PPP5, objectValue);
349: }
350:
351: /**
352: * @param model an RDF2Go model
353: * @param objectValue
354: * @return all A's as RDF resources, that have a relation 'Ppp6' to this BBB instance
355: *
356: * [Generated from RDFReactor template rule #getallinverse1static]
357: */
358: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllPpp6_Inverse(
359: Model model, Object objectValue) {
360: return Base.getAll_Inverse(model, AAA.PPP6, objectValue);
361: }
362:
363: /**
364: * @param model an RDF2Go model
365: * @param objectValue
366: * @return all A's as RDF resources, that have a relation 'Ppp7' to this BBB instance
367: *
368: * [Generated from RDFReactor template rule #getallinverse1static]
369: */
370: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllPpp7_Inverse(
371: Model model, Object objectValue) {
372: return Base.getAll_Inverse(model, AAA.PPP7, objectValue);
373: }
374:
375: /**
376: * @param model an RDF2Go model
377: * @param objectValue
378: * @return all A's as RDF resources, that have a relation 'Ppp8' to this BBB instance
379: *
380: * [Generated from RDFReactor template rule #getallinverse1static]
381: */
382: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllPpp8_Inverse(
383: Model model, Object objectValue) {
384: return Base.getAll_Inverse(model, AAA.PPP8, objectValue);
385: }
386:
387: /**
388: * @param model an RDF2Go model
389: * @param objectValue
390: * @return all A's as RDF resources, that have a relation 'Ppp9' to this BBB instance
391: *
392: * [Generated from RDFReactor template rule #getallinverse1static]
393: */
394: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllPpp9_Inverse(
395: Model model, Object objectValue) {
396: return Base.getAll_Inverse(model, AAA.PPP9, objectValue);
397: }
398:
399: }
|