0.0.1 • Published 3 years ago

ldf-datasource-summary v0.0.1

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

Linked Data Fragments Server - Summary Datasources

npm version

This module contains a Summary datasource for the Linked Data Fragments server. It allows summary files to be loaded, indexed and used as a datasource.

This package is a Linked Data Fragments Server module.

Usage in @ldf/server

This package exposes the following config entries:

  • SummaryDatasource: A Summary datasource that requires a dir field. Should be used as @type value.

Example:

{
  "@context": "https://linkedsoftwaredependencies.org/bundles/npm/@ldf/server/^3.0.0/components/context.jsonld",
  "@id": "urn:ldf-server:my",
  "import": "preset-qpf:config-defaults.json",

  "datasources": [
    {
      "@id": "ex:register",
      "@type": "SummaryDatasource",
      "datasourceTitle": "Summary register for source selection",
      "description": "My dataset with a Summaries back-end",
      "dir": "/received-summaries"
    }
  ]
}

Usage in other packages

When this module is used in a package other than @ldf/server, then the JSON-LD context https://linkedsoftwaredependencies.org/contexts/@ldf/datasource-summary.jsonld must be imported.

For example:

{
  "@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",
    "https://linkedsoftwaredependencies.org/bundles/npm/@ldf/datasource-summary/^3.0.0/components/context.jsonld",
  ],
  // Same as above...
}

License

The Summary datasource module is written by Miel Vander Sande.

The Linked Data Fragments server is written by Ruben Verborgh, Miel Vander Sande, Ruben Taelman and colleagues.

This code is copyrighted by meemoo and IDLab - Ghent University, and released under the MIT license.

0.0.1

3 years ago