Home /permanent

Wikidata

Example of Wikidata SPARQL queries:

Get all humans (limit 10)

SELECT * WHERE {
    ?thing wdt:P31 wd:Q5
} LIMIT 10

More here: https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries#Optionality_and_alternatives

Get all humans where the Twitter username is ….

SELECT * WHERE {
    ?thing wdt:P31 wd:Q5
    ## I do something but I don't know what?
} LIMIT 10