OWL Ontology for The Chakra System

An ontology created for the chakra system, built in December 2020.

Status: incomplete

Chakra System

Used technologies:

  • OWL (Web Ontology Language)

  • XML/RDF

  • Protege

  • SparQL

SparQL Query to get all attributes of Muladhara
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX chk: <http://iurianu.rocks/ontology/chakras.owl#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>

SELECT DISTINCT ?property ?value
	FROM <http://iurianu.rocks/ontology/chakras.owl#>
	WHERE { 
		chk:Muladhara ?poperty ?value .
	}
SparQL Query to get Main Chakras, and Some of Their Properties, in Order
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX chk: <http://iurianu.rocks/ontology/chakras.owl#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>

SELECT ?label ?commonName ?color ?description
	FROM <http://iurianu.rocks/ontology/chakras.owl#>
	WHERE { 
		 ?x skos:inScheme chk:MainChakras ;
		 chk:orderNumber ?order ;
		 chk:commonName ?commonName ;
		 chk:color ?color ;
		 rdfs:label ?label ;
		 rdfs:description ?description .
	}
ORDER BY ASC(?order)	
SparQL Query to Get One of the Main Chakras, using Regular Expressions
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX chk: <http://iurianu.rocks/ontology/chakras.owl#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>

SELECT ?label ?commonName ?about ?description
	FROM <http://iurianu.rocks/ontology/chakras.owl#>
	WHERE { 
		 ?x skos:inScheme chk:MainChakras ;
		 chk:orderNumber ?order ;
		 chk:commonName ?commonName ;
		 rdfs:about ?about ;
		 rdfs:label ?label ;
		 rdfs:description ?description .

		 FILTER regex(?label, "^Anahata")
	}
SparQL Query to Get All Chakras that have the word "power" in the about text, using Regular Expressions
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX chk: <http://iurianu.rocks/ontology/chakras.owl#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>

SELECT ?label ?type ?description
	FROM <http://iurianu.rocks/ontology/chakras.owl#>
	WHERE { 
		 ?x rdf:type chk:Chakra ;
		 skos:inScheme ?type ;
		 rdfs:about ?about ;
		 rdfs:label ?label ;
		 rdfs:description ?description .

		 FILTER regex(?about, str("power"))
	}

ORDER BY ASC(str(?label))
OWL Ontology for The Chakra System