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/^1.0.0/components/context.jsonld"
],
"actors": [
...
{
"@id": "config-sets:rdf-parsers.json#myRdfParserHtmlScript",
"@type": "ActorRdfParseHtmlScript",
"carphs:mediatorRdfParseMediatypes": {
"@id": "config-sets:rdf-parsers.json#mediatorRdfParseMediatypes",
"@type": "MediatorCombineUnion",
"cc:Mediator/bus": { "@id": "cbrp:Bus/RdfParse" },
"cmcu:Mediator/CombineUnion/field": "mediaTypes"
},
"carphs:mediatorRdfParseHandle": {
"@id": "config-sets:rdf-parsers.json#mediatorRdfParseHandle",
"@type": "MediatorRace",
"cc:Mediator/bus": { "@id": "cbrp:Bus/RdfParse" }
}
}
]
}
Config Parameters
carphs:mediatorRdfParseMediatypes
: A mediator over the RDF Parse bus for collecting media types.carphs:mediatorRdfParseHandle
: A mediator over the RDF Parse bus for actual parsing.