@ldf/preset-qpf
v3.2.0
Published
Linked Data Fragments Server - Preset Quad Pattern Fragments
Downloads
23
Readme
Linked Data Fragments Server - Preset Quad Pattern Fragments
This package provides configuration presets for Quad Pattern Fragments servers.
This package should be used if you want to create your own LDF server configuration,
and include the default QPF configurations.
If you just want to run a QPF server, you can make use of @ldf/server
instead.
Concretely, it configures the following packages:
@ldf/core
: Core package of LDF servers.@ldf/feature-qpf
: Feature that enables Quad Pattern Fragments (a.k.a. Triple Pattern Fragments).@ldf/feature-summary
: Feature that adds summaries to datasources.@ldf/feature-memento
: Feature that enables datetime negotiation using the Memento Protocol.@ldf/datasource-hdt
: Datasource that allows HDT files to be loaded.@ldf/datasource-jsonld
: Datasource that allows JSON-LD files to be loaded.@ldf/datasource-n3
: Datasource that allows N-Quads, N-Triples, Trig and Turtle files to be loaded.@ldf/datasource-sparql
: Datasource that allows SPARQL endpoints to be used as a data proxy.@ldf/datasource-composite
: Datasource that delegates queries to an sequence of other datasources.
This package is a Linked Data Fragments Server module.
Usage
When this module is used in a package other than @ldf/server
,
then the JSON-LD context https://linkedsoftwaredependencies.org/contexts/@ldf/preset-qpf.jsonld
must be imported.
The following configs will become available for import:
"preset-qpf:config-defaults.json"
: Default configurations for QPF-related modules."preset-qpf:sets/controllers.json"
: Configurations for QPF controllers. (included in"preset-qpf:config-defaults.json"
)."preset-qpf:sets/datasources.json"
: Configurations for default datasources. (included in"preset-qpf:config-defaults.json"
)."preset-qpf:sets/memento.json"
: Configurations for allowing Memento to be used. (included in"preset-qpf:config-defaults.json"
)."preset-qpf:sets/prefixes.json"
: Configurations for default prefixes. (included in"preset-qpf:config-defaults.json"
)."preset-qpf:sets/routers.json"
: Configurations for QPF routers. (included in"preset-qpf:config-defaults.json"
)."preset-qpf:sets/summary.json"
: Configurations for allowing summaries. (included in"preset-qpf:config-defaults.json"
)."preset-qpf:sets/views.json"
: Configurations for QPF views. (included in"preset-qpf:config-defaults.json"
).
Example: Importing all defaults:
{
"@context": [
"https://linkedsoftwaredependencies.org/bundles/npm/@ldf/core/^3.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@ldf/preset-qpf/^3.0.0/components/context.jsonld"
],
"@id": "urn:ldf-server:my",
"import": "preset-qpf:config-defaults.json"
// Rest of your config
}
Example: Importing only QPF controllers and datasources:
{
"@context": [
"https://linkedsoftwaredependencies.org/bundles/npm/@ldf/core/^3.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@ldf/preset-qpf/^3.0.0/components/context.jsonld"
],
"@id": "urn:ldf-server:my",
"import": [
"preset-qpf:config-defaults.json",
"preset-qpf:sets/datasources.json"
]
// Rest of your config
}
License
The Linked Data Fragments server is written by Ruben Verborgh, Miel Vander Sande, Ruben Taelman and colleagues.
This code is copyrighted by Ghent University – imec and released under the MIT license.