query-5587f093be1ade96d89772ed6cdf0e9c
title:Different labels SELECT ?item ?enlabel ?frlabel WHERE { ?item wdt:P2358 ?roman_praenomen . ?item rdfs:label ?enlabel . FILTER(LANG(?enlabel) = 'en') . ?item rdfs:label ?frlabel . FILTER(LANG(?frlabel) = 'fr') . FILTER(STR(?enlabel) != STR(?frlabel)) . } ORDER BY ?enlabel
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
#title:Different labels
SELECT ?item ?enlabel ?frlabel WHERE {
?item wdt:P2358 ?roman_praenomen .
?item rdfs:label ?enlabel .
FILTER(LANG(?enlabel) = 'en') .
?item rdfs:label ?frlabel .
FILTER(LANG(?frlabel) = 'fr') .
FILTER(STR(?enlabel) != STR(?frlabel)) .
}
ORDER BY ?enlabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?enlabel"):::projected
v2("?frlabel"):::projected
v3("?item"):::projected
v4("?roman_praenomen")
f0[["str(?enlabel) != str(?frlabel)"]]
f0 --> v1
f0 --> v2
f1[["?frlabel = 'fr'"]]
f1 --> v2
f2[["?enlabel = 'en'"]]
f2 --> v1
v3 --"wdt:P2358"--> v4
v3 --"rdfs:label"--> v1
v3 --"rdfs:label"--> v2