The first part of my question is, is there a SPARQL equivalent of the "What links here" link? E.g. as described at https://opendata.stackexchange.com/a/5271/20321
I tried:
WHERE { ?item wdt:?property wd:Q1174 . }
which gave a syntax error, and:
WHERE { ?item wdt:* wd:Q1174 . }
which doesn't give an error, but only returns one row: the item in the query!
The second part of my question is how can I get a list of all unique properties that are used to link to the item of interest? This is the bit I'm interested in, as I suspect there will typically just be 1 or 2 properties used for 99% of the links, and that any others are probably mistakes, that are good candidates for fixing to improve data quality.
select ?property ?propertyLabel (COUNT(?propertyLabel) as ?cnt)then addedGROUP BY ?property ?propertyLabel, and optionallyORDER BY DESC(?cnt), to the end. – Darren Cook Dec 03 '18 at 21:05wikibase:directClaimI get over double the entries: 20 --> 43. Every wdt:NN has a ps:NN equivalent, each with identical count. But also "schema:about" (110), and then pq:P50 and pq:P5869 (1 each). I can't work out if the "pq" are typos for "ps" (and if fixed, then another "wdt" would magically appear?) – Darren Cook Dec 03 '18 at 21:10ps:andpq:, see Data model. My query lists onlywdt:properties and subjects connected via them. – Stanislav Kralin Dec 03 '18 at 21:13