org.friendularity.gen.reacted.phys.Nucleon 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 was generated by RDFReactor on 5/5/15 7:51 PM
*/
public class Nucleon extends Baryon {
private static final long serialVersionUID = -5083808021102049862L;
/** http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#Nucleon */
public static final URI RDFS_CLASS = new URIImpl("http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#Nucleon", false);
/**
* All property-URIs with this class as domain.
* All properties of all super-classes are also available.
*/
public static final URI[] MANAGED_URIS = {
};
// 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 Nucleon (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 Nucleon (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 Nucleon (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 Nucleon (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 Nucleon (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 Nucleon or null if none existst
*
* [Generated from RDFReactor template rule #class0]
*/
public static Nucleon getInstance(Model model, Resource instanceResource) {
return Base.getInstance(model, instanceResource, Nucleon.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#Nucleon).
* @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 Nucleon> getAllInstances_as(Model model) {
return Base.getAllInstances_as(model, RDFS_CLASS, Nucleon.class );
}
/**
* Remove triple {@code (this, rdf:type, Nucleon)} 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
/**
* @param model an RDF2Go model
* @param objectValue
* @return all A's as RDF resources, that have a relation 'SubNucleon' to this Nucleon instance
*
* [Generated from RDFReactor template rule #getallinverse1static]
*/
public static ClosableIterator getAllSubNucleon_Inverse(Model model, Object objectValue) {
return Base.getAll_Inverse(model, Nucleus.SUBNUCLEON, objectValue);
}
/**
* @return all A's as RDF resources, that have a relation 'SubNucleon' to this Nucleon instance
*
* [Generated from RDFReactor template rule #getallinverse1dynamic]
*/
public ClosableIterator getAllSubNucleon_Inverse() {
return Base.getAll_Inverse(this.model, Nucleus.SUBNUCLEON, this.getResource() );
}
/**
* @param model an RDF2Go model
* @param objectValue
* @return all A's as a ReactorResult, that have a relation 'SubNucleon' to this Nucleon instance
*
* [Generated from RDFReactor template rule #getallinverse-as1static]
*/
public static ReactorResult getAllSubNucleon_Inverse_as(Model model, Object objectValue) {
return Base.getAll_Inverse_as(model, Nucleus.SUBNUCLEON, objectValue, Resource.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy