Hot answers tagged

2

you could add this line: BIND( STR(?end) as ?ended ). SELECT ?playerLabel ?teamLabel ?start ?ended WHERE { VALUES ?player { wd:Q11571 } ?player p:P54 ?teams. ?teams ps:P54 ?team; pq:P580 ?start. OPTIONAL { ?teams pq:P582 ?end. BIND( STR(?end) as ?ended ). } SERVICE wikibase:label { bd:serviceParam wikibase:...


1

You need to select additional variables on the pattern ${variableName}Label: SELECT ?person ?personLabel ?pic ?givenName ?givenNameLabel ?familyName ?familyNameLabel ?placeOfBirth ?placeOfBirthLabel WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P18 ?pic . ?person wdt:P735 ?givenName . ?person wdt:P734 ?familyName . ?person wdt:P19 ?placeOfBirth . ...


1

Your question shows <> which is not a valid property or wildcard. You cannot use property variables (wildcards) in property paths. So you need to understand the structure of how dct:subject and skos:broader are used, and exploit that. I happen to know that dct:subject links pages to categories skos:broader makes the category hierarchy I should warn ...


Only top voted, non community-wiki answers of a minimum length are eligible