jsonld-dsl
v0.0.7
Published
A DSL for building JSON-LD resources
Downloads
2
Readme
jsonld-dsl
jsonld-dsl
is a DSL for building JSON-LD powered hypermedia services.
var schema = Namespace(
Class('Thing'),
Class('Blog'),
Class('BlogPosting'),
Property('name'),
Property('url'),
Property('blogPost'),
Property('articleBody')
)
var post = schema.BlogPosting(
URI('/entries/hydra-lite.json'),
schema.name('Hydra Lite'),
schema.url('http://eric.themoritzfamily.com/hydra-lite.html'),
schema.articleBody('This is the article body...')
)
hydra support
This module declares the hydra namespace for you. See the documentation for more information
var hydra = require('jsonld-dsl').hydra