class

Ktistec::JSON_LD::Loader

Inherits Reference < Object

Loads context from cache.

Exposed for testing. Should not be used directly.

Constants

ACTIVITYSTREAMS_COMPATIBILITY_TERM_DEFINITIONS = {"Hashtag" => wrap("https://www.w3.org/ns/activitystreams#Hashtag"), "sensitive" => wrap("https://www.w3.org/ns/activitystreams#sensitive"), "schema" => wrap("http://schema.org#"), "PropertyValue" => wrap("schema:PropertyValue"), "value" => wrap("schema:value"), "toot" => wrap("http://joinmastodon.org/ns#"), "featured" => wrap({"@id" => wrap("toot:featured"), "@type" => wrap("@id")})}
ACTIVITYSTREAMS_CONTEXT = "www.w3.org/ns/activitystreams/context.jsonld"

compatibility definitions for commonly omitted terms

MAX_MEMO_ENTRIES = 100

Class methods

fetch_contexts=(fetch_contexts : Bool)

whether to fetch uncached, same-origin contexts

Source
fetch_contexts?

whether to fetch uncached, same-origin contexts

Source
memo_ttl
Source
memo_ttl=(memo_ttl : Time::Span)
Source

Instance methods

document_origin
Source
document_origin=(document_origin : String | Nil)
Source
load(url)
Source