org.friendularity.gen.reacted.phys.SpinningThing Maven / Gradle / Ivy
/*
* generated by http://RDFReactor.semweb4j.org ($Id: CodeGenerator.java 1954 2014-10-29 14:09:16Z [email protected] $) on 5/5/15 7:51 PM
*/
package org.friendularity.gen.reacted.phys;
import org.ontoware.aifbcommons.collection.ClosableIterator;
import org.ontoware.rdf2go.exception.ModelRuntimeException;
import org.ontoware.rdf2go.model.Model;
import org.ontoware.rdf2go.model.node.BlankNode;
import org.ontoware.rdf2go.model.node.Node;
import org.ontoware.rdf2go.model.node.Resource;
import org.ontoware.rdf2go.model.node.URI;
import org.ontoware.rdf2go.model.node.impl.URIImpl;
import org.ontoware.rdfreactor.runtime.Base;
import org.ontoware.rdfreactor.runtime.ReactorResult;
/**
* This class manages access to these properties:
*
* - Spin
*
*
* This class was generated by RDFReactor on 5/5/15 7:51 PM
*/
public class SpinningThing extends PThing {
private static final long serialVersionUID = 7813667807893479552L;
/** http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#SpinningThing */
public static final URI RDFS_CLASS = new URIImpl("http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#SpinningThing", false);
/** http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#hasSpin */
public static final URI SPIN = new URIImpl("http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#hasSpin", false);
/**
* All property-URIs with this class as domain.
* All properties of all super-classes are also available.
*/
public static final URI[] MANAGED_URIS = {
new URIImpl("http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#hasSpin", false)
};
// protected constructors needed for inheritance
/**
* Returns a Java wrapper over an RDF object, identified by URI.
* Creating two wrappers for the same instanceURI is legal.
* @param model RDF2GO Model implementation, see http://rdf2go.semweb4j.org
* @param classURI URI of RDFS class
* @param instanceIdentifier Resource that identifies this instance
* @param write if true, the statement (this, rdf:type, TYPE) is written to the model
*
* [Generated from RDFReactor template rule #c1]
*/
protected SpinningThing (Model model, URI classURI, Resource instanceIdentifier, boolean write) {
super(model, classURI, instanceIdentifier, write);
}
// public constructors
/**
* Returns a Java wrapper over an RDF object, identified by URI.
* Creating two wrappers for the same instanceURI is legal.
* @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
* @param instanceIdentifier an RDF2Go Resource identifying this instance
* @param write if true, the statement (this, rdf:type, TYPE) is written to the model
*
* [Generated from RDFReactor template rule #c2]
*/
public SpinningThing (Model model, Resource instanceIdentifier, boolean write) {
super(model, RDFS_CLASS, instanceIdentifier, write);
}
/**
* Returns a Java wrapper over an RDF object, identified by a URI, given as a String.
* Creating two wrappers for the same URI is legal.
* @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
* @param uriString a URI given as a String
* @param write if true, the statement (this, rdf:type, TYPE) is written to the model
* @throws ModelRuntimeException if URI syntax is wrong
*
* [Generated from RDFReactor template rule #c7]
*/
public SpinningThing (Model model, String uriString, boolean write) throws ModelRuntimeException {
super(model, RDFS_CLASS, new URIImpl(uriString,false), write);
}
/**
* Returns a Java wrapper over an RDF object, identified by a blank node.
* Creating two wrappers for the same blank node is legal.
* @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
* @param bnode BlankNode of this instance
* @param write if true, the statement (this, rdf:type, TYPE) is written to the model
*
* [Generated from RDFReactor template rule #c8]
*/
public SpinningThing (Model model, BlankNode bnode, boolean write) {
super(model, RDFS_CLASS, bnode, write);
}
/**
* Returns a Java wrapper over an RDF object, identified by
* a randomly generated URI.
* Creating two wrappers results in different URIs.
* @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
* @param write if true, the statement (this, rdf:type, TYPE) is written to the model
*
* [Generated from RDFReactor template rule #c9]
*/
public SpinningThing (Model model, boolean write) {
super(model, RDFS_CLASS, model.newRandomUniqueURI(), write);
}
///////////////////////////////////////////////////////////////////
// typing
/**
* Return an existing instance of this class in the model. No statements are written.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @return an instance of SpinningThing or null if none existst
*
* [Generated from RDFReactor template rule #class0]
*/
public static SpinningThing getInstance(Model model, Resource instanceResource) {
return Base.getInstance(model, instanceResource, SpinningThing.class);
}
/**
* Create a new instance of this class in the model.
* That is, create the statement (instanceResource, RDF.type, http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#SpinningThing).
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
*
* [Generated from RDFReactor template rule #class1]
*/
public static void createInstance(Model model, Resource instanceResource) {
Base.createInstance(model, RDFS_CLASS, instanceResource);
}
/**
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @return true if instanceResource is an instance of this class in the model
*
* [Generated from RDFReactor template rule #class2]
*/
public static boolean hasInstance(Model model, Resource instanceResource) {
return Base.hasInstance(model, RDFS_CLASS, instanceResource);
}
/**
* @param model an RDF2Go model
* @return all instances of this class in Model 'model' as RDF resources
*
* [Generated from RDFReactor template rule #class3]
*/
public static ClosableIterator getAllInstances(Model model) {
return Base.getAllInstances(model, RDFS_CLASS, Resource.class);
}
/**
* @param model an RDF2Go model
* @return all instances of this class in Model 'model' as a ReactorResult,
* which can conveniently be converted to iterator, list or array.
*
* [Generated from RDFReactor template rule #class3-as]
*/
public static ReactorResult extends SpinningThing> getAllInstances_as(Model model) {
return Base.getAllInstances_as(model, RDFS_CLASS, SpinningThing.class );
}
/**
* Remove triple {@code (this, rdf:type, SpinningThing)} from this instance. Other triples are not affected.
* To delete more, use deleteAllProperties
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
*
* [Generated from RDFReactor template rule #class4]
*/
public static void deleteInstance(Model model, Resource instanceResource) {
Base.deleteInstance(model, RDFS_CLASS, instanceResource);
}
/**
* Delete all triples {@code (this, *, *)}, i.e. including {@code rdf:type}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
*
* [Generated from RDFReactor template rule #class5]
*/
public static void deleteAllProperties(Model model, Resource instanceResource) {
Base.deleteAllProperties(model, instanceResource);
}
///////////////////////////////////////////////////////////////////
// property access methods
/**
* Check if {@code Spin} has at least one value set.
* Comment from schema: We would like to define Spin as a rational number.
*
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @return true if this property has at least one value
*
* [Generated from RDFReactor template rule #get0has-static]
*/
public static boolean hasSpin(Model model, Resource instanceResource) {
return Base.has(model, instanceResource, SPIN);
}
/**
* Check if {@code Spin} has at least one value set.
* Comment from schema: We would like to define Spin as a rational number.
*
* @return true if this property has at least one value
*
* [Generated from RDFReactor template rule #get0has-dynamic]
*/
public boolean hasSpin() {
return Base.has(this.model, this.getResource(), SPIN);
}
/**
* Check if {@code Spin} has the given value (maybe among other values).
* Comment from schema: We would like to define Spin as a rational number.
*
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value the value to be checked
* @return true if this property contains (maybe among other) the given value
*
* [Generated from RDFReactor template rule #get0has-value-static]
*/
public static boolean hasSpin(Model model, Resource instanceResource, Node value ) {
return Base.hasValue(model, instanceResource, SPIN, value);
}
/**
* Check if {@code Spin} has the given value (maybe among other values).
* Comment from schema: We would like to define Spin as a rational number.
*
* @param value the value to be checked
* @return true if this property contains (maybe among other) the given value
*
* [Generated from RDFReactor template rule #get0has-value-dynamic]
*/
public boolean hasSpin( Node value ) {
return Base.hasValue(this.model, this.getResource(), SPIN, value);
}
/**
* Get all values of property {@code Spin} as an Iterator over RDF2Go nodes.
* Comment from schema: We would like to define Spin as a rational number.
*
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @return a ClosableIterator of RDF2Go Nodes
*
* [Generated from RDFReactor template rule #get7static]
*/
public static ClosableIterator getAllSpin_asNode(Model model, Resource instanceResource) {
return Base.getAll_asNode(model, instanceResource, SPIN);
}
/**
* Get all values of property {@code Spin} as a ReactorResult of RDF2Go nodes.
* Comment from schema: We would like to define Spin as a rational number.
*
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @return a List of RDF2Go Nodes
*
* [Generated from RDFReactor template rule #get7static-reactor-result]
*/
public static ReactorResult getAllSpin_asNode_(Model model, Resource instanceResource) {
return Base.getAll_as(model, instanceResource, SPIN, Node.class);
}
/**
* Get all values of property {@code Spin} as an Iterator over RDF2Go nodes
* Comment from schema: We would like to define Spin as a rational number.
*
* @return a ClosableIterator of RDF2Go Nodes
*
* [Generated from RDFReactor template rule #get8dynamic]
*/
public ClosableIterator getAllSpin_asNode() {
return Base.getAll_asNode(this.model, this.getResource(), SPIN);
}
/**
* Get all values of property {@code Spin} as a ReactorResult of RDF2Go nodes.
* Comment from schema: We would like to define Spin as a rational number.
*
* @return a List of RDF2Go Nodes
*
* [Generated from RDFReactor template rule #get8dynamic-reactor-result]
*/
public ReactorResult getAllSpin_asNode_() {
return Base.getAll_as(this.model, this.getResource(), SPIN, Node.class);
}
/**
* Get all values of property {@code Spin}.
* Comment from schema: We would like to define Spin as a rational number.
*
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @return a ClosableIterator of $type
*
* [Generated from RDFReactor template rule #get11static]
*/
public static ClosableIterator getAllSpin(Model model, Resource instanceResource) {
return Base.getAll(model, instanceResource, SPIN, java.lang.Float.class);
}
/**
* Get all values of property {@code Spin} as a ReactorResult of {@linkplain java.lang.Float}.
* Comment from schema: We would like to define Spin as a rational number.
*
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
*
* [Generated from RDFReactor template rule #get11static-reactorresult]
*/
public static ReactorResult getAllSpin_as(Model model, Resource instanceResource) {
return Base.getAll_as(model, instanceResource, SPIN, java.lang.Float.class);
}
/**
* Get all values of property {@code Spin}.
* Comment from schema: We would like to define Spin as a rational number.
*
* @return a ClosableIterator of $type
*
* [Generated from RDFReactor template rule #get12dynamic]
*/
public ClosableIterator getAllSpin() {
return Base.getAll(this.model, this.getResource(), SPIN, java.lang.Float.class);
}
/**
* Get all values of property {@code Spin} as a ReactorResult of {@linkplain java.lang.Float}.
* Comment from schema: We would like to define Spin as a rational number.
*
* @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
*
* [Generated from RDFReactor template rule #get12dynamic-reactorresult]
*/
public ReactorResult getAllSpin_as() {
return Base.getAll_as(this.model, this.getResource(), SPIN, java.lang.Float.class);
}
/**
* Adds a value to property {@code Spin} as an RDF2Go {@linkplain Node}.
* Comment from schema: We would like to define Spin as a rational number.
*
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value the value to be added
*
* [Generated from RDFReactor template rule #add1static]
*/
public static void addSpin(Model model, Resource instanceResource, Node value) {
Base.add(model, instanceResource, SPIN, value);
}
/**
* Adds a value to property {@code Spin} as an RDF2Go {@linkplain Node}.
* Comment from schema: We would like to define Spin as a rational number.
*
* @param value the value to be added
*
* [Generated from RDFReactor template rule #add1dynamic]
*/
public void addSpin(Node value) {
Base.add(this.model, this.getResource(), SPIN, value);
}
/**
* Adds a value to property {@code Spin} from an instance of {@linkplain java.lang.Float}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value
*
* [Generated from RDFReactor template rule #add3static]
*/
public static void addSpin(Model model, Resource instanceResource, java.lang.Float value) {
Base.add(model, instanceResource, SPIN, value);
}
/**
* Adds a value to property {@code Spin} from an instance of {@linkplain java.lang.Float}.
*
* [Generated from RDFReactor template rule #add4dynamic]
*/
public void addSpin(java.lang.Float value) {
Base.add(this.model, this.getResource(), SPIN, value);
}
/**
* Sets a value of property {@code Spin} from an RDF2Go {@linkplain Node}.
* First, all existing values are removed, then this value is added.
* Cardinality constraints are not checked, but this method exists only for properties with
* no {@code minCardinality} or {@code minCardinality == 1}.
* Comment from schema: We would like to define Spin as a rational number.
*
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value the value to be set
*
* [Generated from RDFReactor template rule #set1static]
*/
public static void setSpin(Model model, Resource instanceResource, Node value) {
Base.set(model, instanceResource, SPIN, value);
}
/**
* Sets a value of property {@code Spin} from an RDF2Go {@linkplain Node}.
* First, all existing values are removed, then this value is added.
* Cardinality constraints are not checked, but this method exists only for properties with
* no {@code minCardinality} or {@code minCardinality == 1}.
* Comment from schema: We would like to define Spin as a rational number.
*
* @param value the value to be added
*
* [Generated from RDFReactor template rule #set1dynamic]
*/
public void setSpin(Node value) {
Base.set(this.model, this.getResource(), SPIN, value);
}
/**
* Sets a value of property {@code Spin} from an instance of {@linkplain java.lang.Float}.
* First, all existing values are removed, then this value is added.
* Cardinality constraints are not checked, but this method exists only for properties with
* no {@code minCardinality} or {@code minCardinality == 1}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value the value to be added
*
* [Generated from RDFReactor template rule #set3static]
*/
public static void setSpin(Model model, Resource instanceResource, java.lang.Float value) {
Base.set(model, instanceResource, SPIN, value);
}
/**
* Sets a value of property {@code Spin} from an instance of {@linkplain java.lang.Float}.
* First, all existing values are removed, then this value is added.
* Cardinality constraints are not checked, but this method exists only for properties with
* no {@code minCardinality} or {@code minCardinality == 1}.
* @param value the value to be added
*
* [Generated from RDFReactor template rule #set4dynamic]
*/
public void setSpin(java.lang.Float value) {
Base.set(this.model, this.getResource(), SPIN, value);
}
/**
* Removes a value of property {@code Spin} as an RDF2Go {@linkplain Node}.
* Comment from schema: We would like to define Spin as a rational number.
*
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value the value to be removed
*
* [Generated from RDFReactor template rule #remove1static]
*/
public static void removeSpin(Model model, Resource instanceResource, Node value) {
Base.remove(model, instanceResource, SPIN, value);
}
/**
* Removes a value of property {@code Spin} as an RDF2Go {@linkplain Node}.
* Comment from schema: We would like to define Spin as a rational number.
*
* @param value the value to be removed
*
* [Generated from RDFReactor template rule #remove1dynamic]
*/
public void removeSpin(Node value) {
Base.remove(this.model, this.getResource(), SPIN, value);
}
/**
* Removes a value of property {@code Spin} given as an instance of {@linkplain java.lang.Float}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value the value to be removed
*
* [Generated from RDFReactor template rule #remove3static]
*/
public static void removeSpin(Model model, Resource instanceResource, java.lang.Float value) {
Base.remove(model, instanceResource, SPIN, value);
}
/**
* Removes a value of property {@code Spin} given as an instance of {@linkplain java.lang.Float}.
* @param value the value to be removed
*
* [Generated from RDFReactor template rule #remove4dynamic]
*/
public void removeSpin(java.lang.Float value) {
Base.remove(this.model, this.getResource(), SPIN, value);
}
/**
* Removes all values of property {@code Spin}.
* Comment from schema: We would like to define Spin as a rational number.
*
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
*
* [Generated from RDFReactor template rule #removeall1static]
*/
public static void removeAllSpin(Model model, Resource instanceResource) {
Base.removeAll(model, instanceResource, SPIN);
}
/**
* Removes all values of property {@code Spin}.
* Comment from schema: We would like to define Spin as a rational number.
*
*
* [Generated from RDFReactor template rule #removeall1dynamic]
*/
public void removeAllSpin() {
Base.removeAll(this.model, this.getResource(), SPIN);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy