query-44602480b59ede86a514771e974d1722
too late it seems, but I got this : : if some of the names may not be defined, but not all of them, you may have to break the « optional » into one per properties because in your initial query, it’s a all or nothing issue : if there is no image but a schema:description for example, the « optional » block will be empty alltogether :Spinster@
Use at
- https://query.wikidata.org/sparql
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT distinct ?agent ?nameen ?namekana ?nameja ?desc ?image ?wd WHERE {
?agent rdf:type type:Agent.
?agent owl:sameAs ?wd.
?wd rdfs:isDefinedBy <http://www.wikidata.org/>.
OPTIONAL {
?agent schema:name ?nameen FILTER (lang(?nameen) ="en").
}
OPTIONAL {
?agent schema:name ?namekana FILTER (lang(?namekana) ="ja-kana").
}
OPTIONAL {
?agent schema:name ?nameja FILTER (lang(?nameja) ="ja").
}
OPTIONAL {
?agent schema:description ?desc.
}
OPTIONAL {
?agent schema:image ?image.
}
}