diff --git a/README.md b/README.md index 6bdb593a89c64b9adb9e318d979176ce2f0c0715..35654dbed17866cd2b0e531e8741700f74ab54fa 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.