query-2ad47469eadf0a7f3de1ae9b384d731c
: with labelswill timeout because 1 million hits the limit for the label service. Instead get all proteins ]reply[14:36, 17 August 2019 (UTC)) talk (SCIdudehits 944k objects and presumably the label service is the reason for the timeout. Optimization via subsets however is not possible because any properties are too fine-grained (e.g. "found in taxon") or cannot be partitioned (external IDs). So how do I get a full list of protein objects and their labels? --You may concider using this query : with labelswill timeout because 1 million hits the limit for the label service. Instead get all proteins : with labelswill timeout because 1 million hits the limit for the label service. Instead get all proteins : with labelswill timeout because 1 million hits the limit for the label service. Instead get all proteins TODO : with labelswill timeout because 1 million hits the limit for the label service. Instead get all proteins : with labelswill timeout because 1 million hits the limit for the label service. Instead get all proteins : with labelswill timeout because 1 million hits the limit for the label service. Instead get all proteins
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?itemLabel WHERE {
?item wdt:P31 wd:Q8054 .
?item rdfs:label ?itemLabel. FILTER( LANG(?itemLabel)="en" )
}
Query found at
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/en
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/fr
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/hy
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/nl
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/pt
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/ru
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/uk
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/zh
- https://www.wikidata.org/wiki/Wikidata_talk:SPARQL_query_service
- https://www.wikidata.org/wiki/Wikidata_talk:SPARQL_query_service/Wikidata_Query_Help