Hello,

I am trying to query the wikidata service for IMDB + the wikipedia of the person. English only wikipedia is okay too.

I previously was able to use the following to include the english wikipedia in the query, which is included below. I've tried the query below, but believe I am doing something wrong. Your help is appreciated. Thanks!

query:

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 ?item  ?IMDB ?article WHERE {
  ?item wdt:P345 ?IMDB
  OPTIONAL {?item rdfs:label ?item_label filter (lang(?item_label) = "en") .}

  ?article schema:about ?item .
  ?article schema:inLanguage "en" .
  FILTER (SUBSTR(str(?article), 1, 25) = "https://en.wikipedia.org/")

 }
ORDER BY ASC (?article)