A skill that teaches Claude to read and write OTTR templates and instances in stOTTR (terse) syntax — the language for capturing reusable RDF/OWL modelling patterns as parameterised graphs.
- Core OTTR concepts: templates, instances, nesting, design/content separation
- The complete stOTTR grammar: signatures, parameters, types, instances, terms
- Parameter modifiers (
?optional,!non-blank), default values - Types:
List<>,NEList<>,LUB<>, and the defaultTop - List expanders:
cross,zipMin,zipMax(with++) - Annotations (
@@), base templates (:: BASE), comments - A condensed grammar reference and a common-mistakes list
Place the ottr folder among your Claude skills. It activates automatically when you
work with OTTR templates, .stottr files, ottr:Triple, list expanders, or ask how to
turn an RDF/OWL pattern into a reusable template.
ex:Person [ ottr:IRI ?id, xsd:string ?name, xsd:int ?age ] :: {
ottr:Triple(?id, rdf:type, ex:Person),
ottr:Triple(?id, rdfs:label, ?name),
ottr:Triple(?id, ex:age, ?age)
} .
ex:Person(ex:alice, "Alice", 34) .
Pairs naturally with the maplib skill, which expands stOTTR templates over Polars DataFrames in Python.
- stOTTR specification — https://spec.ottr.xyz/stOTTR/
- OTTR framework & specs — https://spec.ottr.xyz/
- OTTR homepage — https://ottr.xyz/
- maplib — https://github.com/DataTreehouse/maplib
See the repository for license details.