New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

graph-rdfa-processor

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graph-rdfa-processor

Green turtle GraphRdfaProcessor extracted and available as a commonJS module

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

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.

Keywords

RDFa

FAQs

Package last updated on 13 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts