DBpedia and SPARQL: accent query not working

So, I tried a lot of different things and looked for a solution, but no luck ...

My query is SPARQL

    PREFIX dbp: <http://dbpedia.org/resource/>
    PREFIX dbpedia2: <http://dbpedia.org/property/>


   SELECT ?currentclub
   WHERE {
      dbp:".$term." dbpedia2:currentclub ?currentclub . 
      FILTER langMatches(lang(?currentclub), 'en')
   }

When $ term means something with an accent in the name, it gets all the hangs and results are not given. I tried a bunch of different things, but just can't get them to work. I hope for help.

thank

Edit

I use PHP and curl up. This is what I downloaded and modified for my needs ... here is the part where he communicates with dbpedia.

$searchUrl = 'http://dbpedia.org/sparql?'
      .'query='.urlencode($query)
      .'&format='.$format;

The $ request was sent above, and the format used is json.

Edit 2

Here is the source code of what I'm using. https://gist.github.com/380379 , maybe looking at the full code will give you a better idea of ​​what's wrong.

, "utf8_unicode_ci", .

+5
2

2 :

  • QName prefix:"something", . - ,
  • , , , UTF-8?
    , . , , escape- \u0000, 0000 - UTF-8 . QName

Edit

1, , apparant, PHP, dud SPARQL

, , . , , , URI , QName:

 $query =
   "PREFIX dbp: <http://dbpedia.org/resource/>
PREFIX dbp2: <http://dbpedia.org/ontology/>
SELECT ?abstract
WHERE {
<http://dbpedia.org/resource/".$term."> dbp2:abstract ?abstract .
FILTER langMatches(lang(?abstract), 'en')
}";

, - , .

, - (), .

+2

, -- (), :

select distinct ?p ?o  where {
  <http://dbpedia.org/resource/%C3%8Ele-de-France_(region)> ?p ?o
}

, '' char UTF-8, ,% C3% 8E, : http://www.utf8-chartable.de/

PHP, UTF-8, .

+2

All Articles