query-b32c9d93e176d93fb6e0a975d913b940
Combine the Wikidata Query Service and the Mediawiki API
https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual/MWAPI
(which is backed by Elasticsearch) to perform very fast searching of entities by their label.
This query will first contact EntitySearch (an alias to wbsearchentities)
which will pass the items with a label of "soriano" it found to the triple store
which in turn can now query the graph in a timely manner and filter those entities that are not humans.
This solution only works if the number of items returned by wbsearchentities remains reasonable.
SELECT ?item ?itemLabel WHERE { SERVICE wikibase:mwapi { bd:serviceParam wikibase:endpoint "www.wikidata.org"; wikibase:api "EntitySearch"; mwapi:search "soriano"; # Search for things named "soriano" mwapi:language "en". ?item wikibase:apiOutputItem mwapi:item. } MINUS { ?item wdt:P31 wd:Q5 . # but MINUS or negate any of those things that are instances of human } SERVICE wikibase:label {bd:serviceParam wikibase:language "en".} } LIMIT 100 Combine the Wikidata Query Service and the Mediawiki API
https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual/MWAPI
(which is backed by Elasticsearch) to perform very fast searching of entities by their label.
This query will first contact EntitySearch (an alias to wbsearchentities)
which will pass the items with a label of "soriano" it found to the triple store
which in turn can now query the graph in a timely manner and filter those entities that are not humans.
This solution only works if the number of items returned by wbsearchentities remains reasonable.
SELECT ?item ?itemLabel WHERE { SERVICE wikibase:mwapi { bd:serviceParam wikibase:endpoint "www.wikidata.org"; wikibase:api "EntitySearch"; mwapi:search "soriano"; # Search for things named "soriano" mwapi:language "en". ?item wikibase:apiOutputItem mwapi:item. } MINUS { ?item wdt:P31 wd:Q5 . # but MINUS or negate any of those things that are instances of human } SERVICE wikibase:label {bd:serviceParam wikibase:language "en".} } LIMIT 100 Combine the Wikidata Query Service and the Mediawiki API
https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual/MWAPI
(which is backed by Elasticsearch) to perform very fast searching of entities by their label.
This query will first contact EntitySearch (an alias to wbsearchentities)
which will pass the items with a label of "soriano" it found to the triple store
which in turn can now query the graph in a timely manner and filter those entities that are not humans.
This solution only works if the number of items returned by wbsearchentities remains reasonable.
SELECT ?item ?itemLabel WHERE { SERVICE wikibase:mwapi { bd:serviceParam wikibase:endpoint "www.wikidata.org"; wikibase:api "EntitySearch"; mwapi:search "soriano"; # Search for things named "soriano" mwapi:language "en". ?item wikibase:apiOutputItem mwapi:item. } MINUS { ?item wdt:P31 wd:Q5 . # but MINUS or negate any of those things that are instances of human } SERVICE wikibase:label {bd:serviceParam wikibase:language "en".} } LIMIT 100 Combine the Wikidata Query Service and the Mediawiki API
https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual/MWAPI
(which is backed by Elasticsearch) to perform very fast searching of entities by their label.
This query will first contact EntitySearch (an alias to wbsearchentities)
which will pass the items with a label of "soriano" it found to the triple store
which in turn can now query the graph in a timely manner and filter those entities that are not humans.
This solution only works if the number of items returned by wbsearchentities remains reasonable.
SELECT ?item ?itemLabel WHERE { SERVICE wikibase:mwapi { bd:serviceParam wikibase:endpoint "www.wikidata.org"; wikibase:api "EntitySearch"; mwapi:search "soriano"; # Search for things named "soriano" mwapi:language "en". ?item wikibase:apiOutputItem mwapi:item. } MINUS { ?item wdt:P31 wd:Q5 . # but MINUS or negate any of those things that are instances of human } SERVICE wikibase:label {bd:serviceParam wikibase:language "en".} } LIMIT 100 Combine the Wikidata Query Service and the Mediawiki API
https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual/MWAPI
(which is backed by Elasticsearch) to perform very fast searching of entities by their label.
This query will first contact EntitySearch (an alias to wbsearchentities)
which will pass the items with a label of "soriano" it found to the triple store
which in turn can now query the graph in a timely manner and filter those entities that are not humans.
This solution only works if the number of items returned by wbsearchentities remains reasonable.
SELECT ?item ?itemLabel WHERE { SERVICE wikibase:mwapi { bd:serviceParam wikibase:endpoint "www.wikidata.org"; wikibase:api "EntitySearch"; mwapi:search "soriano"; # Search for things named "soriano" mwapi:language "en". ?item wikibase:apiOutputItem mwapi:item. } MINUS { ?item wdt:P31 wd:Q5 . # but MINUS or negate any of those things that are instances of human } SERVICE wikibase:label {bd:serviceParam wikibase:language "en".} } LIMIT 100 Combine the Wikidata Query Service and the Mediawiki API
https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual/MWAPI
(which is backed by Elasticsearch) to perform very fast searching of entities by their label.
This query will first contact EntitySearch (an alias to wbsearchentities)
which will pass the items with a label of "soriano" it found to the triple store
which in turn can now query the graph in a timely manner and filter those entities that are not humans.
This solution only works if the number of items returned by wbsearchentities remains reasonable.
SELECT ?item ?itemLabel WHERE { SERVICE wikibase:mwapi { bd:serviceParam wikibase:endpoint "www.wikidata.org"; wikibase:api "EntitySearch"; mwapi:search "soriano"; # Search for things named "soriano" mwapi:language "en". ?item wikibase:apiOutputItem mwapi:item. } MINUS { ?item wdt:P31 wd:Q5 . # but MINUS or negate any of those things that are instances of human } SERVICE wikibase:label {bd:serviceParam wikibase:language "en".} } LIMIT 100 Combine the Wikidata Query Service and the Mediawiki API
https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual/MWAPI
(which is backed by Elasticsearch) to perform very fast searching of entities by their label.
This query will first contact EntitySearch (an alias to wbsearchentities)
which will pass the items with a label of "soriano" it found to the triple store
which in turn can now query the graph in a timely manner and filter those entities that are not humans.
This solution only works if the number of items returned by wbsearchentities remains reasonable.
SELECT ?item ?itemLabel WHERE { SERVICE wikibase:mwapi { bd:serviceParam wikibase:endpoint "www.wikidata.org"; wikibase:api "EntitySearch"; mwapi:search "soriano"; # Search for things named "soriano" mwapi:language "en". ?item wikibase:apiOutputItem mwapi:item. } MINUS { ?item wdt:P31 wd:Q5 . # but MINUS or negate any of those things that are instances of human } SERVICE wikibase:label {bd:serviceParam wikibase:language "en".} } LIMIT 100 Combine the Wikidata Query Service and the Mediawiki API
https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual/MWAPI
(which is backed by Elasticsearch) to perform very fast searching of entities by their label.
This query will first contact EntitySearch (an alias to wbsearchentities)
which will pass the items with a label of "soriano" it found to the triple store
which in turn can now query the graph in a timely manner and filter those entities that are not humans.
This solution only works if the number of items returned by wbsearchentities remains reasonable.
SELECT ?item ?itemLabel WHERE { SERVICE wikibase:mwapi { bd:serviceParam wikibase:endpoint "www.wikidata.org"; wikibase:api "EntitySearch"; mwapi:search "soriano"; # Search for things named "soriano" mwapi:language "en". ?item wikibase:apiOutputItem mwapi:item. } MINUS { ?item wdt:P31 wd:Q5 . # but MINUS or negate any of those things that are instances of human } SERVICE wikibase:label {bd:serviceParam wikibase:language "en".} } LIMIT 100 Combine the Wikidata Query Service and the Mediawiki API
https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual/MWAPI
(which is backed by Elasticsearch) to perform very fast searching of entities by their label.
This query will first contact EntitySearch (an alias to wbsearchentities)
which will pass the items with a label of "soriano" it found to the triple store
which in turn can now query the graph in a timely manner and filter those entities that are not humans.
This solution only works if the number of items returned by wbsearchentities remains reasonable.
SELECT ?item ?itemLabel WHERE { SERVICE wikibase:mwapi { bd:serviceParam wikibase:endpoint "www.wikidata.org"; wikibase:api "EntitySearch"; mwapi:search "soriano"; # Search for things named "soriano" mwapi:language "en". ?item wikibase:apiOutputItem mwapi:item. } MINUS { ?item wdt:P31 wd:Q5 . # but MINUS or negate any of those things that are instances of human } SERVICE wikibase:label {bd:serviceParam wikibase:language "en".} } LIMIT 100 Combine the Wikidata Query Service and the Mediawiki API
https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual/MWAPI
(which is backed by Elasticsearch) to perform very fast searching of entities by their label.
This query will first contact EntitySearch (an alias to wbsearchentities)
which will pass the items with a label of "soriano" it found to the triple store
which in turn can now query the graph in a timely manner and filter those entities that are not humans.
This solution only works if the number of items returned by wbsearchentities remains reasonable.
SELECT ?item ?itemLabel WHERE { SERVICE wikibase:mwapi { bd:serviceParam wikibase:endpoint "www.wikidata.org"; wikibase:api "EntitySearch"; mwapi:search "soriano"; # Search for things named "soriano" mwapi:language "en". ?item wikibase:apiOutputItem mwapi:item. } MINUS { ?item wdt:P31 wd:Q5 . # but MINUS or negate any of those things that are instances of human } SERVICE wikibase:label {bd:serviceParam wikibase:language "en".} } LIMIT 100
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Combine the Wikidata Query Service and the Mediawiki API
#https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual/MWAPI
#(which is backed by Elasticsearch) to perform very fast searching of entities by their label.
#
#This query will first contact EntitySearch (an alias to wbsearchentities)
#which will pass the items with a label of "soriano" it found to the triple store
#which in turn can now query the graph in a timely manner and filter those entities that are not humans.
#This solution only works if the number of items returned by wbsearchentities remains reasonable.
SELECT ?item ?itemLabel WHERE {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "www.wikidata.org";
wikibase:api "EntitySearch";
mwapi:search "soriano"; # Search for things named "soriano"
mwapi:language "en".
?item wikibase:apiOutputItem mwapi:item.
}
MINUS {
?item wdt:P31 wd:Q5 . # but MINUS or negate any of those things that are instances of human
}
SERVICE wikibase:label {bd:serviceParam wikibase:language "en".}
}
LIMIT 100
Query found at
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/en
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/es
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/fr
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/hy
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/ja
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/nl
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/sv
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/tr
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/uk
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/zh