query-1da7f0fd12d5ab7f103bb20c7ebb87c0
Identifier shared with: Template:P227I still have problems with queries that include qualifiers. I would like to create a maintenance list for (P4070)identifier shared with / GND: (P1810)subject named as / GND: (P227)GND ID item / description / Examples of items that should be displayed: Q301751#P227area of sociology: Q3245490#P227biblical figure: 22:21, 22 July 2023 (UTC)) talk (Kolja21Any help appreciated. --: I'm not sure to understand the request, but here is my try:Kolja21@
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?id ?named ?shared ?sharedLabel WHERE {
?item p:P227 ?statement.
?item wdt:P227 ?id.
?statement pq:P1810 ?named.
?statement pq:P4070 ?shared.
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de,en" .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?id"):::projected
v1("?item"):::projected
v4("?named"):::projected
v5("?shared"):::projected
v2("?statement")
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,de,en"]):::literal
v1 --"p:P227"--> v2
v1 --"p:direct/P227"--> v3
v2 --"p:qualifier/P1810"--> v4
v2 --"p:qualifier/P4070"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end