0001: /**
0002: * generated by http://RDFReactor.semweb4j.org ($Id: CodeGenerator.java 870 2007-11-07 17:30:59Z max.at.xam.de $) on 26.01.08 12:47
0003: */package org.ontoware.rdfreactor.schema.owl;
0004:
0005: import org.ontoware.aifbcommons.collection.ClosableIterator;
0006: import org.ontoware.rdf2go.exception.ModelRuntimeException;
0007: import org.ontoware.rdf2go.model.Model;
0008: import org.ontoware.rdf2go.model.node.BlankNode;
0009: import org.ontoware.rdf2go.model.node.URI;
0010: import org.ontoware.rdf2go.model.node.impl.URIImpl;
0011: import org.ontoware.rdfreactor.runtime.Base;
0012: import org.ontoware.rdfreactor.runtime.ReactorResult;
0013:
0014: /**
0015: * This class manages access to these properties:
0016: * <ul>
0017: * <li> Domain </li>
0018: * <li> Range </li>
0019: * <li> SubPropertyOf </li>
0020: * </ul>
0021: *
0022: * This class was generated by <a href="http://RDFReactor.semweb4j.org">RDFReactor</a> on 26.01.08 12:47
0023: */
0024: public class OwlProperty extends OwlThing {
0025:
0026: /** http://www.w3.org/1999/02/22-rdf-syntax-ns#Property */
0027: public static final URI RDFS_CLASS = new URIImpl(
0028: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property",
0029: false);
0030:
0031: /** http://www.w3.org/2000/01/rdf-schema#domain */
0032: public static final URI DOMAIN = new URIImpl(
0033: "http://www.w3.org/2000/01/rdf-schema#domain", false);
0034:
0035: /** http://www.w3.org/2000/01/rdf-schema#range */
0036: public static final URI RANGE = new URIImpl(
0037: "http://www.w3.org/2000/01/rdf-schema#range", false);
0038:
0039: /** http://www.w3.org/2000/01/rdf-schema#subPropertyOf */
0040: public static final URI SUBPROPERTYOF = new URIImpl(
0041: "http://www.w3.org/2000/01/rdf-schema#subPropertyOf", false);
0042:
0043: /** all property-URIs with this class as domain */
0044: public static final URI[] MANAGED_URIS = {
0045: new URIImpl("http://www.w3.org/2000/01/rdf-schema#domain",
0046: false),
0047: new URIImpl("http://www.w3.org/2000/01/rdf-schema#range",
0048: false),
0049: new URIImpl(
0050: "http://www.w3.org/2000/01/rdf-schema#subPropertyOf",
0051: false) };
0052:
0053: // protected constructors needed for inheritance
0054:
0055: /**
0056: * Returns a Java wrapper over an RDF object, identified by URI.
0057: * Creating two wrappers for the same instanceURI is legal.
0058: * @param model RDF2GO Model implementation, see http://rdf2go.semweb4j.org
0059: * @param classURI URI of RDFS class
0060: * @param instanceIdentifier Resource that identifies this instance
0061: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
0062: *
0063: * [Generated from RDFReactor template rule #c1]
0064: */
0065: protected OwlProperty(Model model, URI classURI,
0066: org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
0067: boolean write) {
0068: super (model, classURI, instanceIdentifier, write);
0069: }
0070:
0071: // public constructors
0072:
0073: /**
0074: * Returns a Java wrapper over an RDF object, identified by URI.
0075: * Creating two wrappers for the same instanceURI is legal.
0076: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
0077: * @param instanceIdentifier an RDF2Go Resource identifying this instance
0078: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
0079: *
0080: * [Generated from RDFReactor template rule #c2]
0081: */
0082: public OwlProperty(Model model,
0083: org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
0084: boolean write) {
0085: super (model, RDFS_CLASS, instanceIdentifier, write);
0086: }
0087:
0088: /**
0089: * Returns a Java wrapper over an RDF object, identified by a URI, given as a String.
0090: * Creating two wrappers for the same URI is legal.
0091: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
0092: * @param uriString a URI given as a String
0093: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
0094: * @throws ModelRuntimeException if URI syntax is wrong
0095: *
0096: * [Generated from RDFReactor template rule #c7]
0097: */
0098: public OwlProperty(Model model, String uriString, boolean write)
0099: throws ModelRuntimeException {
0100: super (model, RDFS_CLASS, new URIImpl(uriString, false), write);
0101: }
0102:
0103: /**
0104: * Returns a Java wrapper over an RDF object, identified by a blank node.
0105: * Creating two wrappers for the same blank node is legal.
0106: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
0107: * @param bnode BlankNode of this instance
0108: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
0109: *
0110: * [Generated from RDFReactor template rule #c8]
0111: */
0112: public OwlProperty(Model model, BlankNode bnode, boolean write) {
0113: super (model, RDFS_CLASS, bnode, write);
0114: }
0115:
0116: /**
0117: * Returns a Java wrapper over an RDF object, identified by
0118: * a randomly generated URI.
0119: * Creating two wrappers results in different URIs.
0120: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
0121: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
0122: *
0123: * [Generated from RDFReactor template rule #c9]
0124: */
0125: public OwlProperty(Model model, boolean write) {
0126: super (model, RDFS_CLASS, model.newRandomUniqueURI(), write);
0127: }
0128:
0129: ///////////////////////////////////////////////////////////////////
0130: // typing
0131:
0132: /**
0133: * Create a new instance of this class in the model.
0134: * That is, create the statement (instanceResource, RDF.type, http://www.w3.org/1999/02/22-rdf-syntax-ns#Property).
0135: * @param model an RDF2Go model
0136: * @param instanceResource an RDF2Go resource
0137: *
0138: * [Generated from RDFReactor template rule #class1]
0139: */
0140: public static void createInstance(Model model,
0141: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0142: Base.createInstance(model, RDFS_CLASS, instanceResource);
0143: }
0144:
0145: /**
0146: * @param model an RDF2Go model
0147: * @param instanceResource an RDF2Go resource
0148: * @return true if instanceResource is an instance of this class in the model
0149: *
0150: * [Generated from RDFReactor template rule #class2]
0151: */
0152: public static boolean hasInstance(Model model,
0153: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0154: return Base.hasInstance(model, RDFS_CLASS, instanceResource);
0155: }
0156:
0157: /**
0158: * @param model an RDF2Go model
0159: * @return all instances of this class in Model 'model' as RDF resources
0160: *
0161: * [Generated from RDFReactor template rule #class3]
0162: */
0163: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllInstances(
0164: Model model) {
0165: return Base.getAllInstances(model, RDFS_CLASS,
0166: org.ontoware.rdf2go.model.node.Resource.class);
0167: }
0168:
0169: /**
0170: * @param model an RDF2Go model
0171: * @return all instances of this class in Model 'model' as a ReactorResult,
0172: * which can conveniently be converted to iterator, list or array.
0173: *
0174: * [Generated from RDFReactor template rule #class3-as]
0175: */
0176: public static ReactorResult<? extends OwlProperty> getAllInstance_as(
0177: Model model) {
0178: return Base.getAllInstances_as(model, RDFS_CLASS,
0179: OwlProperty.class);
0180: }
0181:
0182: /**
0183: * Delete all rdf:type from this instance. Other triples are not affected.
0184: * @param model an RDF2Go model
0185: * @param instanceResource an RDF2Go resource
0186: *
0187: * [Generated from RDFReactor template rule #class4]
0188: */
0189: public static void deleteInstance(Model model,
0190: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0191: Base.deleteInstance(model, RDFS_CLASS, instanceResource);
0192: }
0193:
0194: ///////////////////////////////////////////////////////////////////
0195: // property access methods
0196:
0197: /**
0198: * @param model an RDF2Go model
0199: * @param objectValue
0200: * @return all A's as RDF resources, that have a relation 'SubPropertyOf' to this Property instance
0201: *
0202: * [Generated from RDFReactor template rule #getallinverse1static]
0203: */
0204: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllSubPropertyOf_Inverse(
0205: Model model, Object objectValue) {
0206: return Base.getAll_Inverse(model, OwlProperty.SUBPROPERTYOF,
0207: objectValue);
0208: }
0209:
0210: /**
0211: * @param model an RDF2Go model
0212: * @param objectValue
0213: * @return all A's as RDF resources, that have a relation 'OnProperty' to this Property instance
0214: *
0215: * [Generated from RDFReactor template rule #getallinverse1static]
0216: */
0217: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllOnProperty_Inverse(
0218: Model model, Object objectValue) {
0219: return Base.getAll_Inverse(model, Restriction.ONPROPERTY,
0220: objectValue);
0221: }
0222:
0223: /**
0224: * Get all values of property Domain as an Iterator over RDF2Go nodes
0225: * @param model an RDF2Go model
0226: * @param resource an RDF2Go resource
0227: * @return a ClosableIterator of RDF2Go Nodes
0228: *
0229: * [Generated from RDFReactor template rule #get7static]
0230: */
0231: public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllDomain_asNode(
0232: Model model,
0233: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0234: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
0235: .getAll_asNode(model, instanceResource, DOMAIN);
0236: }
0237:
0238: /**
0239: * Get all values of property Domain as a ReactorResult of RDF2Go nodes
0240: * @param model an RDF2Go model
0241: * @param resource an RDF2Go resource
0242: * @return a List of RDF2Go Nodes
0243: *
0244: * [Generated from RDFReactor template rule #get7static-reactor-result]
0245: */
0246: public static ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllDomain_asNode_(
0247: Model model,
0248: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0249: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
0250: .getAll_as(model, instanceResource, DOMAIN,
0251: org.ontoware.rdf2go.model.node.Node.class);
0252: }
0253:
0254: /**
0255: * Get all values of property Domain as an Iterator over RDF2Go nodes
0256: * @return a ClosableIterator of RDF2Go Nodes
0257: *
0258: * [Generated from RDFReactor template rule #get8dynamic]
0259: */
0260: public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllDomain_asNode() {
0261: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
0262: .getAll_asNode(this .model, this .getResource(), DOMAIN);
0263: }
0264:
0265: /**
0266: * Get all values of property Domain as a ReactorResult of RDF2Go nodes
0267: * @return a List of RDF2Go Nodes
0268: *
0269: * [Generated from RDFReactor template rule #get8dynamic-reactor-result]
0270: */
0271: public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllDomain_asNode_() {
0272: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
0273: .getAll_as(this .model, this .getResource(), DOMAIN,
0274: org.ontoware.rdf2go.model.node.Node.class);
0275: }
0276:
0277: /**
0278: * Get all values of property Domain * @param model an RDF2Go model
0279: * @param resource an RDF2Go resource
0280: * @return a ClosableIterator of $type
0281: *
0282: * [Generated from RDFReactor template rule #get11static]
0283: */
0284: public static ClosableIterator<OwlClass> getAllDomain(Model model,
0285: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0286: return Base.getAll(model, instanceResource, DOMAIN,
0287: OwlClass.class);
0288: }
0289:
0290: /**
0291: * Get all values of property Domain as a ReactorResult of Class
0292: * @param model an RDF2Go model
0293: * @param resource an RDF2Go resource
0294: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
0295: *
0296: * [Generated from RDFReactor template rule #get11static-reactorresult]
0297: */
0298: public static ReactorResult<OwlClass> getAllDomain_as(Model model,
0299: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0300: return Base.getAll_as(model, instanceResource, DOMAIN,
0301: OwlClass.class);
0302: }
0303:
0304: /**
0305: * Get all values of property Domain * @return a ClosableIterator of $type
0306: *
0307: * [Generated from RDFReactor template rule #get12dynamic]
0308: */
0309: public ClosableIterator<OwlClass> getAllDomain() {
0310: return Base.getAll(this .model, this .getResource(), DOMAIN,
0311: OwlClass.class);
0312: }
0313:
0314: /**
0315: * Get all values of property Domain as a ReactorResult of Class
0316: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
0317: *
0318: * [Generated from RDFReactor template rule #get12dynamic-reactorresult]
0319: */
0320: public ReactorResult<OwlClass> getAllDomain_as() {
0321: return Base.getAll_as(this .model, this .getResource(), DOMAIN,
0322: OwlClass.class);
0323: }
0324:
0325: /**
0326: * Adds a value to property Domain as an RDF2Go node
0327: * @param model an RDF2Go model
0328: * @param resource an RDF2Go resource
0329: * @param value the value to be added
0330: *
0331: * [Generated from RDFReactor template rule #add1static]
0332: */
0333: public static void addDomain(Model model,
0334: org.ontoware.rdf2go.model.node.Resource instanceResource,
0335: org.ontoware.rdf2go.model.node.Node value) {
0336: Base.add(model, instanceResource, DOMAIN, value);
0337: }
0338:
0339: /**
0340: * Adds a value to property Domain as an RDF2Go node
0341: * @param value the value to be added
0342: *
0343: * [Generated from RDFReactor template rule #add1dynamic]
0344: */
0345: public void addDomain(org.ontoware.rdf2go.model.node.Node value) {
0346: Base.add(this .model, this .getResource(), DOMAIN, value);
0347: }
0348:
0349: /**
0350: * Adds a value to property Domain from an instance of Class
0351: * @param model an RDF2Go model
0352: * @param resource an RDF2Go resource
0353: *
0354: * [Generated from RDFReactor template rule #add3static]
0355: */
0356: public static void addDomain(Model model,
0357: org.ontoware.rdf2go.model.node.Resource instanceResource,
0358: OwlClass value) {
0359: Base.add(model, instanceResource, DOMAIN, value);
0360: }
0361:
0362: /**
0363: * Adds a value to property Domain from an instance of Class
0364: *
0365: * [Generated from RDFReactor template rule #add4dynamic]
0366: */
0367: public void addDomain(OwlClass value) {
0368: Base.add(this .model, this .getResource(), DOMAIN, value);
0369: }
0370:
0371: /**
0372: * Sets a value of property Domain from an RDF2Go node.
0373: * First, all existing values are removed, then this value is added.
0374: * Cardinality constraints are not checked, but this method exists only for properties with
0375: * no minCardinality or minCardinality == 1.
0376: * @param model an RDF2Go model
0377: * @param resource an RDF2Go resource
0378: * @param value the value to be set
0379: *
0380: * [Generated from RDFReactor template rule #set1static]
0381: */
0382: public static void setDomain(Model model,
0383: org.ontoware.rdf2go.model.node.Resource instanceResource,
0384: org.ontoware.rdf2go.model.node.Node value) {
0385: Base.set(model, instanceResource, DOMAIN, value);
0386: }
0387:
0388: /**
0389: * Sets a value of property Domain from an RDF2Go node.
0390: * First, all existing values are removed, then this value is added.
0391: * Cardinality constraints are not checked, but this method exists only for properties with
0392: * no minCardinality or minCardinality == 1.
0393: * @param value the value to be added
0394: *
0395: * [Generated from RDFReactor template rule #set1dynamic]
0396: */
0397: public void setDomain(org.ontoware.rdf2go.model.node.Node value) {
0398: Base.set(this .model, this .getResource(), DOMAIN, value);
0399: }
0400:
0401: /**
0402: * Sets a value of property Domain from an instance of Class
0403: * First, all existing values are removed, then this value is added.
0404: * Cardinality constraints are not checked, but this method exists only for properties with
0405: * no minCardinality or minCardinality == 1.
0406: * @param model an RDF2Go model
0407: * @param resource an RDF2Go resource
0408: * @param value the value to be added
0409: *
0410: * [Generated from RDFReactor template rule #set3static]
0411: */
0412: public static void setDomain(Model model,
0413: org.ontoware.rdf2go.model.node.Resource instanceResource,
0414: OwlClass value) {
0415: Base.set(model, instanceResource, DOMAIN, value);
0416: }
0417:
0418: /**
0419: * Sets a value of property Domain from an instance of Class
0420: * First, all existing values are removed, then this value is added.
0421: * Cardinality constraints are not checked, but this method exists only for properties with
0422: * no minCardinality or minCardinality == 1.
0423: * @param value the value to be added
0424: *
0425: * [Generated from RDFReactor template rule #set4dynamic]
0426: */
0427: public void setDomain(OwlClass value) {
0428: Base.set(this .model, this .getResource(), DOMAIN, value);
0429: }
0430:
0431: /**
0432: * Removes a value of property Domain as an RDF2Go node
0433: * @param model an RDF2Go model
0434: * @param resource an RDF2Go resource
0435: * @param value the value to be removed
0436: *
0437: * [Generated from RDFReactor template rule #remove1static]
0438: */
0439: public static void removeDomain(Model model,
0440: org.ontoware.rdf2go.model.node.Resource instanceResource,
0441: org.ontoware.rdf2go.model.node.Node value) {
0442: Base.remove(model, instanceResource, DOMAIN, value);
0443: }
0444:
0445: /**
0446: * Removes a value of property Domain as an RDF2Go node
0447: * @param value the value to be removed
0448: *
0449: * [Generated from RDFReactor template rule #remove1dynamic]
0450: */
0451: public void removeDomain(org.ontoware.rdf2go.model.node.Node value) {
0452: Base.remove(this .model, this .getResource(), DOMAIN, value);
0453: }
0454:
0455: /**
0456: * Removes a value of property Domain given as an instance of Class
0457: * @param model an RDF2Go model
0458: * @param resource an RDF2Go resource
0459: * @param value the value to be removed
0460: *
0461: * [Generated from RDFReactor template rule #remove3static]
0462: */
0463: public static void removeDomain(Model model,
0464: org.ontoware.rdf2go.model.node.Resource instanceResource,
0465: OwlClass value) {
0466: Base.remove(model, instanceResource, DOMAIN, value);
0467: }
0468:
0469: /**
0470: * Removes a value of property Domain given as an instance of Class
0471: * @param value the value to be removed
0472: *
0473: * [Generated from RDFReactor template rule #remove4dynamic]
0474: */
0475: public void removeDomain(OwlClass value) {
0476: Base.remove(this .model, this .getResource(), DOMAIN, value);
0477: }
0478:
0479: /**
0480: * Removes all values of property Domain * @param model an RDF2Go model
0481: * @param resource an RDF2Go resource
0482: *
0483: * [Generated from RDFReactor template rule #removeall1static]
0484: */
0485: public static void removeAllDomain(Model model,
0486: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0487: Base.removeAll(model, instanceResource, DOMAIN);
0488: }
0489:
0490: /**
0491: * Removes all values of property Domain *
0492: * [Generated from RDFReactor template rule #removeall1dynamic]
0493: */
0494: public void addDomain() {
0495: Base.removeAll(this .model, this .getResource(), DOMAIN);
0496: }
0497:
0498: /**
0499: * Get all values of property Range as an Iterator over RDF2Go nodes
0500: * @param model an RDF2Go model
0501: * @param resource an RDF2Go resource
0502: * @return a ClosableIterator of RDF2Go Nodes
0503: *
0504: * [Generated from RDFReactor template rule #get7static]
0505: */
0506: public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllRange_asNode(
0507: Model model,
0508: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0509: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
0510: .getAll_asNode(model, instanceResource, RANGE);
0511: }
0512:
0513: /**
0514: * Get all values of property Range as a ReactorResult of RDF2Go nodes
0515: * @param model an RDF2Go model
0516: * @param resource an RDF2Go resource
0517: * @return a List of RDF2Go Nodes
0518: *
0519: * [Generated from RDFReactor template rule #get7static-reactor-result]
0520: */
0521: public static ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllRange_asNode_(
0522: Model model,
0523: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0524: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
0525: .getAll_as(model, instanceResource, RANGE,
0526: org.ontoware.rdf2go.model.node.Node.class);
0527: }
0528:
0529: /**
0530: * Get all values of property Range as an Iterator over RDF2Go nodes
0531: * @return a ClosableIterator of RDF2Go Nodes
0532: *
0533: * [Generated from RDFReactor template rule #get8dynamic]
0534: */
0535: public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllRange_asNode() {
0536: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
0537: .getAll_asNode(this .model, this .getResource(), RANGE);
0538: }
0539:
0540: /**
0541: * Get all values of property Range as a ReactorResult of RDF2Go nodes
0542: * @return a List of RDF2Go Nodes
0543: *
0544: * [Generated from RDFReactor template rule #get8dynamic-reactor-result]
0545: */
0546: public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllRange_asNode_() {
0547: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
0548: .getAll_as(this .model, this .getResource(), RANGE,
0549: org.ontoware.rdf2go.model.node.Node.class);
0550: }
0551:
0552: /**
0553: * Get all values of property Range * @param model an RDF2Go model
0554: * @param resource an RDF2Go resource
0555: * @return a ClosableIterator of $type
0556: *
0557: * [Generated from RDFReactor template rule #get11static]
0558: */
0559: public static ClosableIterator<OwlClass> getAllRange(Model model,
0560: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0561: return Base.getAll(model, instanceResource, RANGE,
0562: OwlClass.class);
0563: }
0564:
0565: /**
0566: * Get all values of property Range as a ReactorResult of Class
0567: * @param model an RDF2Go model
0568: * @param resource an RDF2Go resource
0569: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
0570: *
0571: * [Generated from RDFReactor template rule #get11static-reactorresult]
0572: */
0573: public static ReactorResult<OwlClass> getAllRange_as(Model model,
0574: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0575: return Base.getAll_as(model, instanceResource, RANGE,
0576: OwlClass.class);
0577: }
0578:
0579: /**
0580: * Get all values of property Range * @return a ClosableIterator of $type
0581: *
0582: * [Generated from RDFReactor template rule #get12dynamic]
0583: */
0584: public ClosableIterator<OwlClass> getAllRange() {
0585: return Base.getAll(this .model, this .getResource(), RANGE,
0586: OwlClass.class);
0587: }
0588:
0589: /**
0590: * Get all values of property Range as a ReactorResult of Class
0591: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
0592: *
0593: * [Generated from RDFReactor template rule #get12dynamic-reactorresult]
0594: */
0595: public ReactorResult<OwlClass> getAllRange_as() {
0596: return Base.getAll_as(this .model, this .getResource(), RANGE,
0597: OwlClass.class);
0598: }
0599:
0600: /**
0601: * Adds a value to property Range as an RDF2Go node
0602: * @param model an RDF2Go model
0603: * @param resource an RDF2Go resource
0604: * @param value the value to be added
0605: *
0606: * [Generated from RDFReactor template rule #add1static]
0607: */
0608: public static void addRange(Model model,
0609: org.ontoware.rdf2go.model.node.Resource instanceResource,
0610: org.ontoware.rdf2go.model.node.Node value) {
0611: Base.add(model, instanceResource, RANGE, value);
0612: }
0613:
0614: /**
0615: * Adds a value to property Range as an RDF2Go node
0616: * @param value the value to be added
0617: *
0618: * [Generated from RDFReactor template rule #add1dynamic]
0619: */
0620: public void addRange(org.ontoware.rdf2go.model.node.Node value) {
0621: Base.add(this .model, this .getResource(), RANGE, value);
0622: }
0623:
0624: /**
0625: * Adds a value to property Range from an instance of Class
0626: * @param model an RDF2Go model
0627: * @param resource an RDF2Go resource
0628: *
0629: * [Generated from RDFReactor template rule #add3static]
0630: */
0631: public static void addRange(Model model,
0632: org.ontoware.rdf2go.model.node.Resource instanceResource,
0633: OwlClass value) {
0634: Base.add(model, instanceResource, RANGE, value);
0635: }
0636:
0637: /**
0638: * Adds a value to property Range from an instance of Class
0639: *
0640: * [Generated from RDFReactor template rule #add4dynamic]
0641: */
0642: public void addRange(OwlClass value) {
0643: Base.add(this .model, this .getResource(), RANGE, value);
0644: }
0645:
0646: /**
0647: * Sets a value of property Range from an RDF2Go node.
0648: * First, all existing values are removed, then this value is added.
0649: * Cardinality constraints are not checked, but this method exists only for properties with
0650: * no minCardinality or minCardinality == 1.
0651: * @param model an RDF2Go model
0652: * @param resource an RDF2Go resource
0653: * @param value the value to be set
0654: *
0655: * [Generated from RDFReactor template rule #set1static]
0656: */
0657: public static void setRange(Model model,
0658: org.ontoware.rdf2go.model.node.Resource instanceResource,
0659: org.ontoware.rdf2go.model.node.Node value) {
0660: Base.set(model, instanceResource, RANGE, value);
0661: }
0662:
0663: /**
0664: * Sets a value of property Range from an RDF2Go node.
0665: * First, all existing values are removed, then this value is added.
0666: * Cardinality constraints are not checked, but this method exists only for properties with
0667: * no minCardinality or minCardinality == 1.
0668: * @param value the value to be added
0669: *
0670: * [Generated from RDFReactor template rule #set1dynamic]
0671: */
0672: public void setRange(org.ontoware.rdf2go.model.node.Node value) {
0673: Base.set(this .model, this .getResource(), RANGE, value);
0674: }
0675:
0676: /**
0677: * Sets a value of property Range from an instance of Class
0678: * First, all existing values are removed, then this value is added.
0679: * Cardinality constraints are not checked, but this method exists only for properties with
0680: * no minCardinality or minCardinality == 1.
0681: * @param model an RDF2Go model
0682: * @param resource an RDF2Go resource
0683: * @param value the value to be added
0684: *
0685: * [Generated from RDFReactor template rule #set3static]
0686: */
0687: public static void setRange(Model model,
0688: org.ontoware.rdf2go.model.node.Resource instanceResource,
0689: OwlClass value) {
0690: Base.set(model, instanceResource, RANGE, value);
0691: }
0692:
0693: /**
0694: * Sets a value of property Range from an instance of Class
0695: * First, all existing values are removed, then this value is added.
0696: * Cardinality constraints are not checked, but this method exists only for properties with
0697: * no minCardinality or minCardinality == 1.
0698: * @param value the value to be added
0699: *
0700: * [Generated from RDFReactor template rule #set4dynamic]
0701: */
0702: public void setRange(OwlClass value) {
0703: Base.set(this .model, this .getResource(), RANGE, value);
0704: }
0705:
0706: /**
0707: * Removes a value of property Range as an RDF2Go node
0708: * @param model an RDF2Go model
0709: * @param resource an RDF2Go resource
0710: * @param value the value to be removed
0711: *
0712: * [Generated from RDFReactor template rule #remove1static]
0713: */
0714: public static void removeRange(Model model,
0715: org.ontoware.rdf2go.model.node.Resource instanceResource,
0716: org.ontoware.rdf2go.model.node.Node value) {
0717: Base.remove(model, instanceResource, RANGE, value);
0718: }
0719:
0720: /**
0721: * Removes a value of property Range as an RDF2Go node
0722: * @param value the value to be removed
0723: *
0724: * [Generated from RDFReactor template rule #remove1dynamic]
0725: */
0726: public void removeRange(org.ontoware.rdf2go.model.node.Node value) {
0727: Base.remove(this .model, this .getResource(), RANGE, value);
0728: }
0729:
0730: /**
0731: * Removes a value of property Range given as an instance of Class
0732: * @param model an RDF2Go model
0733: * @param resource an RDF2Go resource
0734: * @param value the value to be removed
0735: *
0736: * [Generated from RDFReactor template rule #remove3static]
0737: */
0738: public static void removeRange(Model model,
0739: org.ontoware.rdf2go.model.node.Resource instanceResource,
0740: OwlClass value) {
0741: Base.remove(model, instanceResource, RANGE, value);
0742: }
0743:
0744: /**
0745: * Removes a value of property Range given as an instance of Class
0746: * @param value the value to be removed
0747: *
0748: * [Generated from RDFReactor template rule #remove4dynamic]
0749: */
0750: public void removeRange(OwlClass value) {
0751: Base.remove(this .model, this .getResource(), RANGE, value);
0752: }
0753:
0754: /**
0755: * Removes all values of property Range * @param model an RDF2Go model
0756: * @param resource an RDF2Go resource
0757: *
0758: * [Generated from RDFReactor template rule #removeall1static]
0759: */
0760: public static void removeAllRange(Model model,
0761: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0762: Base.removeAll(model, instanceResource, RANGE);
0763: }
0764:
0765: /**
0766: * Removes all values of property Range *
0767: * [Generated from RDFReactor template rule #removeall1dynamic]
0768: */
0769: public void addRange() {
0770: Base.removeAll(this .model, this .getResource(), RANGE);
0771: }
0772:
0773: /**
0774: * Get all values of property SubPropertyOf as an Iterator over RDF2Go nodes
0775: * @param model an RDF2Go model
0776: * @param resource an RDF2Go resource
0777: * @return a ClosableIterator of RDF2Go Nodes
0778: *
0779: * [Generated from RDFReactor template rule #get7static]
0780: */
0781: public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllSubPropertyOf_asNode(
0782: Model model,
0783: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0784: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
0785: .getAll_asNode(model, instanceResource, SUBPROPERTYOF);
0786: }
0787:
0788: /**
0789: * Get all values of property SubPropertyOf as a ReactorResult of RDF2Go nodes
0790: * @param model an RDF2Go model
0791: * @param resource an RDF2Go resource
0792: * @return a List of RDF2Go Nodes
0793: *
0794: * [Generated from RDFReactor template rule #get7static-reactor-result]
0795: */
0796: public static ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllSubPropertyOf_asNode_(
0797: Model model,
0798: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0799: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
0800: .getAll_as(model, instanceResource, SUBPROPERTYOF,
0801: org.ontoware.rdf2go.model.node.Node.class);
0802: }
0803:
0804: /**
0805: * Get all values of property SubPropertyOf as an Iterator over RDF2Go nodes
0806: * @return a ClosableIterator of RDF2Go Nodes
0807: *
0808: * [Generated from RDFReactor template rule #get8dynamic]
0809: */
0810: public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllSubPropertyOf_asNode() {
0811: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
0812: .getAll_asNode(this .model, this .getResource(),
0813: SUBPROPERTYOF);
0814: }
0815:
0816: /**
0817: * Get all values of property SubPropertyOf as a ReactorResult of RDF2Go nodes
0818: * @return a List of RDF2Go Nodes
0819: *
0820: * [Generated from RDFReactor template rule #get8dynamic-reactor-result]
0821: */
0822: public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllSubPropertyOf_asNode_() {
0823: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
0824: .getAll_as(this .model, this .getResource(),
0825: SUBPROPERTYOF,
0826: org.ontoware.rdf2go.model.node.Node.class);
0827: }
0828:
0829: /**
0830: * Get all values of property SubPropertyOf * @param model an RDF2Go model
0831: * @param resource an RDF2Go resource
0832: * @return a ClosableIterator of $type
0833: *
0834: * [Generated from RDFReactor template rule #get11static]
0835: */
0836: public static ClosableIterator<OwlProperty> getAllSubPropertyOf(
0837: Model model,
0838: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0839: return Base.getAll(model, instanceResource, SUBPROPERTYOF,
0840: OwlProperty.class);
0841: }
0842:
0843: /**
0844: * Get all values of property SubPropertyOf as a ReactorResult of Property
0845: * @param model an RDF2Go model
0846: * @param resource an RDF2Go resource
0847: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
0848: *
0849: * [Generated from RDFReactor template rule #get11static-reactorresult]
0850: */
0851: public static ReactorResult<OwlProperty> getAllSubPropertyOf_as(
0852: Model model,
0853: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0854: return Base.getAll_as(model, instanceResource, SUBPROPERTYOF,
0855: OwlProperty.class);
0856: }
0857:
0858: /**
0859: * Get all values of property SubPropertyOf * @return a ClosableIterator of $type
0860: *
0861: * [Generated from RDFReactor template rule #get12dynamic]
0862: */
0863: public ClosableIterator<OwlProperty> getAllSubPropertyOf() {
0864: return Base.getAll(this .model, this .getResource(),
0865: SUBPROPERTYOF, OwlProperty.class);
0866: }
0867:
0868: /**
0869: * Get all values of property SubPropertyOf as a ReactorResult of Property
0870: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
0871: *
0872: * [Generated from RDFReactor template rule #get12dynamic-reactorresult]
0873: */
0874: public ReactorResult<OwlProperty> getAllSubPropertyOf_as() {
0875: return Base.getAll_as(this .model, this .getResource(),
0876: SUBPROPERTYOF, OwlProperty.class);
0877: }
0878:
0879: /**
0880: * Adds a value to property SubPropertyOf as an RDF2Go node
0881: * @param model an RDF2Go model
0882: * @param resource an RDF2Go resource
0883: * @param value the value to be added
0884: *
0885: * [Generated from RDFReactor template rule #add1static]
0886: */
0887: public static void addSubPropertyOf(Model model,
0888: org.ontoware.rdf2go.model.node.Resource instanceResource,
0889: org.ontoware.rdf2go.model.node.Node value) {
0890: Base.add(model, instanceResource, SUBPROPERTYOF, value);
0891: }
0892:
0893: /**
0894: * Adds a value to property SubPropertyOf as an RDF2Go node
0895: * @param value the value to be added
0896: *
0897: * [Generated from RDFReactor template rule #add1dynamic]
0898: */
0899: public void addSubPropertyOf(
0900: org.ontoware.rdf2go.model.node.Node value) {
0901: Base.add(this .model, this .getResource(), SUBPROPERTYOF, value);
0902: }
0903:
0904: /**
0905: * Adds a value to property SubPropertyOf from an instance of Property
0906: * @param model an RDF2Go model
0907: * @param resource an RDF2Go resource
0908: *
0909: * [Generated from RDFReactor template rule #add3static]
0910: */
0911: public static void addSubPropertyOf(Model model,
0912: org.ontoware.rdf2go.model.node.Resource instanceResource,
0913: OwlProperty value) {
0914: Base.add(model, instanceResource, SUBPROPERTYOF, value);
0915: }
0916:
0917: /**
0918: * Adds a value to property SubPropertyOf from an instance of Property
0919: *
0920: * [Generated from RDFReactor template rule #add4dynamic]
0921: */
0922: public void addSubPropertyOf(OwlProperty value) {
0923: Base.add(this .model, this .getResource(), SUBPROPERTYOF, value);
0924: }
0925:
0926: /**
0927: * Sets a value of property SubPropertyOf from an RDF2Go node.
0928: * First, all existing values are removed, then this value is added.
0929: * Cardinality constraints are not checked, but this method exists only for properties with
0930: * no minCardinality or minCardinality == 1.
0931: * @param model an RDF2Go model
0932: * @param resource an RDF2Go resource
0933: * @param value the value to be set
0934: *
0935: * [Generated from RDFReactor template rule #set1static]
0936: */
0937: public static void setSubPropertyOf(Model model,
0938: org.ontoware.rdf2go.model.node.Resource instanceResource,
0939: org.ontoware.rdf2go.model.node.Node value) {
0940: Base.set(model, instanceResource, SUBPROPERTYOF, value);
0941: }
0942:
0943: /**
0944: * Sets a value of property SubPropertyOf from an RDF2Go node.
0945: * First, all existing values are removed, then this value is added.
0946: * Cardinality constraints are not checked, but this method exists only for properties with
0947: * no minCardinality or minCardinality == 1.
0948: * @param value the value to be added
0949: *
0950: * [Generated from RDFReactor template rule #set1dynamic]
0951: */
0952: public void setSubPropertyOf(
0953: org.ontoware.rdf2go.model.node.Node value) {
0954: Base.set(this .model, this .getResource(), SUBPROPERTYOF, value);
0955: }
0956:
0957: /**
0958: * Sets a value of property SubPropertyOf from an instance of Property
0959: * First, all existing values are removed, then this value is added.
0960: * Cardinality constraints are not checked, but this method exists only for properties with
0961: * no minCardinality or minCardinality == 1.
0962: * @param model an RDF2Go model
0963: * @param resource an RDF2Go resource
0964: * @param value the value to be added
0965: *
0966: * [Generated from RDFReactor template rule #set3static]
0967: */
0968: public static void setSubPropertyOf(Model model,
0969: org.ontoware.rdf2go.model.node.Resource instanceResource,
0970: OwlProperty value) {
0971: Base.set(model, instanceResource, SUBPROPERTYOF, value);
0972: }
0973:
0974: /**
0975: * Sets a value of property SubPropertyOf from an instance of Property
0976: * First, all existing values are removed, then this value is added.
0977: * Cardinality constraints are not checked, but this method exists only for properties with
0978: * no minCardinality or minCardinality == 1.
0979: * @param value the value to be added
0980: *
0981: * [Generated from RDFReactor template rule #set4dynamic]
0982: */
0983: public void setSubPropertyOf(OwlProperty value) {
0984: Base.set(this .model, this .getResource(), SUBPROPERTYOF, value);
0985: }
0986:
0987: /**
0988: * Removes a value of property SubPropertyOf as an RDF2Go node
0989: * @param model an RDF2Go model
0990: * @param resource an RDF2Go resource
0991: * @param value the value to be removed
0992: *
0993: * [Generated from RDFReactor template rule #remove1static]
0994: */
0995: public static void removeSubPropertyOf(Model model,
0996: org.ontoware.rdf2go.model.node.Resource instanceResource,
0997: org.ontoware.rdf2go.model.node.Node value) {
0998: Base.remove(model, instanceResource, SUBPROPERTYOF, value);
0999: }
1000:
1001: /**
1002: * Removes a value of property SubPropertyOf as an RDF2Go node
1003: * @param value the value to be removed
1004: *
1005: * [Generated from RDFReactor template rule #remove1dynamic]
1006: */
1007: public void removeSubPropertyOf(
1008: org.ontoware.rdf2go.model.node.Node value) {
1009: Base.remove(this .model, this .getResource(), SUBPROPERTYOF,
1010: value);
1011: }
1012:
1013: /**
1014: * Removes a value of property SubPropertyOf given as an instance of Property
1015: * @param model an RDF2Go model
1016: * @param resource an RDF2Go resource
1017: * @param value the value to be removed
1018: *
1019: * [Generated from RDFReactor template rule #remove3static]
1020: */
1021: public static void removeSubPropertyOf(Model model,
1022: org.ontoware.rdf2go.model.node.Resource instanceResource,
1023: OwlProperty value) {
1024: Base.remove(model, instanceResource, SUBPROPERTYOF, value);
1025: }
1026:
1027: /**
1028: * Removes a value of property SubPropertyOf given as an instance of Property
1029: * @param value the value to be removed
1030: *
1031: * [Generated from RDFReactor template rule #remove4dynamic]
1032: */
1033: public void removeSubPropertyOf(OwlProperty value) {
1034: Base.remove(this .model, this .getResource(), SUBPROPERTYOF,
1035: value);
1036: }
1037:
1038: /**
1039: * Removes all values of property SubPropertyOf * @param model an RDF2Go model
1040: * @param resource an RDF2Go resource
1041: *
1042: * [Generated from RDFReactor template rule #removeall1static]
1043: */
1044: public static void removeAllSubPropertyOf(Model model,
1045: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1046: Base.removeAll(model, instanceResource, SUBPROPERTYOF);
1047: }
1048:
1049: /**
1050: * Removes all values of property SubPropertyOf *
1051: * [Generated from RDFReactor template rule #removeall1dynamic]
1052: */
1053: public void addSubPropertyOf() {
1054: Base.removeAll(this.model, this.getResource(), SUBPROPERTYOF);
1055: }
1056: }
|