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 12:47
003: */package org.ontoware.rdfreactor.schema.owl;
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 12:47
016: */
017: public class TransitiveProperty extends ObjectProperty {
018:
019: /** http://www.w3.org/2002/07/owl#TransitiveProperty */
020: public static final URI RDFS_CLASS = new URIImpl(
021: "http://www.w3.org/2002/07/owl#TransitiveProperty", 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 TransitiveProperty(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 TransitiveProperty(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 TransitiveProperty(Model model, String uriString,
074: boolean write) 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 TransitiveProperty(Model model, BlankNode bnode,
088: boolean write) {
089: super (model, RDFS_CLASS, bnode, write);
090: }
091:
092: /**
093: * Returns a Java wrapper over an RDF object, identified by
094: * a randomly generated URI.
095: * Creating two wrappers results in different URIs.
096: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
097: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
098: *
099: * [Generated from RDFReactor template rule #c9]
100: */
101: public TransitiveProperty(Model model, boolean write) {
102: super (model, RDFS_CLASS, model.newRandomUniqueURI(), write);
103: }
104:
105: ///////////////////////////////////////////////////////////////////
106: // typing
107:
108: /**
109: * Create a new instance of this class in the model.
110: * That is, create the statement (instanceResource, RDF.type, http://www.w3.org/2002/07/owl#TransitiveProperty).
111: * @param model an RDF2Go model
112: * @param instanceResource an RDF2Go resource
113: *
114: * [Generated from RDFReactor template rule #class1]
115: */
116: public static void createInstance(Model model,
117: org.ontoware.rdf2go.model.node.Resource instanceResource) {
118: Base.createInstance(model, RDFS_CLASS, instanceResource);
119: }
120:
121: /**
122: * @param model an RDF2Go model
123: * @param instanceResource an RDF2Go resource
124: * @return true if instanceResource is an instance of this class in the model
125: *
126: * [Generated from RDFReactor template rule #class2]
127: */
128: public static boolean hasInstance(Model model,
129: org.ontoware.rdf2go.model.node.Resource instanceResource) {
130: return Base.hasInstance(model, RDFS_CLASS, instanceResource);
131: }
132:
133: /**
134: * @param model an RDF2Go model
135: * @return all instances of this class in Model 'model' as RDF resources
136: *
137: * [Generated from RDFReactor template rule #class3]
138: */
139: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllInstances(
140: Model model) {
141: return Base.getAllInstances(model, RDFS_CLASS,
142: org.ontoware.rdf2go.model.node.Resource.class);
143: }
144:
145: /**
146: * @param model an RDF2Go model
147: * @return all instances of this class in Model 'model' as a ReactorResult,
148: * which can conveniently be converted to iterator, list or array.
149: *
150: * [Generated from RDFReactor template rule #class3-as]
151: */
152: public static ReactorResult<? extends TransitiveProperty> getAllInstance_as(
153: Model model) {
154: return Base.getAllInstances_as(model, RDFS_CLASS,
155: TransitiveProperty.class);
156: }
157:
158: /**
159: * Delete all rdf:type from this instance. Other triples are not affected.
160: * @param model an RDF2Go model
161: * @param instanceResource an RDF2Go resource
162: *
163: * [Generated from RDFReactor template rule #class4]
164: */
165: public static void deleteInstance(Model model,
166: org.ontoware.rdf2go.model.node.Resource instanceResource) {
167: Base.deleteInstance(model, RDFS_CLASS, instanceResource);
168: }
169:
170: ///////////////////////////////////////////////////////////////////
171: // property access methods
172:
173: }
|