001: /**
002: * generated by http://RDFReactor.semweb4j.org ($Id: CodeGenerator.java 870 2007-11-07 17:30:59Z max.at.xam.de $) on 26.01.08 02:10
003: */package org.ontoware.rdfreactor.schema.bootstrap;
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.rdf2go.vocabulary.RDF;
012: import org.ontoware.rdfreactor.runtime.Base;
013: import org.ontoware.rdfreactor.runtime.ReactorResult;
014:
015: /**
016: * This class manages access to these properties:
017: * <ul>
018: * <li> OneOf </li>
019: * <li> SubClassOf </li>
020: * </ul>
021: *
022: * This class was generated by <a href="http://RDFReactor.semweb4j.org">RDFReactor</a> on 26.01.08 02:10
023: */
024: public class OwlClass extends Resource {
025:
026: /** http://www.w3.org/2000/01/rdf-schema#Class */
027: public static final URI RDFS_CLASS = new URIImpl(
028: "http://www.w3.org/2000/01/rdf-schema#Class", false);
029:
030: /** http://www.w3.org/2002/07/owl#oneOf */
031: public static final URI ONEOF = new URIImpl(
032: "http://www.w3.org/2002/07/owl#oneOf", false);
033:
034: /** http://www.w3.org/2000/01/rdf-schema#subClassOf */
035: public static final URI SUBCLASSOF = new URIImpl(
036: "http://www.w3.org/2000/01/rdf-schema#subClassOf", false);
037:
038: /** all property-URIs with this class as domain */
039: public static final URI[] MANAGED_URIS = {
040: new URIImpl("http://www.w3.org/2002/07/owl#oneOf", false),
041: new URIImpl(
042: "http://www.w3.org/2000/01/rdf-schema#subClassOf",
043: false) };
044:
045: // protected constructors needed for inheritance
046:
047: /**
048: * Returns a Java wrapper over an RDF object, identified by URI.
049: * Creating two wrappers for the same instanceURI is legal.
050: * @param model RDF2GO Model implementation, see http://rdf2go.semweb4j.org
051: * @param classURI URI of RDFS class
052: * @param instanceIdentifier Resource that identifies 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 #c1]
056: */
057: protected OwlClass(Model model, URI classURI,
058: org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
059: boolean write) {
060: super (model, classURI, instanceIdentifier, write);
061: }
062:
063: // public constructors
064:
065: /**
066: * Returns a Java wrapper over an RDF object, identified by URI.
067: * Creating two wrappers for the same instanceURI is legal.
068: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
069: * @param instanceIdentifier an RDF2Go Resource identifying this instance
070: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
071: *
072: * [Generated from RDFReactor template rule #c2]
073: */
074: public OwlClass(Model model,
075: org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
076: boolean write) {
077: super (model, RDFS_CLASS, instanceIdentifier, write);
078: }
079:
080: /**
081: * Returns a Java wrapper over an RDF object, identified by a URI, given as a String.
082: * Creating two wrappers for the same URI is legal.
083: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
084: * @param uriString a URI given as a String
085: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
086: * @throws ModelRuntimeException if URI syntax is wrong
087: *
088: * [Generated from RDFReactor template rule #c7]
089: */
090: public OwlClass(Model model, String uriString, boolean write)
091: throws ModelRuntimeException {
092: super (model, RDFS_CLASS, new URIImpl(uriString, false), write);
093: }
094:
095: /**
096: * Returns a Java wrapper over an RDF object, identified by a blank node.
097: * Creating two wrappers for the same blank node is legal.
098: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
099: * @param bnode BlankNode of this instance
100: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
101: *
102: * [Generated from RDFReactor template rule #c8]
103: */
104: public OwlClass(Model model, BlankNode bnode, boolean write) {
105: super (model, RDFS_CLASS, bnode, write);
106: }
107:
108: /**
109: * Returns a Java wrapper over an RDF object, identified by
110: * a randomly generated URI.
111: * Creating two wrappers results in different URIs.
112: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
113: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
114: *
115: * [Generated from RDFReactor template rule #c9]
116: */
117: public OwlClass(Model model, boolean write) {
118: super (model, RDFS_CLASS, model.newRandomUniqueURI(), write);
119: }
120:
121: ///////////////////////////////////////////////////////////////////
122: // typing
123:
124: /**
125: * Create a new instance of this class in the model.
126: * That is, create the statement (instanceResource, RDF.type, http://www.w3.org/2000/01/rdf-schema#Class).
127: * @param model an RDF2Go model
128: * @param instanceResource an RDF2Go resource
129: *
130: * [Generated from RDFReactor template rule #1]
131: */
132: public static void createInstance(Model model,
133: org.ontoware.rdf2go.model.node.Resource instanceResource) {
134: Base.createInstance(model, RDFS_CLASS, instanceResource);
135: }
136:
137: /**
138: * @param model an RDF2Go model
139: * @param instanceResource an RDF2Go resource
140: * @return true if instanceResource is an instance of this class in the model
141: *
142: * [Generated from RDFReactor template rule #2]
143: */
144: public static boolean hasInstance(Model model,
145: org.ontoware.rdf2go.model.node.Resource instanceResource) {
146: return Base.hasInstance(model, RDFS_CLASS, instanceResource);
147: }
148:
149: /**
150: * @param model an RDF2Go model
151: * @return all instances of this class in Model 'model' as RDF resources
152: *
153: * [Generated from RDFReactor template rule #3]
154: */
155: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllInstancesAsRdf2GoResources(
156: Model model) {
157: return Base.getAllInstances(model, RDFS_CLASS,
158: org.ontoware.rdf2go.model.node.Resource.class);
159: }
160:
161: /**
162: * @param model an RDF2Go model
163: * @return all instances of this class in Model 'model' as a ReactorResult,
164: * which can convenicently be converted to iterator, list or array.
165: *
166: * [Generated from RDFReactor template rule #3-as]
167: */
168: public static ReactorResult<? extends OwlClass> getAllInstance_as(
169: Model model) {
170: return Base.getAll_as(model, RDFS_CLASS, RDF.type,
171: OwlClass.class);
172: }
173:
174: /**
175: * @param model an RDF2Go model
176: * @return all instances of this class in Model 'model' as RDF resources
177: *
178: * [Generated from RDFReactor template rule #3-list]
179: */
180: public static java.util.List<? extends OwlClass> getAllInstances_asList(
181: Model model) {
182: return Base.getAllInstances_asList(model, RDFS_CLASS,
183: OwlClass.class);
184: }
185:
186: /**
187: * @param model an RDF2Go model
188: * @return all instances of this class in Model 'model' as RDF resources
189: *
190: * [Generated from RDFReactor template rule #3-array]
191: */
192: public static OwlClass[] getAllInstances_asArray(Model model) {
193: return Base.getAllInstances_asArray(model, RDFS_CLASS,
194: OwlClass.class);
195: }
196:
197: /**
198: * Delete all rdf:type from this instance. Other triples are not affected.
199: * @param model an RDF2Go model
200: * @param instanceResource an RDF2Go resource
201: *
202: * [Generated from RDFReactor template rule #4]
203: */
204: public static void deleteInstance(Model model,
205: org.ontoware.rdf2go.model.node.Resource instanceResource) {
206: Base.deleteInstance(model, RDFS_CLASS, instanceResource);
207: }
208:
209: ///////////////////////////////////////////////////////////////////
210: // property access methods
211:
212: /**
213: * @param model an RDF2Go model
214: * @param objectValue
215: * @return all A's as RDF resources, that have a relation 'Type' to this Class instance
216: *
217: * [Generated from RDFReactor template rule #getallinverse1static]
218: */
219: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllType_Inverse(
220: Model model, Object objectValue) {
221: return Base.getAll_Inverse(model, Resource.TYPE, objectValue);
222: }
223:
224: /**
225: * @param model an RDF2Go model
226: * @param objectValue
227: * @return all A's as RDF resources, that have a relation 'Domain' to this Class instance
228: *
229: * [Generated from RDFReactor template rule #getallinverse1static]
230: */
231: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllDomain_Inverse(
232: Model model, Object objectValue) {
233: return Base.getAll_Inverse(model, Property.DOMAIN, objectValue);
234: }
235:
236: /**
237: * @param model an RDF2Go model
238: * @param objectValue
239: * @return all A's as RDF resources, that have a relation 'Range' to this Class instance
240: *
241: * [Generated from RDFReactor template rule #getallinverse1static]
242: */
243: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllRange_Inverse(
244: Model model, Object objectValue) {
245: return Base.getAll_Inverse(model, Property.RANGE, objectValue);
246: }
247:
248: /**
249: * @param model an RDF2Go model
250: * @param objectValue
251: * @return all A's as RDF resources, that have a relation 'SubClassOf' to this Class instance
252: *
253: * [Generated from RDFReactor template rule #getallinverse1static]
254: */
255: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllSubClassOf_Inverse(
256: Model model, Object objectValue) {
257: return Base.getAll_Inverse(model, OwlClass.SUBCLASSOF,
258: objectValue);
259: }
260:
261: /**
262: * @param model an RDF2Go model
263: * @param objectValue
264: * @return all A's as RDF resources, that have a relation 'AllValuesFrom' to this Class instance
265: *
266: * [Generated from RDFReactor template rule #getallinverse1static]
267: */
268: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllAllValuesFrom_Inverse(
269: Model model, Object objectValue) {
270: return Base.getAll_Inverse(model, Restriction.ALLVALUESFROM,
271: objectValue);
272: }
273:
274: /**
275: * @param model an RDF2Go model
276: * @param objectValue
277: * @return all A's as RDF resources, that have a relation 'SomeValuesFrom' to this Class instance
278: *
279: * [Generated from RDFReactor template rule #getallinverse1static]
280: */
281: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllSomeValuesFrom_Inverse(
282: Model model, Object objectValue) {
283: return Base.getAll_Inverse(model, Restriction.SOMEVALUESFROM,
284: objectValue);
285: }
286:
287: /**
288: * Get all values of property OneOf as an Iterator over RDF2Go nodes
289: * @param model an RDF2Go model
290: * @param resource an RDF2Go resource
291: * @return a ClosableIterator of RDF2Go Nodes
292: *
293: * [Generated from RDFReactor template rule #get7static]
294: */
295: public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllOneOf_asNode(
296: Model model,
297: org.ontoware.rdf2go.model.node.Resource instanceResource) {
298: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
299: .getAll_asNode(model, instanceResource, ONEOF);
300: }
301:
302: /**
303: * Get all values of property OneOf as a List of RDF2Go nodes
304: * @param model an RDF2Go model
305: * @param resource an RDF2Go resource
306: * @return a List of RDF2Go Nodes
307: *
308: * [Generated from RDFReactor template rule #get7static-list]
309: */
310: public static java.util.List<org.ontoware.rdf2go.model.node.Node> getAllOneOf_asNodeList(
311: Model model,
312: org.ontoware.rdf2go.model.node.Resource instanceResource) {
313: return (java.util.List<org.ontoware.rdf2go.model.node.Node>) Base
314: .getAll_asNodeList(model, instanceResource, ONEOF);
315: }
316:
317: /**
318: * Get all values of property OneOf as an Iterator over RDF2Go nodes
319: * @return a ClosableIterator of RDF2Go Nodes
320: *
321: * [Generated from RDFReactor template rule #get8dynamic]
322: */
323: public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllOneOf_asNode() {
324: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
325: .getAll_asNode(this .model, this .getResource(), ONEOF);
326: }
327:
328: /**
329: * Get all values of property OneOf as a List of RDF2Go nodes
330: * @return a List of RDF2Go Nodes
331: *
332: * [Generated from RDFReactor template rule #get8dynamic-list]
333: */
334: public java.util.List<org.ontoware.rdf2go.model.node.Node> getAllOneOf_asNodeList() {
335: return (java.util.List<org.ontoware.rdf2go.model.node.Node>) Base
336: .getAll_asNodeList(this .model, this .getResource(),
337: ONEOF);
338: }
339:
340: /**
341: * Adds a value to property OneOf as an RDF2Go node
342: * @param model an RDF2Go model
343: * @param resource an RDF2Go resource
344: * @param value the value to be added
345: *
346: * [Generated from RDFReactor template rule #add1static]
347: */
348: public static void addOneOf(Model model,
349: org.ontoware.rdf2go.model.node.Resource instanceResource,
350: org.ontoware.rdf2go.model.node.Node value) {
351: Base.add(model, instanceResource, ONEOF, value);
352: }
353:
354: /**
355: * Adds a value to property OneOf as an RDF2Go node
356: * @param value the value to be added
357: *
358: * [Generated from RDFReactor template rule #add1dynamic]
359: */
360: public void addOneOf(org.ontoware.rdf2go.model.node.Node value) {
361: Base.add(this .model, this .getResource(), ONEOF, value);
362: }
363:
364: /**
365: * Sets a value of property OneOf from an RDF2Go node.
366: * First, all existing values are removed, then this value is added.
367: * Cardinality constraints are not checked, but this method exists only for properties with
368: * no minCardinality or minCardinality == 1.
369: * @param model an RDF2Go model
370: * @param resource an RDF2Go resource
371: * @param value the value to be set
372: *
373: * [Generated from RDFReactor template rule #set1static]
374: */
375: public static void setOneOf(Model model,
376: org.ontoware.rdf2go.model.node.Resource instanceResource,
377: org.ontoware.rdf2go.model.node.Node value) {
378: Base.set(model, instanceResource, ONEOF, value);
379: }
380:
381: /**
382: * Sets a value of property OneOf from an RDF2Go node.
383: * First, all existing values are removed, then this value is added.
384: * Cardinality constraints are not checked, but this method exists only for properties with
385: * no minCardinality or minCardinality == 1.
386: * @param value the value to be added
387: *
388: * [Generated from RDFReactor template rule #set1dynamic]
389: */
390: public void setOneOf(org.ontoware.rdf2go.model.node.Node value) {
391: Base.set(this .model, this .getResource(), ONEOF, value);
392: }
393:
394: /**
395: * Removes a value of property OneOf as an RDF2Go node
396: * @param model an RDF2Go model
397: * @param resource an RDF2Go resource
398: * @param value the value to be removed
399: *
400: * [Generated from RDFReactor template rule #remove1static]
401: */
402: public static void removeOneOf(Model model,
403: org.ontoware.rdf2go.model.node.Resource instanceResource,
404: org.ontoware.rdf2go.model.node.Node value) {
405: Base.remove(model, instanceResource, ONEOF, value);
406: }
407:
408: /**
409: * Removes a value of property OneOf as an RDF2Go node
410: * @param value the value to be removed
411: *
412: * [Generated from RDFReactor template rule #remove1dynamic]
413: */
414: public void removeOneOf(org.ontoware.rdf2go.model.node.Node value) {
415: Base.remove(this .model, this .getResource(), ONEOF, value);
416: }
417:
418: /**
419: * Removes all values of property OneOf * @param model an RDF2Go model
420: * @param resource an RDF2Go resource
421: *
422: * [Generated from RDFReactor template rule #removeall1static]
423: */
424: public static void removeAllOneOf(Model model,
425: org.ontoware.rdf2go.model.node.Resource instanceResource) {
426: Base.removeAll(model, instanceResource, ONEOF);
427: }
428:
429: /**
430: * Removes all values of property OneOf *
431: * [Generated from RDFReactor template rule #removeall1dynamic]
432: */
433: public void addOneOf() {
434: Base.removeAll(this .model, this .getResource(), ONEOF);
435: }
436:
437: /**
438: * Get all values of property SubClassOf as an Iterator over RDF2Go nodes
439: * @param model an RDF2Go model
440: * @param resource an RDF2Go resource
441: * @return a ClosableIterator of RDF2Go Nodes
442: *
443: * [Generated from RDFReactor template rule #get7static]
444: */
445: public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllSubClassOf_asNode(
446: Model model,
447: org.ontoware.rdf2go.model.node.Resource instanceResource) {
448: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
449: .getAll_asNode(model, instanceResource, SUBCLASSOF);
450: }
451:
452: /**
453: * Get all values of property SubClassOf as a List of RDF2Go nodes
454: * @param model an RDF2Go model
455: * @param resource an RDF2Go resource
456: * @return a List of RDF2Go Nodes
457: *
458: * [Generated from RDFReactor template rule #get7static-list]
459: */
460: public static java.util.List<org.ontoware.rdf2go.model.node.Node> getAllSubClassOf_asNodeList(
461: Model model,
462: org.ontoware.rdf2go.model.node.Resource instanceResource) {
463: return (java.util.List<org.ontoware.rdf2go.model.node.Node>) Base
464: .getAll_asNodeList(model, instanceResource, SUBCLASSOF);
465: }
466:
467: /**
468: * Get all values of property SubClassOf as an Iterator over RDF2Go nodes
469: * @return a ClosableIterator of RDF2Go Nodes
470: *
471: * [Generated from RDFReactor template rule #get8dynamic]
472: */
473: public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllSubClassOf_asNode() {
474: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
475: .getAll_asNode(this .model, this .getResource(),
476: SUBCLASSOF);
477: }
478:
479: /**
480: * Get all values of property SubClassOf as a List of RDF2Go nodes
481: * @return a List of RDF2Go Nodes
482: *
483: * [Generated from RDFReactor template rule #get8dynamic-list]
484: */
485: public java.util.List<org.ontoware.rdf2go.model.node.Node> getAllSubClassOf_asNodeList() {
486: return (java.util.List<org.ontoware.rdf2go.model.node.Node>) Base
487: .getAll_asNodeList(this .model, this .getResource(),
488: SUBCLASSOF);
489: }
490:
491: /**
492: * Get all values of property SubClassOf * @param model an RDF2Go model
493: * @param resource an RDF2Go resource
494: * @return a ClosableIterator of $type
495: *
496: * [Generated from RDFReactor template rule #get11static]
497: */
498: public static ClosableIterator<OwlClass> getAllSubClassOf(
499: Model model,
500: org.ontoware.rdf2go.model.node.Resource instanceResource) {
501: return Base.getAll(model, instanceResource, SUBCLASSOF,
502: OwlClass.class);
503: }
504:
505: /**
506: * Get all values of property SubClassOf as a List of Class
507: * @param model an RDF2Go model
508: * @param resource an RDF2Go resource
509: * @return a ClosableIterator of $type
510: *
511: * [Generated from RDFReactor template rule #get11static-list]
512: */
513: public static java.util.List<OwlClass> getAllSubClassOf_asList(
514: Model model,
515: org.ontoware.rdf2go.model.node.Resource instanceResource) {
516: return Base.getAll_asList(model, instanceResource, SUBCLASSOF,
517: OwlClass.class);
518: }
519:
520: /**
521: * Get all values of property SubClassOf * @return a ClosableIterator of $type
522: *
523: * [Generated from RDFReactor template rule #get12dynamic]
524: */
525: public ClosableIterator<OwlClass> getAllSubClassOf() {
526: return Base.getAll(this .model, this .getResource(), SUBCLASSOF,
527: OwlClass.class);
528: }
529:
530: /**
531: * Get all values of property SubClassOf as a List of Class
532: * @return a List of $type
533: *
534: * [Generated from RDFReactor template rule #get12dynamic-list]
535: */
536: public java.util.List<OwlClass> getAllSubClassOf_asList() {
537: return Base.getAll_asList(this .model, this .getResource(),
538: SUBCLASSOF, OwlClass.class);
539: }
540:
541: /**
542: * Adds a value to property SubClassOf as an RDF2Go node
543: * @param model an RDF2Go model
544: * @param resource an RDF2Go resource
545: * @param value the value to be added
546: *
547: * [Generated from RDFReactor template rule #add1static]
548: */
549: public static void addSubClassOf(Model model,
550: org.ontoware.rdf2go.model.node.Resource instanceResource,
551: org.ontoware.rdf2go.model.node.Node value) {
552: Base.add(model, instanceResource, SUBCLASSOF, value);
553: }
554:
555: /**
556: * Adds a value to property SubClassOf as an RDF2Go node
557: * @param value the value to be added
558: *
559: * [Generated from RDFReactor template rule #add1dynamic]
560: */
561: public void addSubClassOf(org.ontoware.rdf2go.model.node.Node value) {
562: Base.add(this .model, this .getResource(), SUBCLASSOF, value);
563: }
564:
565: /**
566: * Adds a value to property SubClassOf from an instance of Class
567: * @param model an RDF2Go model
568: * @param resource an RDF2Go resource
569: *
570: * [Generated from RDFReactor template rule #add3static]
571: */
572: public static void addSubClassOf(Model model,
573: org.ontoware.rdf2go.model.node.Resource instanceResource,
574: OwlClass value) {
575: Base.add(model, instanceResource, SUBCLASSOF, value);
576: }
577:
578: /**
579: * Adds a value to property SubClassOf from an instance of Class
580: *
581: * [Generated from RDFReactor template rule #add4dynamic]
582: */
583: public void addSubClassOf(OwlClass value) {
584: Base.add(this .model, this .getResource(), SUBCLASSOF, value);
585: }
586:
587: /**
588: * Sets a value of property SubClassOf from an RDF2Go node.
589: * First, all existing values are removed, then this value is added.
590: * Cardinality constraints are not checked, but this method exists only for properties with
591: * no minCardinality or minCardinality == 1.
592: * @param model an RDF2Go model
593: * @param resource an RDF2Go resource
594: * @param value the value to be set
595: *
596: * [Generated from RDFReactor template rule #set1static]
597: */
598: public static void setSubClassOf(Model model,
599: org.ontoware.rdf2go.model.node.Resource instanceResource,
600: org.ontoware.rdf2go.model.node.Node value) {
601: Base.set(model, instanceResource, SUBCLASSOF, value);
602: }
603:
604: /**
605: * Sets a value of property SubClassOf from an RDF2Go node.
606: * First, all existing values are removed, then this value is added.
607: * Cardinality constraints are not checked, but this method exists only for properties with
608: * no minCardinality or minCardinality == 1.
609: * @param value the value to be added
610: *
611: * [Generated from RDFReactor template rule #set1dynamic]
612: */
613: public void setSubClassOf(org.ontoware.rdf2go.model.node.Node value) {
614: Base.set(this .model, this .getResource(), SUBCLASSOF, value);
615: }
616:
617: /**
618: * Sets a value of property SubClassOf from an instance of Class
619: * First, all existing values are removed, then this value is added.
620: * Cardinality constraints are not checked, but this method exists only for properties with
621: * no minCardinality or minCardinality == 1.
622: * @param model an RDF2Go model
623: * @param resource an RDF2Go resource
624: * @param value the value to be added
625: *
626: * [Generated from RDFReactor template rule #set3static]
627: */
628: public static void setSubClassOf(Model model,
629: org.ontoware.rdf2go.model.node.Resource instanceResource,
630: OwlClass value) {
631: Base.set(model, instanceResource, SUBCLASSOF, value);
632: }
633:
634: /**
635: * Sets a value of property SubClassOf from an instance of Class
636: * First, all existing values are removed, then this value is added.
637: * Cardinality constraints are not checked, but this method exists only for properties with
638: * no minCardinality or minCardinality == 1.
639: * @param value the value to be added
640: *
641: * [Generated from RDFReactor template rule #set4dynamic]
642: */
643: public void setSubClassOf(OwlClass value) {
644: Base.set(this .model, this .getResource(), SUBCLASSOF, value);
645: }
646:
647: /**
648: * Removes a value of property SubClassOf as an RDF2Go node
649: * @param model an RDF2Go model
650: * @param resource an RDF2Go resource
651: * @param value the value to be removed
652: *
653: * [Generated from RDFReactor template rule #remove1static]
654: */
655: public static void removeSubClassOf(Model model,
656: org.ontoware.rdf2go.model.node.Resource instanceResource,
657: org.ontoware.rdf2go.model.node.Node value) {
658: Base.remove(model, instanceResource, SUBCLASSOF, value);
659: }
660:
661: /**
662: * Removes a value of property SubClassOf as an RDF2Go node
663: * @param value the value to be removed
664: *
665: * [Generated from RDFReactor template rule #remove1dynamic]
666: */
667: public void removeSubClassOf(
668: org.ontoware.rdf2go.model.node.Node value) {
669: Base.remove(this .model, this .getResource(), SUBCLASSOF, value);
670: }
671:
672: /**
673: * Removes a value of property SubClassOf given as an instance of Class
674: * @param model an RDF2Go model
675: * @param resource an RDF2Go resource
676: * @param value the value to be removed
677: *
678: * [Generated from RDFReactor template rule #remove3static]
679: */
680: public static void removeSubClassOf(Model model,
681: org.ontoware.rdf2go.model.node.Resource instanceResource,
682: OwlClass value) {
683: Base.remove(model, instanceResource, SUBCLASSOF, value);
684: }
685:
686: /**
687: * Removes a value of property SubClassOf given as an instance of Class
688: * @param value the value to be removed
689: *
690: * [Generated from RDFReactor template rule #remove4dynamic]
691: */
692: public void removeSubClassOf(OwlClass value) {
693: Base.remove(this .model, this .getResource(), SUBCLASSOF, value);
694: }
695:
696: /**
697: * Removes all values of property SubClassOf * @param model an RDF2Go model
698: * @param resource an RDF2Go resource
699: *
700: * [Generated from RDFReactor template rule #removeall1static]
701: */
702: public static void removeAllSubClassOf(Model model,
703: org.ontoware.rdf2go.model.node.Resource instanceResource) {
704: Base.removeAll(model, instanceResource, SUBCLASSOF);
705: }
706:
707: /**
708: * Removes all values of property SubClassOf *
709: * [Generated from RDFReactor template rule #removeall1dynamic]
710: */
711: public void addSubClassOf() {
712: Base.removeAll(this.model, this.getResource(), SUBCLASSOF);
713: }
714:
715: }
|