0.0.2-alpha.e75a15a.0 • Published 2 years ago

@comunica/actor-rdf-metadata-extract-traverse-content-policies v0.0.2-alpha.e75a15a.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Comunica Traverse Content Policies RDF Metadata Extract Actor

npm version

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.

Install

$ yarn add @comunica/actor-rdf-metadata-extract-traverse-content-policies

Metadata entries

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)

Configure

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

{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-metadata-extract-traverse-content-policies/^1.0.0/components/context.jsonld"  
  ],
  "actors": [
    ...
    {
      "@id": "config-sets:resolve-hypermedia.json#myRdfMetadataExtractTraverseContentPolicies",
      "@type": "ActorRdfMetadataExtractTraverseContentPolicies"
    }
  ]
}

Config Parameters

  • cbrme:Actor/RdfMetadataExtract/TraverseContentPolicies#queryEngine: An instance of ActorInitSparql.
  • cbrme:Actor/RdfMetadataExtract/TraverseContentPolicies#traverseConditional: A flag indicating if links should only be follow IF it has been defined by some other link extractor. (default: true)