@zazuko/vocabulary-extras
v2.0.6
Published
Additional vocabularies, commonly used in Zazuko projects:
Downloads
2,804
Readme
@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'