You need to use the 'wikibase:label' service, see: https://www.mediawiki.org/wiki/Wikidata_query_service/User_Manual#Label_service
For example, here's a query with all plays written by the Hungarian playwright Ferenc Molnar with label: select ?item ?itemLabel where { ?item wdt:P50 wd:Q296809 . SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } } -- Hay On Mon, Apr 18, 2016 at 12:10 PM, Andra Waagmeester <an...@micelio.be> wrote: > Is it possible to get the label of a Wikidata property in a SPARQL query. I > would expect rdfs:label would do the trick, however the following query does > not return the expected results: > > SELECT DISTINCT ?propLabel ?prop ?value > WHERE > { > VALUES ?geneID {"672"} > ?gene wdt:P351 ?geneID ; > ?prop ?value . > ?prop rdfs:label ?propLabel . > } > > Cheers Andra > > _______________________________________________ > Wikidata mailing list > Wikidata@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikidata > _______________________________________________ Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata