query-a3e6e26b707a5397418e2b8388d2d25c

rq turtle/ttl

Getting to work with qualifiers 23:12, 3 February 2020 (UTC)) talk (Trade' query on their talk page but unfortunately the query doesn't work on qualifiers. How can this be fixed? --: All Wikidata properties have a link to a 'Jura1@Like this.

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT *
WHERE
{
    { ?item wdt:P4970 [] . }
    UNION
    { ?item ?property [pq:P4970 [] ]. }
}
ORDER BY DESC(xsd:integer(SUBSTR(STR(?item),33)))
LIMIT 10

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?property"):::projected a1((" ")) a3((" ")) a2((" ")) subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; a2 --"pq:P4970"--> a3 v1 -->v2--> a2 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P4970"--> a1 end union0r <== or ==> union0l end