Hi!
> Thank's for your reply.
> All the failing queries was on the following model
>
> SELECT distinct ?candidate ?label WHERE {
> SERVICE wikibase:mwapi {
> bd:serviceParam wikibase:api "EntitySearch" .
> bd:serviceParam wikibase:endpoint "www.wikidata.org
> <http://www.wikidata.org>" .
> bd:serviceParam mwapi:search "Musée Cernuschi" .
> bd:serviceParam mwapi:language "fr" .
> bd:serviceParam wikibase:limit 5 .
> ?candidate wikibase:apiOutputItem mwapi:item .
> }
>
> ?candidate wdt:P17 wd:Q142 .
>
> SERVICE wikibase:mwapi {
> bd:serviceParam wikibase:api "EntitySearch" .
> bd:serviceParam wikibase:endpoint "www.wikidata.org
> <http://www.wikidata.org>" .
> bd:serviceParam mwapi:search "Paris" .
> bd:serviceParam mwapi:language "fr" .
> bd:serviceParam wikibase:limit 5 .
> ?city wikibase:apiOutputItem mwapi:item .
> }
> ?candidate wdt:P131 ?city .
>
> ?candidate rdfs:label ?label;
> filter(lang(?label)="fr")
> }
Could you describe in a bit more detail what you're trying to do here?
Doing two service calls is not a pattern one would commonly use... It
can be slow if query optimizer misunderstands such query, too. I feel
I'd have a bit more insight if I understood what you are trying to
achieve with this query.
--
Stas Malyshev
[email protected]
_______________________________________________
Wikidata mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata