public abstract class LiteralImpl extends Object implements Literal
Constructor and Description |
---|
LiteralImpl() |
Modifier and Type | Method and Description |
---|---|
BlankNode |
asBlankNode()
A convenience method for a cast to
org.ontoware.rdf2go.model.node.BlankNode
|
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
|
abstract String |
getValue()
gets the value of the literal
|
protected static String |
sparqlEncode(String raw) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asDatatypeLiteral, asLanguageTagLiteral, toSPARQL
compareTo
public abstract String getValue()
Literal
public Resource asResource() throws ClassCastException
Node
asResource
in interface Node
ClassCastException
- if the node is not a Resourcepublic Literal asLiteral() throws ClassCastException
Node
asLiteral
in interface Node
ClassCastException
- if the node is not a Literalpublic URI asURI() throws ClassCastException
Node
asURI
in interface Node
ClassCastException
- if the node is not a URIpublic BlankNode asBlankNode() throws ClassCastException
Node
asBlankNode
in interface Node
ClassCastException
- if the node is not a BlankNodeCopyright © 2005–2017 IT-Consulting Dr. Max V?lkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.