Dear All,

In my local virtuoso server, for graph <http://dbpedia.org>, I am trying to
execute simple query like

select *
from   <http://dbpedia.org>
where {<http://dbpedia.org/resource/If--> ?p ?o};

>From isql-vt (SQL command prompt), I can not execute.
Since subject positioned resource holds double dash (--) (see above), it
might consider this double dash as a comment. So can not execute.

I tried the same query with Jena (Version 2.6.4), it also throws error like
:


Exception in thread "main" com.hp.hpl.jena.query.QueryParseException:
Encountered " <IRIref> "<http://dbpedia.org/resource/If--> "" at line 1,
column 18.
Was expecting one of:
    <VAR1> ...
    <VAR2> ...
    "(" ...
    "*" ...

    at
com.hp.hpl.jena.sparql.lang.ParserSPARQL11.perform(ParserSPARQL11.java:87)
    at
com.hp.hpl.jena.sparql.lang.ParserSPARQL11.parse(ParserSPARQL11.java:40)
    at com.hp.hpl.jena.query.QueryFactory.parse(QueryFactory.java:132)
    at com.hp.hpl.jena.query.QueryFactory.create(QueryFactory.java:69)
    at com.hp.hpl.jena.query.QueryFactory.create(QueryFactory.java:40)
    at tempQueryGen.test.simpleQuery(test.java:32)
    at tempQueryGen.test.main(test.java:70)



Interestingly, from Vrituoso web console (i.e.,
http://localhost:8890/conductor/ ), I can execute and get result.
Please share your idea on executing this double dash resource-based query
in Jena





-- 

*Md Mizanur Rahoman*
PhD Student
The Graduate University for Advanced Studies
National Institute of Informatics
2-1-2 Hitotsubashi, Chiyoda-ku,
Tokyo 101-8430, Japan.
Cell # +81-80-4076-9044
email: [email protected]
Web: http://www.nii.ac.jp/en/

Reply via email to