@comunica/actor-rdf-update-hypermedia-put-ldp
v4.0.2
Published
A put-ldp rdf-update-hypermedia actor
Downloads
9,414
Readme
Comunica Put LDP RDF Update Hypermedia Actor
An RDF Update Hypermedia actor that handles destinations over HTTP via HTTP Linked Data Platform PUT requests.
Optionally, if the destination exposes the Accept-Put
header,
the server's suggested media type will be used as PUT content type.
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-update-hypermedia-put-ldp
Configure
After installing, this package can be added to your engine's configuration as follows:
{
"@context": [
...
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-update-hypermedia-put-ldp/^4.0.0/components/context.jsonld"
],
"actors": [
...
{
"@id": "urn:comunica:default:rdf-update-hypermedia/actors#put-ldp",
"@type": "ActorRdfUpdateHypermediaPutLdp",
"mediatorHttp": { "@id": "urn:comunica:default:http/mediators#main" },
"mediatorRdfSerializeMediatypes": { "@id": "urn:comunica:default:query-result-serialize/mediators#mainMediatypes" },
"mediatorRdfSerialize": { "@id": "urn:comunica:default:query-result-serialize/mediators#main" }
}
]
}
Config Parameters
mediatorHttp
: A mediator over the HTTP bus.mediatorRdfSerializeMediatypes
: A mediator over the RDF serialize bus for obtaining all media types.mediatorRdfSerialize
: A mediator over the RDF serialize bus.