Package org.apache.jena.rdf.model.impl
Class ReifiedStatementImpl
- java.lang.Object
-
- org.apache.jena.enhanced.Polymorphic<RDFNode>
-
- org.apache.jena.enhanced.EnhNode
-
- org.apache.jena.rdf.model.impl.ResourceImpl
-
- org.apache.jena.rdf.model.impl.ReifiedStatementImpl
-
- All Implemented Interfaces:
FrontsNode
,RDFNode
,ReifiedStatement
,Resource
public class ReifiedStatementImpl extends ResourceImpl implements ReifiedStatement
A ReifiedStatementImpl encodes a Statement and behaves as a Resource.
-
-
Field Summary
Fields Modifier and Type Field Description static Implementation
reifiedStatementFactory
-
Fields inherited from class org.apache.jena.rdf.model.impl.ResourceImpl
factory, rdfNodeFactory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReifiedStatementImpl
create(EnhGraph eg, Node n, Statement s)
static ReifiedStatementImpl
create(ModelCom m, java.lang.String uri, Statement s)
factory method.static ReifiedStatement
create(Statement s)
factory method.static ReifiedStatement
createExistingReifiedStatement(ModelCom model, Node n)
Statement
getStatement()
answer [a .equals() version of] the Statement that this ReifiedStatement represents.boolean
isValid()
answer true iff this enhanced node is still underpinned in the graph by triples appropriate to its type.java.lang.String
toString()
Return a string representation of the resource.-
Methods inherited from class org.apache.jena.rdf.model.impl.ResourceImpl
abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, asLiteral, asResource, begin, commit, getId, getLocalName, getModel, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getStmtTerm, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, removeAll, removeProperties, visitWith
-
Methods inherited from class org.apache.jena.enhanced.EnhNode
as, asNode, canAs, equals, getGraph, hashCode, isAnon, isLiteral, isResource, isStmtResource, isURIResource, viewAs
-
Methods inherited from class org.apache.jena.enhanced.Polymorphic
addView, supports
-
Methods inherited from interface org.apache.jena.graph.FrontsNode
asNode
-
Methods inherited from interface org.apache.jena.rdf.model.RDFNode
as, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isStmtResource, isURIResource, visitWith
-
Methods inherited from interface org.apache.jena.rdf.model.Resource
abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getStmtTerm, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, removeAll, removeProperties
-
-
-
-
Field Detail
-
reifiedStatementFactory
public static final Implementation reifiedStatementFactory
-
-
Method Detail
-
getStatement
public Statement getStatement()
answer [a .equals() version of] the Statement that this ReifiedStatement represents.- Specified by:
getStatement
in interfaceReifiedStatement
-
isValid
public boolean isValid()
Description copied from class:Polymorphic
answer true iff this enhanced node is still underpinned in the graph by triples appropriate to its type.
-
create
public static ReifiedStatement create(Statement s)
factory method. answer a ReifiedStatement which encodes the Statement _s_. The mapping is remembered.
-
create
public static ReifiedStatementImpl create(ModelCom m, java.lang.String uri, Statement s)
factory method. answer a ReifiedStatement which encodes the Statement _s_ with uri _uri_. The mapping is remembered.
-
create
public static ReifiedStatementImpl create(EnhGraph eg, Node n, Statement s)
-
toString
public java.lang.String toString()
Description copied from interface:Resource
Return a string representation of the resource. Returns the URI of the resource unless the resource is anonymous in which case it returns the id of the resource enclosed in square brackets.
-
createExistingReifiedStatement
public static ReifiedStatement createExistingReifiedStatement(ModelCom model, Node n)
-
-