rdflib.js
Javascript RDF library for browsers and Node.js.
- Reads and writes RDF/XML, Turtle and N3.
- Read/Write Linked Data client, using WebDav or SPARQL/Update
- Parses RDFa
- Local API for querying a store
- Compatible with RDFJS task force spec
- SPARQL queries (not full SPARQL)
- Smushing of nodes from
owl:sameAs
, andowl:{f,inverseF}unctionProperty
- Tracks provenance of triples keeps metadata (in RDF) from HTTP accesses
Documentation
See:
- The API documentation is partial but useful
- Using rdflib in a web app
- Tutorial for using rdflib.js
- Using Turtle
- The Solid developer portal at Inrupt
for more information.
Install
npm install
Generate the dist directory
npm run build
Node.js
Make sure you have Node.js and Node Package Manager (npm) installed.
npm install --save rdflib
Contribute
Subdirectories
-
dist
: Where the bundled libraries are built. Runnpm run build
to generate them. -
test
: Tests are here. -
lib
: Transpiled, non-bundled library is built here when the library is published to npm.
Dependencies
- XMLHTTPRequest (Node.js version)
Thanks
Thanks to the many contributors who have been involved along the way. LinkedData team & TimBL
LICENSE
MIT