public interface IRI extends URI, Resource
URI: while URIs are
limited to a subset of the ASCII character set, IRIs may contain characters from the Universal Character Set
(Unicode/ISO 10646), including Chinese or Japanese kanji, Korean, Cyrillic characters, and so forth. It is defined by
RFC 3987.
An IRI can be split into a namespace part and a local name part, which are derived from an IRI string by splitting it in two using the following algorithm:
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Compares this IRI to another object.
|
String |
getLocalName()
Gets the local name part of this IRI.
|
String |
getNamespace()
Gets the namespace part of this IRI.
|
int |
hashCode()
Computes the hash code of this IRI.
|
default boolean |
isIRI()
Check if the object is an instance of the given type.
|
isResourceisBNode, isLiteral, isTriple, stringValuedefault boolean isIRI()
ValueString getNamespace()
The namespace is defined as per the algorithm described in the class documentation.
getNamespace in interface URIString getLocalName()
The local name is defined as per the algorithm described in the class documentation.
getLocalName in interface URIboolean equals(Object o)
equals in interface URIequals in class Objecto - the object to compare this IRI totrue, if the other object is an instance of IRI and their string
values are equal; false, otherwiseint hashCode()
hashCode in interface URIhashCode in class ObjectURI.toString().hashCode()Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.