Skip to content

domel/graphquerylangs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Graph Query Language SMS Ontology (OWL / Turtle)

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.

Online access

A web-based visualization of the ontology is available at:

The ontology file itself is published at:

Repository contents

  • 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.

Ontology at a glance

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).

Metrics

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

Getting started

Option A: Open in Protégé (recommended for inspection)

  1. Install Protégé.
  2. Open index.ttl.
  3. (Optional) Run a reasoner (e.g., HermiT / Pellet, depending on your setup) to classify the ontology and detect inconsistencies.

Option B: Syntax validation (RDF/Turtle)

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

Option C: Load into a triplestore

Load index.ttl into your RDF store of choice (e.g., GraphDB, Fuseki, Blazegraph) and query it via SPARQL.

Example SPARQL queries

Adjust the prefix IRI to match the ontology namespace used in index.ttl.

1) List all classes

PREFIX owl: <http://www.w3.org/2002/07/owl#>

SELECT ?c WHERE {
  ?c a owl:Class .
}
ORDER BY ?c

2) List object properties with declared domains and ranges

PREFIX 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 ?p

3) Count individuals by class

SELECT ?class (COUNT(?x) AS ?count) WHERE {
  ?x a ?class .
}
GROUP BY ?class
ORDER BY DESC(?count) ?class

License

Add 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages