The shape a work's description in a Solid Pod meets, for Solid Accord, and a check against it. The browser client
writes every work's meta.ttl to meet it, so that any app, and later the dashboard, can find and list works that a
different app made. Later, this package also holds the accord vocabulary for consent.
| File | What it is |
|---|---|
src/work-shapes.ttl |
The SHACL shape WorkV1: what format 1 of a work's meta.ttl must say |
src/index.ts |
The shape's IRI, WORK_SHAPE, and the schema.org, Dublin Core and RDF terms a description uses |
src/check.ts |
checkWorkDescription, which checks a meta.ttl against the shape it names, in Node |
A Scratch project from solid-blocks:
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix schema: <https://schema.org/> .
@prefix wd: <http://www.wikidata.org/entity/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<https://alice.example/solid-blocks/1b9d6bcd-…/> a schema:SoftwareSourceCode ;
dcterms:conformsTo <https://solid-accord.viboko.dev/ns/shapes/work/v1.ttl#WorkV1> ;
schema:programmingLanguage wd:Q275131 ; # Scratch
schema:name "Cat chases mouse" ;
schema:encoding <https://alice.example/solid-blocks/1b9d6bcd-…/content.sb3> ;
schema:dateModified "2026-11-12T10:05:00.000Z"^^xsd:dateTime .
dcterms:conformsTo marks it as a work. It names the shape the description meets, so anything that lists works
looks for it, and a reader knows which shape to check against. The format's version is in the shape's address.name, encoding and dateModified. A work has
exactly one title, a string in any language or none, at least one content file, and exactly one last change.schema:SoftwareSourceCode whose schema:programmingLanguage is
Scratch.schema:CreativeWork with schema:additionalType poem,
and a haiku could add the schema:genre haiku.schema:VisualArtwork with the schema:artform
drawing and the schema:artMedium "charcoal".The browser client writes the description, with the kind of work the app gives it as workKind: a class, or
schema:CreativeWork without one, and properties such as schema:programmingLanguage. It bundles the
terms it needs, so an app doesn't need this package to save work.
To check a work's meta.ttl, in an app's tests or a tool that reads a Pod:
import {checkWorkDescription} from '@viboko/solid-accord-vocabulary/check';
const {conforms, problems} = await checkWorkDescription(turtle, workUrl);
It checks the description against the shape it names, and says if it names none this package knows. It reads the shapes from a file, so it runs in Node, not the browser.
schema:CreativeWork, and a checker then applies it to everything that matches. These shapes don't. Instead, a
description names its shape with dcterms:conformsTo, and is checked against that one, as
Solid Memo does. So a work saved in format 1 and
one saved in a later format 2 can both be checked, each against its own shape.sh:closed, so an app can add its own data to a work, such as its kind or
the sprites in a Scratch project, without making it invalid.https://solid-accord.viboko.dev/ns/shapes/work/v1.ttl#WorkV1. Before
v1 it may change, and work saved with it may not keep working: a lasting address is chosen for v1. Everything under
/ns/ is an identifier, kept apart from the docs on the same site (/typedoc/, /solid-save-button/ and the viewer
at /vocabulary/), so the docs can be rearranged without moving a term. The site doesn't serve the file yet, which an
identifier doesn't need.v1.ttl changes to v2.ttl only for a change that isn't compatible. The .ttl
is there because GitHub Pages serves a file only at its own name, so the Turtle and the viewer can't share an
address.The package is published on npm. A project that checks descriptions in its tests installs it as a development dependency:
npm install --save-dev @viboko/solid-accord-vocabulary
An app that only saves work doesn't need it: the browser client bundles the terms it writes.
The Turtle files are under CC BY 4.0. The TypeScript is MIT.