View Source JSON.LD.Utils (JSON-LD.ex v0.3.8)
Summary
Functions
Resolves a relative IRI against a base IRI.
Checks if the given value is a blank node identifier.
Functions
@spec absolute_iri(String.t(), String.t() | nil) :: RDF.IRI.coercible() | nil
Resolves a relative IRI against a base IRI.
as specified in section 5.1 Establishing a Base URI of RFC3986. Only the basic algorithm in section 5.2 of RFC3986 is used; neither Syntax-Based Normalization nor Scheme-Based Normalization are performed.
Characters additionally allowed in IRI references are treated in the same way that unreserved characters are treated in URI references, per section 6.5 of RFC3987
Checks if the given value is a blank node identifier.
A blank node identifier is a string that can be used as an identifier for a blank node within the scope of a JSON-LD document.
Blank node identifiers begin with _:
see https://www.w3.org/TR/json-ld-api/#dfn-blank-node-identifier