A comunica Traverse Content Policies RDF Metadata Extract Actor.
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.
$ yarn add @comunica/actor-extract-links-content-policies
This actor adds the following entries to the metadata object.
traverse
: Array of URLs to traverse. (if traverseConditional: false
)traverseConditional
: Array of URLs to conditionally traverse. (if traverseConditional: true
)After installing, this package can be added to your engine's configuration as follows:
{
"@context": [
...
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-extract-links-content-policies/^1.0.0/components/context.jsonld"
],
"actors": [
...
{
"@id": "config-sets:resolve-hypermedia.json#myExtractLinksContentPolicies",
"@type": "ActorExtractLinksContentPolicies"
}
]
}
actorInitQuery
: An instance of ActorInitQuery.traverseConditional
: A flag indicating if links should only be follow IF it has been defined by some other link extractor. (default: true
)