IRI

case class IRI(uri: URI) extends RDFNode
Companion:
object
trait Serializable
trait Product
trait Equals
class RDFNode
class Object
trait Matchable
class Any

Value members

Concrete methods

def +(str: String): IRI
def add(str: String): IRI
override def getLexicalForm: String
Definition Classes
override def isBNode: Boolean
Definition Classes
override def isIRI: Boolean
Definition Classes
override def isLiteral: Boolean
Definition Classes
def relativizeIRI(base: IRI): IRI

Make a relative IRI from a given base Example `IRI("http://example.com/foo").relativize(IRI("http://example.com/")) = IRI("foo")``

Make a relative IRI from a given base Example `IRI("http://example.com/foo").relativize(IRI("http://example.com/")) = IRI("foo")``

Value parameters:
base

base IRI

Returns:

the relativized IRI

def resolve(iri: IRI): IRI

Resolve an IRI against this IRI (which is taken as the base) Currently, we employ java.net.URI algorithm to resolve It seems that the algorithm is wrong with file:// removing the two slashes

Resolve an IRI against this IRI (which is taken as the base) Currently, we employ java.net.URI algorithm to resolve It seems that the algorithm is wrong with file:// removing the two slashes

def str: String

String representation of IRI without < and >

String representation of IRI without < and >

Returns:

string representation

override def toString: String

Represents an IRI as <...>

Represents an IRI as <...>

Definition Classes
Any

Inherited methods

Inherited from:
RDFNode
Inherited from:
RDFNode
Inherited from:
Product
def relativize(base: IRI): RDFNode
Inherited from:
RDFNode
Inherited from:
RDFNode

Implicits

Implicits

implicit def minOrd: Ordering[IRI]