Hi Fabiano,

A prefix declarations replaces any previous declaration. Tohave seval declarations i n use, give them different names:


PREFIX o: <http://dbpedia.org/ontology/>
PREFIX p: <http://dbpedia.org/property/>
PREFIX r: <http://dbpedia.org/resource/>

    Andy


On 29/07/16 16:51, Fabiano Luz wrote:
Hi guys I would like to know if I can have a blank prefixes for most of
one resources at same time. The way that I did doesn't work. It always
gets the last prefix with the same name.

Can someone help me?

 String sparqlQueryString = " PREFIX : <http://dbpedia.org/ontology/> "
                              + " PREFIX : <http://dbpedia.org/property/> "
                              + " PREFIX : <http://dbpedia.org/resource/> "
                              + " SELECT ?abstract WHERE "
                              +" { :Dilma_Rousseff :birthName ?abstract
. } ";

--
Phd. in Computer Science



Reply via email to