Hi!

> *The first one, which seems to be only for 1 record, just as a test
> seemed to give me an ERROR though:*
> 
> 
> PREFIX wd: <http://www.wikidata.org/entity/>
> PREFIX wdt: <http://www.wikidata.org/prop/direct/>
> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> PREFIX schema: <http://schema.org/>
> 
> SELECT *
> WHERE
> {
>    <http://www.wikidata.org/entity/Q1652291>
>  <http://schema.org/description> ?o .   
>     filter(lang(?o)='en').
> 
>     ?article schema:about ?item .
>     ?article schema:inLanguage "en" .
>     FILTER (SUBSTR(str(?article), 1, 25) = "https://en.wikipedia.org/";)
> }

This one is not correct - ?item should be replaced by
<http://www.wikidata.org/entity/Q1652291>. Or you can use BIND or VALUES
syntax in SPARQL to bind all instanced of ?item to one or more specific
items. But if you just leave it as ?item it matches any value - which
means you just made it scan through all 15M items :) That will time out.

-- 
Stas Malyshev
[email protected]

_______________________________________________
Wikidata mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata

Reply via email to