I was asked to do an experiment with Virtuoso. It looks to me as if
ARQ mapped + to (), and then Virtuoso, consistent with its rather old
SPARQL dialect, rejected (). Is there any way to tell ARQ what's what?
Or is this ipso-facto a bug in the Virtuoso Jena driver.

2012-01-22 12:58:30,042
com.basistech.jdd.DocumentDatabaseClientFactory  - JDD ping
successful: http://localhost:4460/documentDatabase
Exception in thread "main" com.hp.hpl.jena.shared.JenaException: Can
not create QueryIterator.:virtuoso.jdbc4.VirtuosoException: SQ074:
Line 12: SP030: SPARQL compiler, line 10: syntax error at '(' before
'rdfs:subPropertyOf'
        at virtuoso.jena.driver.VirtuosoQueryEngine.eval(Unknown Source)
        at 
com.hp.hpl.jena.sparql.engine.QueryEngineBase.evaluate(QueryEngineBase.java:138)
        at 
com.hp.hpl.jena.sparql.engine.QueryEngineBase.createPlan(QueryEngineBase.java:109)
        at 
com.hp.hpl.jena.sparql.engine.QueryEngineBase.getPlan(QueryEngineBase.java:97)
        at 
virtuoso.jena.driver.VirtuosoQueryEngine$VirtQueryEngineFactory.create(Unknown
Source)
        at 
com.hp.hpl.jena.sparql.engine.QueryExecutionBase.getPlan(QueryExecutionBase.java:266)
        at 
com.hp.hpl.jena.sparql.engine.QueryExecutionBase.startQueryIterator(QueryExecutionBase.java:243)
        at 
com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execResultSet(QueryExecutionBase.java:248)
        at 
com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execSelect(QueryExecutionBase.java:94)



PREFIX rex:   <http://jug.basistech.com/2011/01/rex-entity#>
PREFIX rdfs:  <http://www.w3.org/2000/01/rdf-schema#>

# retrieve the URI for each defined relationship
SELECT DISTINCT ?r
WHERE {
  ?r rdfs:subPropertyOf+ rex:relationship .
}

Reply via email to