open-index/open-npm huggingface dataset:
npm package: @lindas/vocabulary-extras
Description: Additional RDF Vocabularies
Latest version: 2.0.7

# @zazuko/vocabulary-extras

Additional vocabularies, commonly used in Zazuko projects:

```json
{
  "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`

```javascript
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.

```javascript
import { cube } from '@zazuko/vocabulary-extras/builders(/loose)'

const { Cube } = cube

Cube.value === 'https://cube.link/Cube'
```