@zazuko/vocabulary-extras
TypeScript icon, indicating that this package has built-in type declarations

2.0.6 • Public • Published

@zazuko/vocabulary-extras

Additional vocabularies, commonly used in Zazuko projects:

{
  "code": "https://code.described.at/",
  "cube": "https://cube.link/",
  "meta": "https://cube.link/meta/",
  "pipeline": "https://pipeline.described.at/",
  "relation": "https://cube.link/relation/"
}

Usage

After installing, simply import /register module anywhere to have additional prefixes added to @zazuko/rdf-vocabularies

import '@zazuko/vocabulary-extras/register'
import { prefixes, expand } from '@zazuko/rdf-vocabularies'

const cubeUri = prefixes.cube

// expand and shrink will also work for those vocabs
const Cube = expand('cube:Cube')

Cube === 'https://cube.link/Cube'

Additionally, modules exporting @rdfjs/namespace builders are generated.

import { cube } from '@zazuko/vocabulary-extras/builders(/loose)'

const { Cube } = cube

Cube.value === 'https://cube.link/Cube'

Package Sidebar

Install

npm i @zazuko/vocabulary-extras

Weekly Downloads

705

Version

2.0.6

License

none

Unpacked Size

8.11 kB

Total Files

22

Last publish

Collaborators

  • zazuko-bot
  • tpluscode
  • ludovicm67
  • ktk