Linked Questions

Popular Questions

How can you search the Wikidata SPARQL query service for a record whose official website (property P856) matches a specific value?

For example, fetch all records whose official website is "https://www.google.com". This should return Q95 and Q9366, but instead the following query yields no results:

SELECT ?entity
WHERE  {
    ?entity wdt:P856 "https://www.google.com"
}

I can get it to work with a FILTER, but it's very slow:

SELECT ?entity
WHERE  {
    ?entity wdt:P856 ?url FILTER(str(?url)="https://www.google.com")
}

Using FILTER seems very inefficient. Why doesn't the first query work?

Related Questions