You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is already a capability to a default context to #dump :jsonld by having #jsonld_context return it. A default method (or maybe a mixin?) that generates a context (& framing doc?) from property definitions would be valuable.
The text was updated successfully, but these errors were encountered:
Presuming that ActiveTriples implements RDF::Enumerable, you should be able to call #dump(:jsonld, standard_prefixes: true), which will create a context based on vocabularies built in to RDF.rb. You can also pass specific prefix mappings.
Most of the info needed to setup a default context like the one above is already hiding in AT's properties. So this is about building that out, and maybe adding some optional property configuration to do the rest.
You might look at JSON::LD::Context#from_vocabulary which generates a good context from an RDFS vocabulary, it might help get you closer to something like this.
There is already a capability to a default context to
#dump :jsonld
by having#jsonld_context
return it. A default method (or maybe a mixin?) that generates a context (& framing doc?) from property definitions would be valuable.The text was updated successfully, but these errors were encountered: