Search code examples
sparqldbpedia

SPARQL Query returning nothing from fr.dbpedia.org


I am using the following SPARQL query to retrieve the IATA code for Laker Airways.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dbo: <http://dbpedia.org/ontology/> 

select ?airline ?iata where {
   ?airline a dbo:Airline.
   ?airline rdfs:label "Laker Airways"@en.
   OPTIONAL {?airline dbo:iataAirlineCode ?iata.}
}

This works against http://dbpedia.org/sparql/ but not against http://fr.dbpedia.org/sparql/.

What am I doing wrong?


Solution

  • Your SPARQL works against the English language endpoint

    So, use the English endpoint; it has different data from the French one.