@comunica/actor-sparql-serialize-rdf
TypeScript icon, indicating that this package has built-in type declarations

1.22.0 • Public • Published

Comunica RDF SPARQL Serialize Actor

npm version

A SPARQL Serialize actor that serializes to RDF by delegating to the RDF Serialize 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-sparql-serialize-rdf

Configure

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

{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-sparql-serialize-rdf/^1.0.0/components/context.jsonld"  
  ],
  "actors": [
    ...
    {
      "@id": "config-sets:sparql-serializers.json#myRdfSparqlSerializer",
      "@type": "ActorSparqlSerializeRdf",
      "cassr:Actor/SparqlSerialize/Rdf/mediatorRdfSerialize": {
        "@id": "config-sets:sparql-serializers.json#mediatorRdfSerialize",
        "@type": "MediatorRace",
        "cc:Mediator/bus": { "@id": "cbrs:Bus/RdfSerialize" }
      },
      "cassr:Actor/SparqlSerialize/Rdf/mediatorRdfSerializeMediaTypeCombiner": {
        "@type": "MediatorCombineUnion",
        "cc:Mediator/bus": { "@id": "cbrs:Bus/RdfSerialize" },
        "cmcu:Mediator/CombineUnion/field": "mediaTypes"
      },
      "cassr:Actor/SparqlSerialize/Rdf/mediatorRdfSerializeMediaTypeFormatCombiner": {
        "@type": "MediatorCombineUnion",
        "cc:Mediator/bus": { "@id": "cbrs:Bus/RdfSerialize" },
        "cmcu:Mediator/CombineUnion/field": "mediaTypeFormats"
      }
    },
  ]
}

Config Parameters

  • cassr:Actor/SparqlSerialize/Rdf/mediatorRdfSerialize: A mediator over the RDF Serialize bus for actual serialization.
  • cassr:Actor/SparqlSerialize/Rdf/mediatorRdfSerializeMediaTypeCombiner: A mediator over the RDF Serialize bus for collecting media types.
  • cassr:Actor/SparqlSerialize/Rdf/mediatorRdfSerializeMediaTypeFormatCombiner: A mediator over the RDF Serialize bus for collecting media type formats.

Package Sidebar

Install

npm i @comunica/actor-sparql-serialize-rdf

Weekly Downloads

2,068

Version

1.22.0

License

MIT

Unpacked Size

14.9 kB

Total Files

10

Last publish

Collaborators

  • jeswr
  • joachimvh
  • rubensworks
  • rubenverborgh
  • dexagod