3_how_many_health_datasets_are_available
How many 'health' datasets are available across SPHN (Switzerland), HealthRI (Netherlands) and Data.Norge (Norway)?
Use at
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX data-theme: <http://publications.europa.eu/resource/authority/data-theme/>
SELECT ?source (COUNT(?dataset) AS ?count)
WHERE {
{
BIND('SPHN' AS ?source)
?dataset a dcat:Dataset .
?dataset dcat:theme data-theme:HEAL .
}
UNION {
BIND('HealthRI' AS ?source)
SERVICE <https://sparql.healthdata.nl/repositories/fdp> {
?dataset a dcat:Dataset .
?dataset dcat:theme data-theme:HEAL .
}
}
UNION {
BIND('Data.Norge' AS ?source)
SERVICE <https://sparql.fellesdatakatalog.digdir.no> {
?dataset a dcat:Dataset .
?dataset dcat:theme data-theme:HEAL .
}
}
} GROUP BY ?source
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?count")
v2("?dataset"):::projected
v3("?source"):::projected
c2(["dcat:Dataset"]):::iri
c4(["data-theme:HEAL"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
bind0[/"'Data.Norge'"/]
bind0 --as--o v3
subgraph s1["https://sparql.fellesdatakatalog.digdir.no"]
style s1 stroke-width:4px;
v2 --"a"--> c2
v2 --"dcat:theme"--> c4
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
bind1[/"'HealthRI'"/]
bind1 --as--o v3
subgraph s2["https://sparql.healthdata.nl/repositories/fdp"]
style s2 stroke-width:4px;
v2 --"a"--> c2
v2 --"dcat:theme"--> c4
end
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
bind2[/"'SPHN'"/]
bind2 --as--o v3
v2 --"a"--> c2
v2 --"dcat:theme"--> c4
end
union0r <== or ==> union0l
end
bind4[/"count(?dataset)"/]
v2 --o bind4
bind4 --as--o v3