@comunica/actor-sparql-serialize-rdf

A rdf sparql-serialize actor

Stats

StarsIssuesVersionUpdatedCreatedSize
@comunica/actor-sparql-serialize-rdf
221861.22.0a month ago4 years agoMinified + gzip package size for @comunica/actor-sparql-serialize-rdf in KB

Readme

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.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.