Skip to content

Commit

Permalink
Updates prefix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mightymax committed Oct 16, 2023
1 parent 016c395 commit dee343a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/triply-etl/changelog/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,18 @@ import { a, rdf, sdo } from '@triplyetl/vocabularies'
import * as vocab from "@triplyetl/vocabularies"
```

- To use a `prefixer` function (e.g. `aat(123456)`) (note that the name has changed from `prefix` to `prefixer`):
- Some vocabularies are too large to include, the can still be used like this:

```ts
import { prefixer } from '@triplyetl/etl/vocab'
prefixer.aat('300379271')
import { aat } from '@triplyetl/etl/vocab'
const moustache = aat.concat('300379271')
```

- To get an Iri from a specific prefix:
or

```ts
import { prefix } from '@triplyetl/etl/vocab'
prefix.skos
import { aat } from '@triplyetl/etl/vocab'
addIri({prefix: aat, content: str('300379271'), key: 'moustache'})
```

- To use the RATT `lang` tools:
Expand Down

0 comments on commit dee343a

Please sign in to comment.