Base

com.tersesystems.blindsight.jsonld.Base
final case class Base

A base URI renders as @base in a context.

Attributes

Source:
Node.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

Creates a relative path from this IRI, which is considered the base IRI.

Creates a relative path from this IRI, which is considered the base IRI.

This is most often used in Node Identifier Indexing

// "@base": "http://example.com/posts/",
val base: Base = IRI("http://example.com/document.jsonld").base
val enPost: RelativeIRI = base("1/en")

Attributes

path

the IRI path

Returns:

the relative IRI

Source:
Node.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product