query-9c007640852b0e926fdb95e3653a1e42

rq turtle/ttl

title:Encode of article titles SELECT DISTINCT ?item ?itlabel ?articleurl ?article ?id WHERE { ?item wdt:P3360 ?id ; rdfs:label ?itlabel . FILTER(LANG(?itlabel) = "it") ?articleurl schema:about ?item ; schema:isPartOf https://it.wikipedia.org/ . BIND(REPLACE(wikibase:decodeUri(SUBSTR(STR(?articleurl), 31)),"_"," ") AS ?article) . }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
#title:Encode of article titles
SELECT DISTINCT ?item ?itlabel ?articleurl ?article ?id
WHERE {
  ?item wdt:P3360 ?id ; rdfs:label ?itlabel . FILTER(LANG(?itlabel) = "it")
  ?articleurl schema:about ?item ; schema:isPartOf <https://it.wikipedia.org/> .
  BIND(REPLACE(wikibase:decodeUri(SUBSTR(STR(?articleurl), 31)),"_"," ") AS ?article) .
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?article"):::projected v4("?articleurl"):::projected v3("?id"):::projected v2("?item"):::projected v1("?itlabel"):::projected c6([https://it.wikipedia.org/]):::iri f0[["?itlabel = 'it'"]] f0 --> v1 v2 --"wdt:P3360"--> v3 v2 --"rdfs:label"--> v1 v4 --"schema:about"--> v2 v4 --"schema:isPartOf"--> c6 bind1[/"replace(http://wikiba.se/ontology#decodeUri(substring(str(?articleurl),'31^^xsd:integer')),'_',' ')"/] v4 --o bind1 bind1 --as--o v5