@comunica/actor-rdf-parse-html-script
TypeScript icon, indicating that this package has built-in type declarations

4.0.2 • Public • Published

Comunica Html Script RDF Parse Actor

npm version

An RDF Parse HTML actor that handles script tags in HTML by delegating to the RDF Parse bus.

This module is part of the Comunica framework, and should only be used by developers that want to build their own query engine.

Click here if you just want to query with Comunica.

Install

$ yarn add @comunica/actor-rdf-parse-html-script

Configure

After installing, this package can be added to your engine's configuration as follows:

{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-parse-html-script/^4.0.0/components/context.jsonld"
  ],
  "actors": [
    ...
    {
      "@id": "urn:comunica:default:rdf-parse-html/actors#script",
      "@type": "ActorRdfParseHtmlScript",
      "mediatorRdfParseMediatypes": { "@id": "urn:comunica:default:rdf-parse/mediators#mediaType" },
      "mediatorRdfParseHandle": { "@id": "urn:comunica:default:rdf-parse/mediators#parse" }
    }
  ]
}

Config Parameters

  • mediatorRdfParseMediatypes: A mediator over the RDF Parse bus for collecting media types.
  • mediatorRdfParseHandle: A mediator over the RDF Parse bus for actual parsing.

Package Sidebar

Install

npm i @comunica/actor-rdf-parse-html-script

Weekly Downloads

9,163

Version

4.0.2

License

MIT

Unpacked Size

46.8 kB

Total Files

15

Last publish

Collaborators

  • jeswr
  • joachimvh
  • rubensworks
  • rubenverborgh
  • dexagod