Published
Edited
Aug 23, 2021
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
searchButton
Insert cell
Insert cell
flattenBindings(searchButton)
Insert cell
// await query(WOQL
// get properties that linked to 'scm:Artefact'
// .quad('v:property', 'rdfs:domain', 'scm:Artefact', 'schema/main')
// get range (type) of each property
// .quad('v:property', 'rdfs:range', 'v:range', 'schema/main')
// get label of each property
// .quad('v:property', 'rdfs:label', 'v:label', 'schema/main')
// )
Insert cell
md`## Playground

Adding properties to properties. Use case: I want to state that a local property is equal to a wikidata propertyx`
Insert cell
// scmTest = ({
// id: 'Person',
// label: 'Person',
// myProp: {
// label: 'myprop',
// range: 'xsd:string'
// }
// })
Insert cell
// await query(WOQL.and(
// WOQL.insert_doctype_data(scmTest)
// ))
Insert cell
//await query(WOQL.add_quad("myProp", "range", "xsd:string", "schema/main"))
// await query(WOQL.add_property("isEqualTo"))
Insert cell
// await query(WOQL.add_quad("scm:myProp", "scm:isEqualTo", "test", "schema/main"))
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