Competency Question | SPARQL Query | Pseudo-code |
---|---|---|
What are the main education levels? | PREFIX edu: <http://www.niveleseducativos-mexico.org/niveles# > PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema# > | List all the individuals ?x that belonging to each subclass of Education Level (edu:Escolaridad) |
SELECT ?x | ||
WHERE {?ec rdfs:subClassOf edu:Escolaridad. | ||
?x a ?ec} | ||
What are the main categories a person may belong to? | PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema# > PREFIX per: <http://www.personas-mexico.org/persona# > SELECT ?category | List the categories ?category in which the Person class (per:Persona) is divided (via rdfs:subClassOf) |
WHERE {?category rdfs:subClassOf per:Persona} | ||
What types of data are collected during clinical consultation? | PREFIX dato: <http: //www.modelo.org/datos# > PREFIX rdfs: <http: //www.w3.org/2000/01/rdf-schema# > SELECT ?data ?range | List the data ?data and the type-data ?range that compose (via rdfs:range) the medical note (dato:Nota_Medica) |
WHERE { ?data rdfs:domain dato:Nota_Medica. ?data rdfs:range ?range} | ||
What are the types of diagnosis? | PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema# > PREFIX enf: <http://www.padecimientos-mexico.org/enfermedad# > SELECT ?diagnosis | List the diagnosis classification ?diagnosis in which is divided (rdf:subClassOf) the Clinical Entity class (enf:Enfermedad_Clinica) |
WHERE { ?diagnosis rdfs:subClassOf enf:Entidad_Clinica} |