Remove Record<string, string>
from type of prefixes
Tweak the type of prefixes
so that it maps prefixes precisely to their respective namespace.
This allows creating type-safe interfaces such as
import type { Prefixes } from '@zazuko/rdf-vocabularies/prefixes'
type JsonLdContext = Partial<Prefixes> & Record<string, string>
const context: JsonLdContext = {
// this is fine, also auto-completed by IDE
rdfs: 'http://www.w3.org/2000/01/rdf-schema#',
// a missing traiing slash here will cause an error
schema: 'http://schema.org',
// other allowed by the union
foo: 'bar'
}
Added a second parameter to shrink
so that a different set of prefixes can be used for prefixing
Trying to use the module vocabularies.mjs
would fail with error
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".nq"
Broken dash.nq
dataset
Prefix |
#Quads |
diff |
constants |
5385 |
🔻2 |
dash |
1368 |
🔻98 |
dbo |
40763 |
🔺9713 |
dcat |
1342 |
🔻11 |
prefix |
1342 |
0 |
qkdv |
3405 |
🔺242 |
quentitykind |
17063 |
🔺555 |
qudt |
6813 |
0 |
schema |
16204 |
🔺198 |
shex |
474 |
0 |
sou |
210 |
0 |
unit |
22360 |
🔺1070 |
xkos |
328 |
🔺1 |
xsd |
199 |
🔺0 |
Fix exif
base URL: http://www.w3.org/2003/12/exif/ns
-> http://www.w3.org/2003/12/exif/ns#
Fix xml
base URL: http://www.w3.org/XML/1998/namespace
-> http://www.w3.org/XML/1998/namespace/
Fix gs1
base URL: https://www.gs1.org/voc/
-> https://gs1.org/voc/
Prefix |
#Quads |
bibo |
1224 |
dcam |
26 |
dcmitype |
89 |
ebucore |
5780 |
exif |
891 |
gs1 |
7434 |
locn |
206 |
Fix ebucore
base URL: https://www.ebu.ch/metadata/ontologies/ebucore/ebucore.rdf
-> http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#
Prefix |
#Quads |
constant |
5387 |
prefix |
305 |
qkdv |
3163 |
quantitykind |
16508 |
qudt |
6813 |
sou |
210 |
unit |
21290 |
Prefix |
#Quads |
ebucore |
5780 |
Prefix |
#Quads |
constant |
5387 |
dbo |
31050 |
hydra |
467 |
org |
748 |
prefix |
305 |
qkdv |
3135 |
quantitykind |
16433 |
qudt |
6813 |
schema |
16006 |
shex |
474 |
sou |
210 |
unit |
21225 |
void |
208 |
- Support
file:
URIs in overrides to have contents generated from local sources
- Export interface of prefixes, which allows type augmentation
Fix prefix
base URL: http://qudt.org/2.1/vocab/prefix/
-> http://qudt.org/vocab/prefix/
Prefix |
#Quads |
as |
939 |
constant |
5387 |
geof |
37 |
geor |
26 |
hydra |
467 |
prefix |
305 |
qkdv |
3119 |
quantitykind |
16262 |
qudt |
6815 |
sou |
210 |
unit |
21203 |
Fix as
base URL.
Prefix |
#Quads |
qudtv |
13797 |
Prefix |
#Quads |
prefix |
305 |
qudt |
6815 |
schema |
15400 |
Prefix |
#Quads |
constant |
5387 |
discipline |
1815 |
prefix |
336 |
qkdv |
3119 |
quantitykind |
16036 |
sou |
210 |
Prefix |
#Quads |
qudt |
7827 |
rico |
7511 |
Add shex:
prefix and vocabulary.
Add dpv:
prefix and vocabulary.
Add rico:
prefix and vocabulary.
Prefix |
#Quads |
dash |
1466 |
dbo |
39297 |
hydra |
431 |
- The module
@zazuko/rdf-vocabularies/expand
now only does simple expansion (no second parameter).
- Fixed an issue where buildPath returned incorrect path
Prefix |
#Quads |
dcat |
1353 |
dcterms |
700 |
lvont |
212 |
schema |
14936 |
- Fixed an issue where prefixes were not applied by specificity.
Add doap:
, earl:
, test:
prefixes and vocabularies.
Prefix |
#Quads |
doap: |
722 |
earl: |
162 |
test: |
116 |
- Fixes to the way a vocab label and description are extracted.
Prefix |
#Quads |
dash |
1561 |
schema |
15163 |
Make it possible to use this package directly in a browser, for instance via unpkg.com.
By splitting the main module and re-exporting it, it is now possible to cherry-pick the necessary pieces (expand
, prefixes
and shrink
are natively usable) while the general usage in node or existing bundled code remains unchanged.
- Revamped build to change the way we publish this as a dual, commonjs/esm package.
Add dash:
prefix and vocabulary.
Prefix |
#Quads |
hydra |
408 |
schema |
8885 |
time |
1296 |
Prefix |
#Quads |
schema |
8861 |
Fix lvont:
base IRI.
- Possibility to fetch a single vocab with
npm run fetch prefix
, eg. npm run fetch schema
- Replaces index triples for that vocab only
- Does not regenerate the entire index dataset
- Strict typings
- Package only includes a single copy of the types definition, at the root
Prefix |
#Quads |
dc11 |
107 |
dcat |
1170 |
dcterms |
619 |
hydra |
407 |
prov |
1664 |
schema |
8858 |
Prefixes Index / Vocabularies metadata: ontologies/_index.nq
holds an index of all provided vocabularies with some metadata, as N-Quads.
Prefix |
#Quads |
dbo |
39069 |
rdf |
127 |
schema |
8827 |
xsd |
199 |
Add sh:
prefix and vocabulary.
Prefix |
#Quads |
hydra |
404 |
qudtv |
13797 |
schema |
8824 |
Add sem:
prefix and vocabulary.
Prefix |
#Quads (#quads in previous version) |
qudtv |
13797 (13791) |
rdau |
15722 (15722) |
schema |
8845 (8833) |
Fix: as:
nq file had the wrong graph: it should be http:
not https:
.
Add as:
prefix and vocabulary.
Add http:
prefix and vocabulary.
Add ical:
prefix and vocabulary.
Add vann:
prefix and vocabulary.
Add xhv:
prefix and vocabulary.
Add xkos:
prefix and vocabulary.
Prefix |
#Quads |
as: |
951 |
http: |
230 |
ical: |
1255 |
vann: |
49 |
xhv: |
208 |
xkos: |
327 |
Prefix |
#Quads (#quads in previous version) |
qudtv |
13791 (13790) |
schema |
8833 (8809) |
dtype
and vaem
had incorrect base IRI, this release fixes them:
- dtype: 'http://www.linkedmodel.org/schema/dtype',
+ dtype: 'http://www.linkedmodel.org/schema/dtype#',
- vaem: 'http://www.linkedmodel.org/schema/vaem',
+ vaem: 'http://www.linkedmodel.org/schema/vaem#',
Add dtype:
prefix and vocabulary.
Add vaem:
prefix and vocabulary.
Add qudt:
prefix and vocabulary.
Add qudtv:
prefix and vocabulary.
Prefix |
#Quads |
dtype |
231 |
vaem |
564 |
qudt |
7738 |
qudtv |
13790 |
Add bundler-friendly build.
BREAKING CHANGE: The default export is replaced with a named one
- const rdfVocabularies = require('@zazuko/rdf-vocabularies')
+ const { vocabularies } = require('@zazuko/rdf-vocabularies')
- const prefixes = require('@zazuko/rdf-vocabularies/prefixes')
+ const prefixes = require('@zazuko/rdf-vocabularies/lib/node/prefixes').default
Add frbr:
prefix and vocabulary.
Add rdau:
prefix and vocabulary.
Add smdx:
prefix and vocabulary.
Prefix |
#Quads |
frbr |
914 |
rdau |
15722 |
smdx |
90 |
Prefix |
#Quads (#quads in previous version) |
geof |
82 (46) |
geor |
62 (36) |
hydra |
400 (386) |
schema |
8809 (8809) |
Add xsd:
prefix and vocabulary.
Initial release:
Prefix |
#Quads |
cc |
115 |
cnt |
108 |
csvw |
632 |
dbo |
8035 |
dc11 |
138 |
dcat |
425 |
dcterms |
866 |
dqv |
152 |
duv |
56 |
foaf |
620 |
geo |
518 |
geof |
46 |
geor |
36 |
gn |
6846 |
gr |
1834 |
grddl |
74 |
gtfs |
870 |
hydra |
386 |
ldp |
200 |
ma |
340 |
oa |
334 |
og |
231 |
org |
748 |
owl |
450 |
prov |
1662 |
qb |
265 |
rdf |
102 |
rdfa |
68 |
rdfs |
87 |
rr |
297 |
rss |
44 |
schema |
8809 |
sd |
165 |
sioc |
669 |
skos |
252 |
skosxl |
60 |
sosa |
345 |
ssn |
520 |
time |
1044 |
vcard |
870 |
void |
216 |
vs |
27 |
wgs |
33 |