2.1.7 • Published 4 months ago

@lblod/graph-rdfa-processor v2.1.7

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 months ago

graph-rdfa-processor

CircleCI

Note: this module is auto published to npm on CircleCI. Only run npm version patch|minor|major and let CI do the rest.

Green turtle GraphRdfaProcessor extracted and available as a standalone commonJS / ES2015 module.

All credits are due to Alex Milowski for green-turtle.

Aside from the adaptation to ES2015, some little changes were made to make it compatible with jsdom. Also proper Errors are now thrown instead of plain strings.

For convenience, a high level API has been added:

import getRdfaGraph from graph-rdfa-processor;

let opts = {baseURI: 'http://example.com'};
let graph = getRdfaGraph(documentOrNode, opts);
console.log(graph.toString());

See the tests for a full example.

RDFa to JSON-LD

see jsonld-rdfa-parser (using this module to extract the RDFa graph.

2.1.6

4 months ago

2.1.7

4 months ago

0.13.2

4 months ago

0.13.3

4 months ago

2.1.5

5 months ago

2.1.4

5 months ago

2.1.3

6 months ago

2.1.2

6 months ago

2.1.1

6 months ago

2.1.0

7 months ago