| java.lang.Object org.ontoware.rdfreactor.runtime.ReactorRuntimeEntity
All known Subclasses: org.ontoware.rdfreactor.schema.bootstrap.Resource, org.ontoware.rdfreactor.schema.rdfs.Resource,
ReactorRuntimeEntity | public class ReactorRuntimeEntity implements Resource(Code) | | ReactorBaseImpl is the base class for instances of classes from the
RDFS/OWL schema generated by the code generator.
If a class inheriting from ReactorBaseImpl is instantiated, it represents an
instance of a class from an RDFS/OWL schema. The properties of this class
instance are stored in an RDF model using RDF2Go (via the static Bridge
object) as triples of the form: (this.instanceIdentifier, key, value).
Besides methods for putting, getting and removing properties, the Map Interface is also supported for handling of all properties of this
instance in one Map, backed by the actual RDF2Go model.
RDF Reactor uses the following naming:
resource - instance of an RDF schema class, identified by the
resource ID (an URI or BlankNode), almost all statements about the resource
use the resource ID as the object
property - a property belongs to a resource, represented by the
predicate of a statement about a resource
value - value of a property of a resource, represented by the object
of the statement with the property as predicate and the resource ID as the
subject
author: $Author: xamde $ version: $Id: ReactorBaseImpl.java,v 1.24 2006/12/05 19:47:28 xamde Exp $ |
Constructor Summary | |
public | ReactorRuntimeEntity(Model model, URI classURI, Resource instanceIdentifier, boolean write) Constructor: create a ReactorBaseImpl for the RDFS/OWL schema class
identified by classURI, with instanceIdentifier as the identifing URL or
BlankNode. | public | ReactorRuntimeEntity(Model model, URI classURI, Resource instanceIdentifier) Constructor: create a ReactorBaseImpl for the RDFS/OWL schema class
identified by classURI, with instanceIdentifier as the identifing URL or
BlankNode. |
classURI | protected URI classURI(Code) | | the URI of the RDFS class from which this object is an instance
|
model | protected Model model(Code) | | the underlying RDF2Go model in which the triples representing the
properties of this object are saved
|
ReactorRuntimeEntity | public ReactorRuntimeEntity(Model model, URI classURI, Resource instanceIdentifier, boolean write)(Code) | | Constructor: create a ReactorBaseImpl for the RDFS/OWL schema class
identified by classURI, with instanceIdentifier as the identifing URL or
BlankNode.
model,the underlying RDF2Go model classURI,URI of the RDFS/OWL class from which this object is aninstance instanceIdentifier,has to be an URI or URL or BlankNode Parameters: write - if true, the triple (this, rdf:type, classURI) is written tothe model (in addition to any other triples denotingproperties of the instance) |
ReactorRuntimeEntity | public ReactorRuntimeEntity(Model model, URI classURI, Resource instanceIdentifier)(Code) | | Constructor: create a ReactorBaseImpl for the RDFS/OWL schema class
identified by classURI, with instanceIdentifier as the identifing URL or
BlankNode. Don't write (this, rdf:type, classURI) for this instance to the
model.
model,the underlying RDF2Go model classURI,URI of the RDFS/OWL class from which this object is aninstance instanceIdentifier,has to be an URI or URL or BlankNode |
castTo | public Object castTo(Class> targetType)(Code) | | Cast .this object to the given target Java type.
Parameters: targetType - -Java type to which to cast this object converted object |
equals | public boolean equals(Object other)(Code) | | implement
See Also: Object See Also: methods |
getRDFSClassURI | public URI getRDFSClassURI()(Code) | | the URI of the RDFS schema class of which this object is aninstance |
getResource | public Resource getResource()(Code) | | implements
See Also: ReactorEntity |
hashCode | public int hashCode()(Code) | | implement
See Also: Object See Also: methods |
isInstanceof | public boolean isInstanceof(URI classURI)(Code) | | |
toString | public String toString()(Code) | | implement
See Also: Object See Also: methods a string representation of the instance identifier (URI or blanknode). Representations are dependant on the used RDF2Go adaptor. |
|
|