You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using CSPARQL-ReadyToGoPack-0.9.6 I get a parsing error when I include comments in queries. This query works fine:
REGISTER QUERY ex AS
SELECT *
FROM STREAM <http://org.ex#stream> [RANGE 5s STEP 1s]
WHERE {
?s ?p ?o .
}
while this one gives an error:
# Some comment
REGISTER QUERY ex AS
SELECT *
FROM STREAM <http://org.ex#stream> [RANGE 5s STEP 1s]
WHERE {
?s ?p ?o .
}
eu.larkc.csparql.core.new_parser.ParseException: Encountered " <SYMBOL> "# "" at line 1, column 1.
Was expecting:
"register query " ...
at eu.larkc.csparql.core.new_parser.CsparqlParser.generateParseException(CsparqlParser.java:1517)
at eu.larkc.csparql.core.new_parser.CsparqlParser.jj_consume_token(CsparqlParser.java:1402)
at eu.larkc.csparql.core.new_parser.CsparqlParser.RegisterClause(CsparqlParser.java:205)
at eu.larkc.csparql.core.new_parser.CsparqlParser.Query(CsparqlParser.java:41)
at eu.larkc.csparql.core.new_parser.CsparqlParser.createAndParse(CsparqlParser.java:36)
at eu.larkc.csparql.core.new_parser.utility_files.CSparqlTranslator.translate(CSparqlTranslator.java:51)
at eu.larkc.csparql.core.engine.CsparqlEngineImpl.registerQuery(CsparqlEngineImpl.java:298)
at org.ecare.example.HelloEcare.main(HelloEcare.java:59)
Exception in thread "main" java.lang.NullPointerException
at eu.larkc.csparql.core.engine.CsparqlEngineImpl.registerQuery(CsparqlEngineImpl.java:305)
at org.ecare.example.HelloEcare.main(HelloEcare.java:59
The text was updated successfully, but these errors were encountered:
Using CSPARQL-ReadyToGoPack-0.9.6 I get a parsing error when I include comments in queries. This query works fine:
while this one gives an error:
The text was updated successfully, but these errors were encountered: