org.ontoware.rdf2go.model.node
Interface URI

All Superinterfaces:
java.lang.Comparable<Node>, Node, NodeOrVariable, Resource, ResourceOrVariable, UriOrVariable
All Known Implementing Classes:
URIImpl

public interface URI
extends Resource, UriOrVariable

Interface for URI implementations. Implementations must have valid implementations of

 public boolean equals(Object other);
 
 public int hashCode();
 
The method "public String toString();" is expected to return a valid URI String

Author:
voelkel

Method Summary
 java.net.URI asJavaURI()
          Convenience method to return the URI as a java.net.URI.
 
Methods inherited from interface org.ontoware.rdf2go.model.node.Node
asBlankNode, asDatatypeLiteral, asLanguageTagLiteral, asLiteral, asResource, asURI, toSPARQL
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

asJavaURI

java.net.URI asJavaURI()
Convenience method to return the URI as a java.net.URI.

Returns:
this URI as a java.net.URI
Throws:
ModelRuntimeException - if this URI could not be converted to a java.net.URI. This sounds strange, but there are so many subleties in URI syntax that this might (rarely) happen.


Copyright © 2005-2008 FZI - Forschungszentrum Informatik | Karlsruhe | Germany. All Rights Reserved.