Hi Benson

What version of Virtuoso is this?

OpenLink have been quite slow to move from their proprietary SPARQL extensions 
to standardized SPARQL 1.1 syntax.  They never supported any property path 
syntax in the past and have been somewhat reluctant to proceed too fast with 
implementing new SPARQL 1.1 features arguing that they don't want to give 
'standard' features to users that they then have to later remove/alter (which 
is ironic given their quantity of proprietary extensions)

Have you tried checking with OpenLink about which versions (if any) support 
property paths? Their mailing list for the open source version is 
[email protected]

Rob

On Jan 22, 2012, at 10:10 AM, Benson Margulies wrote:

> 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