Skip to content

ericmoritz/node-jsonld-dsl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A DSL for building JSON-LD resources

Resources

License

Stars

Watchers

Forks

Packages

No packages published