public class ReactorRuntimeEntity extends Object implements Resource
Modifier and Type | Field and Description |
---|---|
protected URI |
classURI
the URI of the RDFS class from which this object is an instance
|
protected Model |
model
the underlying RDF2Go model in which the triples representing the
properties of this object are saved
|
Constructor and Description |
---|
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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
BlankNode |
asBlankNode()
A convenience method for a cast to
org.ontoware.rdf2go.model.node.BlankNode
|
DatatypeLiteral |
asDatatypeLiteral()
A convenience method for a cast to
org.ontoware.rdf2go.model.node.DatatypeLiteral
|
LanguageTagLiteral |
asLanguageTagLiteral()
A convenience method for a cast to
org.ontoware.rdf2go.model.node.LanguageTagLiteral
|
Literal |
asLiteral()
A convenience method for a cast to org.ontoware.rdf2go.model.node.Literal
|
Resource |
asResource()
A convenience method for a cast to
org.ontoware.rdf2go.model.node.Resource
|
URI |
asURI()
A convenience method for a cast to org.ontoware.rdf2go.model.node.URI
|
Object |
castTo(Class<?> targetType)
Cast .this object to the given target Java type.
|
int |
compareTo(Node o) |
boolean |
equals(Object other)
implement
|
Model |
getModel() |
URI |
getRDFSClassURI() |
Resource |
getResource()
implements
|
int |
hashCode()
implement
|
boolean |
isInstanceof(URI classURI) |
String |
toSPARQL()
A convenience function to create SPARQL queries from nodes
|
String |
toString()
implement
|
protected Model model
protected URI classURI
public ReactorRuntimeEntity(Model model, URI classURI, Resource instanceIdentifier, boolean write)
model,
- the underlying RDF2Go modelclassURI,
- URI of the RDFS/OWL class from which this object is an
instanceinstanceIdentifier,
- has to be an URI or URL or BlankNodewrite
- if true, the triple (this, rdf:type, classURI) is written to
the model (in addition to any other triples denoting
properties of the instance)public ReactorRuntimeEntity(Model model, URI classURI, Resource instanceIdentifier)
model,
- the underlying RDF2Go modelclassURI,
- URI of the RDFS/OWL class from which this object is an
instanceinstanceIdentifier,
- has to be an URI or URL or BlankNodepublic Resource getResource()
ReactorEntity
public Model getModel()
public URI getRDFSClassURI()
public boolean equals(Object other)
public String toString()
public Object castTo(Class<?> targetType)
targetType
- -
Java type to which to cast this objectpublic boolean isInstanceof(URI classURI)
public BlankNode asBlankNode() throws ClassCastException
Node
asBlankNode
in interface Node
ClassCastException
- if the node is not a BlankNodepublic DatatypeLiteral asDatatypeLiteral() throws ClassCastException
Node
asDatatypeLiteral
in interface Node
ClassCastException
- if the node is not a DatatypeLiteralpublic LanguageTagLiteral asLanguageTagLiteral() throws ClassCastException
Node
asLanguageTagLiteral
in interface Node
ClassCastException
- if the node is not a LanguageTagLiteralpublic Literal asLiteral() throws ClassCastException
Node
asLiteral
in interface Node
ClassCastException
- if the node is not a Literalpublic Resource asResource() throws ClassCastException
Node
asResource
in interface Node
ClassCastException
- if the node is not a Resourcepublic URI asURI() throws ClassCastException
Node
asURI
in interface Node
ClassCastException
- if the node is not a URIpublic int compareTo(Node o)
compareTo
in interface Comparable<Node>
Copyright © 2005–2018 IT-Consulting Dr. Max Völkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.