public class SimpleIRI extends AbstractIRI
IRI
interface.Modifier | Constructor and Description |
---|---|
protected |
SimpleIRI()
Creates a new, un-initialized IRI.
|
protected |
SimpleIRI(String iriString)
Creates a new IRI from the supplied string.
|
Modifier and Type | Method and Description |
---|---|
String |
getLocalName()
Gets the local name part of this IRI.
|
String |
getNamespace()
Gets the namespace part of this IRI.
|
protected void |
setIRIString(String iriString) |
String |
stringValue()
Returns the String-value of a Value object.
|
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isResource
protected SimpleIRI()
set
before
the normal methods can be used.protected SimpleIRI(String iriString)
Note that creating SimpleIRI objects directly via this constructor is not the recommended approach. Instead, use
a ValueFactory
(obtained from your repository or by using
SimpleValueFactory.getInstance()
) to create new IRI objects.
iriString
- A String representing a valid, absolute IRI. May not be null
.IllegalArgumentException
- If the supplied IRI is not a valid (absolute) IRI.SimpleValueFactory.createIRI(String)
protected void setIRIString(String iriString)
public String stringValue()
Value
Literal
's label, a
IRI
's URI or a BNode
's ID.stringValue
in interface Value
stringValue
in class AbstractIRI
public String getNamespace()
IRI
The namespace is defined as per the algorithm described in the class documentation.
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.