Skip to content

DataTreehouse/ottr-skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

ottr — a Claude skill for OTTR & stOTTR

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.

What it covers

  • 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 default Top
  • List expanders: cross, zipMin, zipMax (with ++)
  • Annotations (@@), base templates (:: BASE), comments
  • A condensed grammar reference and a common-mistakes list

Usage

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.

References

License

See the repository for license details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors