01: /*
02: * LICENSE INFORMATION
03: * Copyright 2005-2007 by FZI (http://www.fzi.de).
04: * Licensed under a BSD license (http://www.opensource.org/licenses/bsd-license.php)
05: * <OWNER> = Max Völkel
06: * <ORGANIZATION> = FZI Forschungszentrum Informatik Karlsruhe, Karlsruhe, Germany
07: * <YEAR> = 2007
08: *
09: * Project information at http://semweb4j.org/rdf2go
10: */
11: package org.ontoware.rdf2go.model.node;
12:
13: /**
14: * Interface for URI implementations.
15: *
16: * Implementations must have valid implementations of
17: *
18: * <pre>
19: * public boolean equals(Object other);
20: *
21: * public int hashCode();
22: * </pre>
23: *
24: * The method "public String toString();" is expected to return a valid URI
25: * String
26: *
27: *
28: *
29: *
30: * @author voelkel
31: *
32: */
33: public interface URI extends Resource, UriOrVariable {
34:
35: /**
36: * Convenience method to return the URI as a java.net.URI.
37: *
38: * @return this URI as a java.net.URI
39: * @throws ModelRuntimeException
40: * if this URI could not be converted to a java.net.URI. This
41: * sounds strange, but there are so many subleties in URI syntax
42: * that this might (rarely) happen.
43: */
44: java.net.URI asJavaURI();
45:
46: }
|