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.
- Version 0.4.0, released 2026-11-23:
https://beatscript.app/ontology/0.4.0 - Derived from the bitwrap ontology 0.2.0 (ontology.bitwrap.io), and evolving on its own
- 21598 triples in the materialized graph
- Pack digest
8e7ca73991d7a8eba7d17879664bdd22a0c43017ef71ce83b8af92d23e410092 - License CC0 1.0: use it for anything, no attribution required
#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
/ontology/ns: content-negotiated.Accept: text/turtle,application/ld+json,application/n-triplesorapplication/rdf+xml; a browser comes back to this page.- ns.ttl · ns.jsonld · ns.nt · ns.rdf: the asserted ontology
/ontology/release: version, pack digest and the hash of every file (what theget_releasetool returns)- pack.json: the portable pack, the materialized graph and its certificate
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.
/ontology/sparql: the SPARQL 1.1 protocol.SELECT,ASK,CONSTRUCTandDESCRIBE; GET?query=or POST./ontology/mcp: the same data as an MCP server (Streamable HTTP, stateless, no sign-in). It is the ontology's own server, separate from the BeatScript MCP at/mcp.
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:
sparql_query: Run a read-only SPARQL query (SELECT, ASK, CONSTRUCT or DESCRIBE) over the BeatScript ontology.describe_term: Everything the ontology states about one class, property, genre, scale, groove, section, instrument or concept, as N-Triples (the materialized graph).search_terms: Find terms whose label, other label (an alternative or a former name, such as btw for BeatScript) or definition contains the text (case-insensitive).list_classes: All classes in the ontology namespace with their direct superclasses, as asserted: a superclass another listed one already implies is left out, so LiveNet lists DeadlockFreeNet, not PetriNet too.list_genres: Every genre the engine knows, with its tempo, scale, family and groove.get_genre: One genre in full: tempo, scale, kick/snare/hihat Euclidean rhythms (pulses, steps, rotation, MIDI note), swing, humanize, densities, instrument per channel, chord progressions, song-structure sections, and links to Wikidata and to pflow ontology terms.get_release: Version, pack digest and file hashes of the release being served, and what its certificate covers.
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.
| File | SHA-256 |
|---|---|
cert/asserted.sha256 | 0a76a0b64a152c99fc4140ef7950dc2d927656139eb7c6cb3eac52093d2d7651 |
cert/asserted.tsv | 9374b38fd65ede133afc7b238a7ae77d87b526ca17189a7af5f7080984c8f6de |
cert/derivations.tsv | 7a68525781c8c6c82086222258eb20bcfef3e7e661238592512190d3ec2534f9 |
cert/scope.tsv | 2464cd751287051b9afdf7bb23ba05e2177452247a6e29fa155092434f487946 |
ns.jsonld | 7c190f953a608cc13b62d35ea8e25440567eb2e6ef7afd33008e7a0521d8d400 |
ns.nt | e1596cff696f496e2d41e0d0e915e8b9d3c5d3414d9e1a30bed31b531f862e16 |
ns.rdf | fc198ef82a59dfc15deefed11c03f3f4088bbf4e6d791184d85c75e4ee1c3240 |
ns.ttl | 01ae6dfb9fadc9989fbc4077c95b13740a4e074e536a6137a85aecb5e4fb75c2 |
pack.json | cd1ceae0c2087c8514185d592418ab39c6fb86846c5abc8fdc8b2d6297c40d4d |
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.