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.
|
isResource
isBNode, isLiteral, isTriple, stringValue
default boolean isIRI()
Value
String getNamespace()
The namespace is defined as per the algorithm described in the class documentation.
getNamespace
in interface URI
String getLocalName()
The local name is defined as per the algorithm described in the class documentation.
getLocalName
in interface URI
boolean equals(Object o)
equals
in interface URI
equals
in class Object
o
- 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 URI
hashCode
in class Object
URI.toString()
.hashCode()
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.