query-b32c9d93e176d93fb6e0a975d913b940

rq turtle/ttl

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

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

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected c4(["www.wikidata.org"]):::literal c8(["soriano"]):::literal c12(["mwapi:item"]):::iri c10(["en"]):::literal c2(["bd:serviceParam"]):::iri c6(["EntitySearch"]):::literal c14(["wd:Q5"]):::iri subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c2 --"mwapi:endpoint"--> c4 c2 --"mwapi:api"--> c6 c2 --"mwapi:search"--> c8 c2 --"mwapi:language"--> c10 v1 --"mwapi:apiOutputItem"--> c12 end subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P31"--> c14 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c2 --"mwapi:language"--> c10 end