Ontology & SPARQL cheat sheets
Project · teaching material · 2026
Ontology & SPARQL cheat sheets are two dense, two-page reference sheets in Thai, written in LaTeX for students preparing for quizzes in an ontology course at Chiang Mai University.
The two sheets
- Ontology and SPARQL: ontology basics, building a schema in Protégé (classes, properties, individuals) and how to query it, with worked examples.
- SPARQL 1.1 reference: a complete reference to the query language, with 15 practical examples.
Building
Both are compiled with LuaLaTeX or XeLaTeX, which handle Thai script well, through a Makefile (make all, make ontology, make sparql). The Thai typeface, TH Sarabun New, is bundled in the repository, so the sheets build the same way on any machine without installing fonts.
Context
They come from the same term as his ontology-augmented health recommendation project, a course project in ontology engineering built on OWL and SPARQL.
See also
In the knowledge graph
Ontology & SPARQL cheat sheets and the 10 things it is linked to. Open any dot for its page, or explore it in the full graph.
As data
Everything on this page is read from triples in the knowledge graph. These are the 22 it states about Ontology & SPARQL cheat sheets, and 1 more its ontology implies; the console runs SPARQL over the whole graph, here in your browser.
@prefix id: <https://ask.chaipat.cc/id/> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix cj: <https://ask.chaipat.cc/ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . id:OntoCheatSheet a cj:Project ; rdfs:label "Ontology & SPARQL cheat sheets" ; cj:description "Two-page Thai cheat sheets for ontology design (Protégé) and SPARQL 1.1, with practical examples." ; cj:context id:CMU ; cj:repository "https://github.com/AppleBoiy/onto-cheat-sheet"^^xsd:anyURI ; cj:firstCommit "2026-03-05"^^xsd:date ; cj:lastCommit "2026-03-05"^^xsd:date ; cj:commitCount 1 ; cj:kind "teaching material" ; cj:theme id:ThemeOntology , id:ThemeTeaching , id:ThemeWriting ; cj:uses id:LaTeX , id:OWL , id:SPARQL , id:Protege , id:Make ; cj:tier 2 ; cj:relatedTo id:HealthRec ; cj:article "https://ask.chaipat.cc/wiki/OntoCheatSheet"^^xsd:anyURI ; cj:activeIn id:Y2026 ; cj:activity _:b115 .