query-3af01fb3ebc085fb8e172157c415eb5a
Met constituents search SELECT ?item ?itemLabel ?metcid ?dob ?coord WHERE { ?item p:P1343 [ ps:P1343 wd:Q106729628 ; pq:P217 ?metcid ] . OPTIONAL { ?item wdt:P569 ?dob } OPTIONAL { ?item wdt:P19 ?pob . ?pob wdt:P625 ?coord } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Met constituents search
SELECT ?item ?itemLabel ?metcid ?dob ?coord
WHERE
{
?item p:P1343 [
ps:P1343 wd:Q106729628 ;
pq:P217 ?metcid
] .
OPTIONAL { ?item wdt:P569 ?dob }
OPTIONAL { ?item wdt:P19 ?pob .
?pob wdt:P625 ?coord
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?coord"):::projected
v3("?dob"):::projected
v2("?item"):::projected
v1("?metcid"):::projected
v4("?pob")
a1((" "))
c2(["wd:Q106729628"]):::iri
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
a1 --"p:statement/P1343"--> c2
a1 --"p:qualifier/P217"--> v1
v2 --"p:P1343"--> a1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P569".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P19".-> v4
v4 --"p:direct/P625"--> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end