Sparqdown Cheatsheet
Quick reference for the Sparqdown language and its standard library.
Document skeleton
A document is TriG frontmatter plus a Markdown body:
---
@prefix sd: <https://docs.cida.local/ontology/sparqdown/> .
this:version {
this:version a sd:Version .
this:document a sd:Document ;
sd:title "My Document" @bind<title> .
}
---
# &title
Prose body goes here.
Bindings
Attach @bind<name> to an object in the graph, reference it as &name in prose. &name.subject, &name.predicate, and &name.graph reach the other quad positions.
Claims
@claim<label>(source) cites quads from an external SPARQL endpoint so tools can re-verify them. Bindings inside a claim are flagged when the source diverges.
Queries
@query<label> { source: "…", query: """…""", template: """…""", result: """…""" } embeds a live SPARQL query, its render template, and the materialised result — the document renders offline yet stays re-checkable.
Standard library types
sd:Document— every Sparqdown documentsd:Version— the reserved version graphsdg:Anthology— curated collections of documentssd:Presentation— deck-rendered documents