0.0.7 • Published 9 years ago

jsonld-dsl v0.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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
0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago