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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more