PrefixMap

case class PrefixMap(pm: Map[Prefix, IRI])

PrefixMap representation

Companion:
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def addPrefix(prefix: String, iri: IRI): PrefixMap
def addPrefix(prefix: Prefix, iri: IRI): PrefixMap
def contains(prefix: String): Boolean
def getIRI(prefix: String): Option[IRI]

Given an alias, return the IRI associated with the alias

Given an alias, return the IRI associated with the alias

Get prefix declaration and local name of an IRI

Get prefix declaration and local name of an IRI

Returns:

If there is a prefix declaration a: -> http://example.org/ Then, getPrefixLocalName(IRI(http://example.org/foo") returns Right("a", "foo")

If prefixMap contains a: -> http://example.org/ then qualifyString("http://example.org/x") = "a:x" else http://example.org/x

If prefixMap contains a: -> http://example.org/ then qualifyString("http://example.org/x") = "a:x" else http://example.org/x

def qname(str: String): Option[IRI]

Qualify a string If prefix map contains "ex" -> "http://example.org" qname("ex:age") -> "http://example.org/age"

Qualify a string If prefix map contains "ex" -> "http://example.org" qname("ex:age") -> "http://example.org/age"

def qualify(node: RDFNode): String
def qualifyIRI(iri: IRI): String
override def toString: String
Definition Classes
Any

Inherited methods

Inherited from:
Product