Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linkeddata/rdflib.js
Linked Data API for JavaScript
https://github.com/linkeddata/rdflib.js
Last synced: about 2 months ago
JSON representation
Linked Data API for JavaScript
- Host: GitHub
- URL: https://github.com/linkeddata/rdflib.js
- Owner: linkeddata
- License: other
- Created: 2011-12-13T23:22:49.000Z (almost 13 years ago)
- Default Branch: main
- Last Pushed: 2024-05-19T19:46:40.000Z (4 months ago)
- Last Synced: 2024-05-31T15:48:28.262Z (4 months ago)
- Language: HTML
- Homepage: http://linkeddata.github.io/rdflib.js/doc/
- Size: 30.3 MB
- Stars: 560
- Watchers: 53
- Forks: 143
- Open Issues: 236
-
Metadata Files:
- Readme: README.md
- Changelog: changes.txt
- Contributing: CONTRIBUTING.md
- License: MIT-LICENSE.txt
- Authors: AUTHORS
Awesome Lists containing this project
- awesome-solid - Linked Data API - the Linked Data API for JavaScript. (Uncategorized / Uncategorized)
- awesome-starred - linkeddata/rdflib.js - Linked Data API for JavaScript (others)
README
# rdflib.js
[![NPM Version](https://img.shields.io/npm/v/rdflib.svg?style=flat)](https://npm.im/rdflib)
[![Join the chat at https://gitter.im/linkeddata/rdflib.js](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/linkeddata/rdflib.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)Javascript RDF library for browsers and Node.js.
- Reads and writes RDF/XML, Turtle and N3; Reads RDFa and JSON-LD
- Read/Write Linked Data client, using WebDav or SPARQL/Update
- Real-Time Collaborative editing with web sockets and PATCHes
- Local API for querying a store
- Compatible with [RDFJS task force spec](https://github.com/rdfjs/representation-task-force/blob/master/interface-spec.md)
- SPARQL queries (not full SPARQL - just graph match and optional)
- Smushing of nodes from `owl:sameAs`, and `owl:{f,inverseF}unctionProperty`
- Tracks provenance of triples keeps metadata (in RDF) from HTTP accesses## Documentation
See:
* The [API documentation](https://linkeddata.github.io/rdflib.js/doc/) is partial but useful
* [Tutorial: Using rdflib in a Solid web app](https://linkeddata.github.io/rdflib.js/Documentation/webapp-intro.html)
* [Tutorial: Using rdflib.js](https://github.com/solidos/solid-tutorial-rdflib.js)
* [Tutorial: Using Turtle](https://linkeddata.github.io/rdflib.js/Documentation/turtle-intro.html)
* [Using authenticated & alternate fetch methods](https://linkeddata.github.io/rdflib.js/Documentation/alternate-fetches.md)
* [Block diagram: rdflib modules](https://linkeddata.github.io/rdflib.js/Documentation/diagrams/rdflib-block-diagram.svg)
* [Block diagram: The Fetcher](https://linkeddata.github.io/rdflib.js/Documentation/diagrams/fetcher-block-diagram.svg)
* [Block diagram: The Fetcher - handling retries](https://linkeddata.github.io/rdflib.js/Documentation/diagrams/fetcher-block-diagram-2.svg)
* [Block diagram: The Update Manager](https://linkeddata.github.io/rdflib.js/Documentation/diagrams/update-manager-diagram.svg)* [The Solid developer portal at Inrupt](https://solid.inrupt.com/)
for more information.
## Install
#### Browser (using a bundler like Webpack)
```bash
npm install rdflib
```#### Browser (generating a `` file to include)
```bash
git clone [email protected]:linkeddata/rdflib.js.git;
cd rdflib.js;
npm install;
```Generate the dist directory
```bash
npm run build:browser
```#### Node.js
Make sure you have Node.js and Node Package Manager ([npm](https://npmjs.org/))
installed.```bash
npm install --save rdflib
```## Contribute
#### Subdirectories
- `dist`: Where the bundled libraries are built. Run `npm 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