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, asStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitasDatatypeLiteral, asLanguageTagLiteral, asLiteral, asResourcepublic 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
NodeasURI in interface NodeClassCastException - if the node is not a URIpublic BlankNode asBlankNode() throws ClassCastException
NodeasBlankNode in interface NodeClassCastException - if the node is not a BlankNodepublic boolean equals(Object other)
equals in class ResourceImplpublic URI toJavaURI() throws URISyntaxException
URISyntaxExceptionpublic int hashCode()
hashCode in class ResourceImplpublic int compareTo(Node other)
compareTo in interface Comparable<Node>public String toSPARQL()
NodeCopyright © 2005–2016 IT-Consulting Dr. Max V?lkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.