BeatScript Editor

BeatScript ontology

The vocabulary behind BeatScript: the genres the generator knows (tempo, scale, groove, Euclidean drum rhythms, instruments, chord progressions), the song structures and sections it arranges them into, the Petri-net engine concepts underneath, and the language itself: every production and keyword of its grammar, its voices and kits, the control nouns and verbs, its operators and the tools of both MCP servers, generated from the code that implements them.

#Names

Every term has its IRI here, in the namespace https://beatscript.app/ontology/ns#: classes and properties such as ns#Genre, and individuals such as https://beatscript.app/ontology/genre/techno, whose IRI answers with what the release states about it. A term that came from the bitwrap ontology says so: prov:wasDerivedFrom links it to its bitwrap IRI (https://ontology.bitwrap.io/genre/techno), and the ontology itself is prov:wasDerivedFrom the bitwrap 0.2.0 release. Nothing else points back, and nothing is fetched from bitwrap: from here the two evolve apart. A program's #! genre: line still names bitwrap's genre IRIs, which stay where they are.

#Documents

curl -H 'Accept: text/turtle' https://beatscript.app/ontology/ns

#Query

Queries run over the materialized graph: the asserted ontology plus its RDFS consequences, so the subclass closure is already there. Read-only, at most 1000 rows and 5 seconds a query, rate limited per client.

curl -H 'Accept: application/sparql-results+json' \
  --data-urlencode 'query=SELECT ?g ?bpm WHERE { ?g a <https://beatscript.app/ontology/ns#Genre> ; <https://beatscript.app/ontology/ns#bpm> ?bpm } ORDER BY ?bpm' \
  https://beatscript.app/ontology/sparql

The MCP tools:

claude mcp add --transport http beatscript-ontology https://beatscript.app/ontology/mcp

#Release files

SHA-256 of every file, from the release's own manifest.json. sha256sum of a downloaded file reproduces its line.

FileSHA-256
cert/asserted.sha2560a76a0b64a152c99fc4140ef7950dc2d927656139eb7c6cb3eac52093d2d7651
cert/asserted.tsv9374b38fd65ede133afc7b238a7ae77d87b526ca17189a7af5f7080984c8f6de
cert/derivations.tsv7a68525781c8c6c82086222258eb20bcfef3e7e661238592512190d3ec2534f9
cert/scope.tsv2464cd751287051b9afdf7bb23ba05e2177452247a6e29fa155092434f487946
ns.jsonld7c190f953a608cc13b62d35ea8e25440567eb2e6ef7afd33008e7a0521d8d400
ns.nte1596cff696f496e2d41e0d0e915e8b9d3c5d3414d9e1a30bed31b531f862e16
ns.rdffc198ef82a59dfc15deefed11c03f3f4088bbf4e6d791184d85c75e4ee1c3240
ns.ttl01ae6dfb9fadc9989fbc4077c95b13740a4e074e536a6137a85aecb5e4fb75c2
pack.jsoncd1ceae0c2087c8514185d592418ab39c6fb86846c5abc8fdc8b2d6297c40d4d

The certificate in cert/ covers: RDFS and OWL 2 RL schema rules only (rdfs2, rdfs3, rdfs5, rdfs7, rdfs9, rdfs11, eq-sym, prp-inv1, prp-inv2, prp-symp, prp-trp, scm-dom1, scm-dom2, scm-eqc1, scm-eqp1, scm-rng1, scm-rng2); other OWL axioms are not covered. It is in open-ontologies' oo-cert/1 format, one derivation step per inferred triple, and the pack binds it to the graph with the oo-pack-content/1 digest. Matching digests prove the files are intact and belong together, not that the ontology is correct. The release is built reproducibly from four inputs: the bitwrap 0.2.0 release, bitwrap's genre conventions module, the fork's own module, and the vocabulary generated from BeatScript's code.