Published
Edited
Nov 23, 2020
1 star
Insert cell
Insert cell
jskos = require('jskos-tools@1') // import the library
Insert cell
animals = {
return { // in Observable JSON must be wrapped in a function
"prefLabel": {
"en": "animals",
"de": "Tiere"
},
"uri": "http://example.org/animals/",
"namespace": "http://example.org/animals/id/",
"notationPattern": "[1-9][0-9]*", // positive integer
}
}
Insert cell
Insert cell
jskos.prefLabel(animals, { language: "de" }) // change language to select another language
Insert cell
Insert cell
animalScheme = { return new jskos.ConceptScheme(animals) }
Insert cell
animalScheme.conceptFromNotation("123", { inScheme: true })
Insert cell
animalScheme.isValidNotation("a1")
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more