Skip to content

rdfjs-base/data-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@rdfjs/data-model

build status npm version

A basic implementation of the RDF/JS Data Model.

Usage

Use the following command to add the package as a dependency to your project:

npm install @rdfjs/data-model --save

The main entry point of the package exports an RDF/JS DataFactory instance. See the following lines on how to import and use the library:

import dataFactory from '@rdfjs/data-model'

const quad = dataFactory.quad(
  dataFactory.blankNode(),
  dataFactory.namedNode('http://schema.org/name'),
  dataFactory.literal('RDF/JS Data model')
)