This repository primarily contains an OWL 2 ontology serialized in Turtle (.ttl). The ontology is intended to represent a structured conceptualization of a domain (classes, properties, individuals, and axioms) and to serve as a reusable, machine-queryable artifact.
A web-based visualization of the ontology is available at:
- Visualization: https://domel.github.io/graphquerylangs/ont/
The ontology file itself is published at:
- Ontology (Turtle): https://domel.github.io/graphquerylangs/ont/index.ttl
index.ttl— the ontology file (OWL 2 in Turtle syntax)
If the ontology file has a different name in your repository, adjust the references in this README accordingly.
The ontology is provided as a single Turtle file and can be:
- opened and inspected in tools such as Protégé,
- validated with standard RDF/OWL tooling,
- queried using SPARQL (after loading into an RDF store),
- integrated into pipelines that rely on OWL reasoning / inference (depending on the reasoner and profile).
The following metrics summarize the current ontology snapshot:
| Metric | Value |
|---|---|
| Axiom | 499 |
| Logical axiom count | 275 |
| Declaration axioms count | 97 |
| Class count | 13 |
| Object property count | 21 |
| Data property count | 3 |
| Individual count | 58 |
| Annotation Property count | 3 |
| SubClassOf | 20 |
| SubObjectPropertyOf | 3 |
| FunctionalObjectProperty | 6 |
| TransitiveObjectProperty | 1 |
| SymmetricObjectProperty | 1 |
| AsymmetricObjectProperty | 1 |
| IrrefexiveObjectProperty | 2 |
| ObjectPropertyDomain | 21 |
| ObjectPropertyRange | 21 |
| FunctionalDataProperty | 3 |
| DataPropertyDomain | 3 |
| DataPropertyRange | 3 |
| ClassAssertion | 58 |
| ObjectPropertyAssertion | 121 |
| DataPropertyAssertion | 10 |
| AnnotationAssertion | 127 |
- Install Protégé.
- Open
index.ttl. - (Optional) Run a reasoner (e.g., HermiT / Pellet, depending on your setup) to classify the ontology and detect inconsistencies.
Examples of command-line validation you can use in CI or locally:
-
Raptor (rapper):
rapper -i turtle -c index.ttl
-
Apache Jena (riot):
riot --validate index.ttl
Load index.ttl into your RDF store of choice (e.g., GraphDB, Fuseki, Blazegraph) and query it via SPARQL.
Adjust the prefix IRI to match the ontology namespace used in
index.ttl.
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT ?c WHERE {
?c a owl:Class .
}
ORDER BY ?cPREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?p ?domain ?range WHERE {
?p a owl:ObjectProperty .
OPTIONAL { ?p rdfs:domain ?domain . }
OPTIONAL { ?p rdfs:range ?range . }
}
ORDER BY ?pSELECT ?class (COUNT(?x) AS ?count) WHERE {
?x a ?class .
}
GROUP BY ?class
ORDER BY DESC(?count) ?classAdd your license here (e.g., MIT, Apache-2.0, CC-BY-4.0).
If you have not selected a license yet, consider adding a LICENSE file to clarify reuse conditions.