public interface Node extends NodeOrVariable, Comparable<Node>
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
|
String |
toSPARQL()
A convenience function to create SPARQL queries from nodes
|
compareTo
Resource asResource() throws ClassCastException
ClassCastException
- if the node is not a ResourceLiteral asLiteral() throws ClassCastException
ClassCastException
- if the node is not a LiteralDatatypeLiteral asDatatypeLiteral() throws ClassCastException
ClassCastException
- if the node is not a DatatypeLiteralLanguageTagLiteral asLanguageTagLiteral() throws ClassCastException
ClassCastException
- if the node is not a LanguageTagLiteralURI asURI() throws ClassCastException
ClassCastException
- if the node is not a URIBlankNode asBlankNode() throws ClassCastException
ClassCastException
- if the node is not a BlankNodeString toSPARQL()
Copyright © 2005–2018 IT-Consulting Dr. Max Völkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.