Skip to content
Snippets Groups Projects
Commit aa3b37b5 authored by Oumaima AMAL's avatar Oumaima AMAL
Browse files

Edit README.md by adding SPARQL queries

parent c50e9001
No related branches found
No related tags found
No related merge requests found
...@@ -8,9 +8,10 @@ ...@@ -8,9 +8,10 @@
- [Object Properties](#object-properties) - [Object Properties](#object-properties)
- [Data Properties](#data-properties) - [Data Properties](#data-properties)
- [usage](#usage) - [usage](#usage)
2. [Download](#Download) 2. [Ontology Validation] (#sparql)
3. [Contributors](#contributors) 3. [Download](#Download)
4. [Contact](#contact) 4. [Contributors](#contributors)
5. [Contact](#contact)
## About the ontology ## About the ontology
...@@ -214,6 +215,58 @@ ex:Duplication_set_obs_1_Result a dqv:QualityMeasurement ; ...@@ -214,6 +215,58 @@ ex:Duplication_set_obs_1_Result a dqv:QualityMeasurement ;
dqv:value "0.0"^^xsd:float . 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 ## 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. 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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment