From aa3b37b56dd05384504a3ad8e5757fc38e49797b Mon Sep 17 00:00:00 2001 From: Oumaima AMAL <oumaima.amal@irit.fr> Date: Tue, 10 Jun 2025 18:17:41 +0000 Subject: [PATCH] Edit README.md by adding SPARQL queries --- README.md | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 56 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6bdb593..35654db 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,10 @@ - [Object Properties](#object-properties) - [Data Properties](#data-properties) - [usage](#usage) -2. [Download](#Download) -3. [Contributors](#contributors) -4. [Contact](#contact) +2. [Ontology Validation] (#sparql) +3. [Download](#Download) +4. [Contributors](#contributors) +5. [Contact](#contact) ## About the ontology @@ -214,6 +215,58 @@ ex:Duplication_set_obs_1_Result a dqv:QualityMeasurement ; dqv:value "0.0"^^xsd:float . ``` +## Ontology Validation + +The DQA ontology aims to enable structured, granular, and traceable representation of DQ evaluations. The following SPARQL queries confirm its ability to answer the competency questions (CQ0–CQ6) previously defined. + +```sparql +# CQ0 – Which quality assessment processes have been performed on a specific observation or a set of observations? +SELECT ?assessment ?observation +WHERE { + ?assessment a dqa:QualityAssessmentProcess ; + dqa:assessesObservation ?observation . +} + +# CQ1 – Retrieve the type of method used in each assessment +SELECT ?assessment ?methodType +WHERE { + ?assessment a dqa:QualityAssessmentProcess ; + dqa:usesMethod ?method . + ?method a ?methodType . +} + +# CQ2 – Identify the indicator assessed in each process +SELECT ?assessment ?indicator +WHERE { + ?assessment dqa:assessIndicator ?indicator . +} + +# CQ3 – Retrieve the granularity level used in each assessment +SELECT ?assessment ?granularity +WHERE { + ?assessment dqa:hasGranularity ?granularity . +} + +# CQ4 – Get the numeric result of each assessment +SELECT ?assessment ?value +WHERE { + ?assessment dqa:producesResult ?result . + ?result dqv:value ?value . +} + +# CQ5 – Retrieve the label assigned to each result +SELECT ?result ?label +WHERE { + ?result dqa:hasLabel ?labelInstance . + ?labelInstance rdfs:label ?label . +} + +# CQ6 – Get the threshold used to assign a label +SELECT ?labelInstance ?threshold +WHERE { + ?labelInstance dqa:labelThreshold ?threshold . +} + ## Download To use the DQA ontology in your project, **Download or Clone the Repository**: You can download the RDF file containing the DQA ontology or clone the repository from GitHub. -- GitLab