Escape special characters in SPARQL queries

I'm trying to query dpbedia to get wikipedia article categories using Jena and ARQ
For example:

select ?category { dbpedia:ARTICLE_NAME dcterms:subject ?category }  

Here is an example of a working query
SPARQL results

The problem is that there are special characters in ARTICLE_NAME, for example, "Parma_F.C.", Where there is a ".".

select ?category { dbpedia:Parma_F.C. dcterms:subject ?category } 

ERROR

So, I would like to ask you if anyone has a solution for this.
thanks in advance

+4
source share
1 answer

dbpedia:Parma_F.C. - , URI. SPARQL 1.1.

. SPARQL, , . - :

 dbpedia:Parma_F.C\. 

, , URI. dbpedia http://dbpedia.org/resource/, URI SPARQL :

 <http://dbpedia.org/resource/Parma_F.C.>

:

select ?category { <http://dbpedia.org/resource/Parma_F.C.> dcterms:subject ?category } 
+7

All Articles