Platform
Resources
Pricing
Sign in
Get started
Jakob Voß
Q15303972
Workspace
Fork
Published
By
Jakob Voß
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
jskos
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
animals
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
animalScheme
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML