Formatting UTF-8 in SPARQL

How can I say "SPARQL" that churchname is in UTF-8 formatting? because the answer is similar: Pražský hrad

PREFIX lgv: <http://linkedgeodata.org/vocabulary#>
PREFIX abc: <http://dbpedia.org/class/yago/>
SELECT ?churchname
WHERE
 {
<http://dbpedia.org/resource/Prague> geo:geometry ?gm .
 ?church a lgv:castle .
 ?church geo:geometry ?churchgeo .
 ?church lgv:name ?churchname .
FILTER ( bif:st_intersects (?churchgeo,?gm, 10))
 }
GROUP BY ?churchname
ORDER BY ?churchname

+3
source share
1 answer

Bit is not an answer, I'm afraid: in SPARQL there is no way to do this. SPARQL works with character data (not bytes), so encoding is not something that is associated with it.

There are several reasons why you may have this problem. First, you may not handle the results correctly. Check if the original results really have an encoding problem.

, , , , , , , , .

:

  • , SPARQL . , , , , - (, , ) .

  • , . , ,

+5

Source: https://habr.com/ru/post/1741849/


All Articles