@comunica/actor-rdf-parse-html-script
v4.0.2
Published
A html-script rdf-parse actor
Downloads
43,296
Readme
Comunica Html Script RDF Parse Actor
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.