1.0.5 • Published 9 months ago

lod-vocabulary v1.0.5

Weekly downloads
-
License
EUPL-1.2
Repository
github
Last release
9 months ago

Linked open Data Vocabularies

This repository allows you to use widely used vocabularies in your Javascript/Typescript projects. It uses the Zazuko RDF Vocabularies repository as a base to generate Typescript files. The rdf-vocabularies repository includes NQuads, which are queried for labels and descriptions using a SPARQL query. The resulting bindings are then used to generate Typescript files.

Usage

First install the package in your project:

npm i lod-vocabulary

Then in your Typescript file (example):

import { sdo } from 'lod-vocabulary'
console.log(sdo.Person)

IDE's such as Visual Studio Code will show additional information taken from the vocabulary:

Developers

To generate the vocabularies, follow these steps:

git clone https://github.com/mightymax/lod-vocabulary.git
cd lod-vocabulary
npm i
npm run build
npm run build:vocabs

Missing vocabularies

Not all vocabulaires are parsed correctly, for those vocabularies that do not return any binding, no vocabulary is created.

Currently, these vocabularies are missing becasue the SPARQL query does not return any bindings:

Acknowledgements

  • Zazuko for the list of vocabularies an the easy access to their datasets.
  • Triply for the XSD datatypes in RDF
1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago