Here’s a concise example:
async function run(){
const doc = solid.data['https://jeffz.solid.community/public/ldflex.ttl']
const dtype = solid.data[ 'http://schema.org/Document' ]
const about = 'http://schema.org/about'
await login()
// CREATE
await doc.type.add(dtype)
await doc[about].add("some thoughts")
// READ
show( await doc.type ) // expect: http://schema.org/Document
show( await doc[about] ) // expect: some thoughts
// UPDATE
await doc[about].set("thoughts change ...")
// DELETE
await doc.type.delete()
// READ
show( await doc.type ) // expect: undefined
show( await doc[about] ) // expect: thoughts change ...
}
``