public class URIImpl extends ResourceImpl implements URI
Constructor and Description |
---|
URIImpl(String uriString)
Checks uri for validity and creates
|
URIImpl(String uriString,
boolean createURIWithChecking) |
Modifier and Type | Method and Description |
---|---|
BlankNode |
asBlankNode()
A convenience method for a cast to
org.ontoware.rdf2go.model.node.BlankNode
|
URI |
asJavaURI()
Convenience method to return the URI as a java.net.URI.
|
URI |
asURI()
A convenience method for a cast to org.ontoware.rdf2go.model.node.URI
|
int |
compareTo(Node other) |
static URI |
create(String uriString)
Deprecated.
use the constructors instead
|
static URI |
createURIWithoutChecking(String uriString)
Deprecated.
use the constructors instead
|
boolean |
equals(Object other) |
int |
hashCode() |
URI |
toJavaURI() |
String |
toSPARQL()
A convenience function to create SPARQL queries from nodes
|
String |
toString() |
asBoolean, asDatatypeLiteral, asDate, asInt, asLanguageTagLiteral, asLiteral, asResource, asString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asDatatypeLiteral, asLanguageTagLiteral, asLiteral, asResource
public URIImpl(String uriString)
uriString
- should be in valid URI syntax and not nullIllegalArgumentException
- if the uri is not valid and
createURIWithChecking is truepublic URIImpl(String uriString, boolean createURIWithChecking)
uriString
- should be in valid URI syntax and not nullcreateURIWithChecking
- if true, checks for valid uriIllegalArgumentException
- if the uri is not valid and
createURIWithChecking is true@Deprecated public static URI create(String uriString)
uriString
- should be in valid URI syntax and not null@Deprecated public static URI createURIWithoutChecking(String uriString)
uriString
- should be in valid URI syntax and not nullpublic 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 BlankNodepublic boolean equals(Object other)
equals
in class ResourceImpl
public URI toJavaURI() throws URISyntaxException
URISyntaxException
public int hashCode()
hashCode
in class ResourceImpl
public int compareTo(Node other)
compareTo
in interface Comparable<Node>
public String toSPARQL()
Node
Copyright © 2005–2019 IT-Consulting Dr. Max Völkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.