query-410b62552dda2a67dd9544b9c7fabe32
Slow query on label 15:31, 12 November 2020 (UTC)) talk (Esia1688hi, I don't know why this query to know the Barack obama date of birth, it will time out, I query the label separately, there are only 3 result for label of Barack Obama and 2 result for date of birth, so the result set is small. --
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?ent ?wdtProperty ?val ?valLabel WHERE {
?ent rdfs:label|skos:altLabel "Barack Obama"@en.
?wdProperty1 rdfs:label|skos:altLabel "date of birth"@en;
wikibase:directClaim ?wdtProperty1.
?ent ?wdtProperty1 ?val .
} LIMIT 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?ent"):::projected
v4("?val"):::projected
v2("?wdProperty1")
v3("?wdtProperty1")
c2([sBarack Obama^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"]):::literal
c4([sdate of birth^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"skos:altLabel"--> c2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"rdfs:label"--> c2
end
union0r <== or ==> union0l
end
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v2 --"skos:altLabel"--> c4
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v2 --"rdfs:label"--> c4
end
union1r <== or ==> union1l
end
v2 --"wikibase:directClaim"--> v3
v1 -->v3--> v4