module

Ktistec::Model::Linked

Constants

Log = ::Log.for("ktistec.json_ld")

the only logging in this module is related to dereferencing and mapping JSON-LD.

Class methods

check_origin!(iri : String, final_url : String) : Nil

Raises unless a dereferenced document's IRI and the location it was fetched from have the same origin.

Source
json_response?(response : HTTP::Client::Response) : Bool

Returns true if the response carries an ActivityPub / JSON-LD / JSON content type.

Source
local?(iri : String) : Bool
Source

Instance methods

cached?
Source
iri_matches?(requested_iri : String) : Bool

Returns true if this instance's IRI matches the requested IRI.

Override in subclasses to implement custom matching heuristics.

Source
local?
Source
to_s(io : IO)
Source

Nested types