[ 
https://issues.apache.org/jira/browse/JENA-707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14016608#comment-14016608
 ] 

Rob Vesse edited comment on JENA-707 at 6/3/14 3:29 PM:
--------------------------------------------------------

I can't reproduce this on OS X 10.9.3 (and I have multiple hyphens in my paths)

One thing I note is that you have {{tdb:unionDefaultGraph}} set to true, 
depending on your queries (which you haven't shown) then empty results would 
actually be the expected behaviour.

For example if you have all your data in the default graph and no named graphs 
then a query like the following:
{noformat}
SELECT * WHERE { ?s ?p ?o }
{noformat}

Would indeed return an empty result since you are actually querying the union 
of all named graphs (which is empty) thus an empty result is expected behaviour.


was (Author: rvesse):
I can't reproduce this on OS X 10.9.3 (and I have multiple hyphens in my paths)

One thing I note is that you have {{tdb:unionDefaultGraph}} set to true, 
depending on your queries (which you haven't shown) then empty results would 
actually be the expected behaviour.

For example if you have all your data in the default graph and no named graphs 
then a query like {{SELECT * WHERE { ?s ?p ?o } }} would indeed return an empty 
result since you are actually querying the union of all named graphs (which is 
empty) thus an empty result is expected behaviour.

> Hyphens in tdb:location path cause dataset querys to return empty resultsets 
> when using TDBFactory
> --------------------------------------------------------------------------------------------------
>
>                 Key: JENA-707
>                 URL: https://issues.apache.org/jira/browse/JENA-707
>             Project: Apache Jena
>          Issue Type: Bug
>    Affects Versions: Jena 2.11.1
>         Environment: OSX 10.9.3 (Mavericks)
>            Reporter: Rick Moynihan
>            Priority: Minor
>
> When using the Jena API and TDBFactory.assembleDataset("config.ttl") if the 
> storage location path contains a hyphen it prevents querying at least via 
> QueryExecutionFactory.
> e.g. the following Assembler config fails, causing all queries to return 
> empty resultsets:
> {noformat}
> @prefix tdb:     <http://jena.hpl.hp.com/2008/tdb#> .
> @prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
> @prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
> @prefix ja:      <http://jena.hpl.hp.com/2005/11/Assembler#> .
> [] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .
> tdb:DatasetTDB  rdfs:subClassOf  ja:RDFDataset .
> tdb:GraphTDB    rdfs:subClassOf  ja:Model .
> <#live> rdf:type      tdb:DatasetTDB ;
>       tdb:location "quad-store/live" ;  # change to suit your local 
> installation
>       ja:context [ ja:cxtName "arq:queryTimeout" ;  ja:cxtValue "10000,10000" 
> ] ;
>       tdb:unionDefaultGraph true ;
>       .
> {noformat}
> But changing tdb:location to "quadstore/live" works.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to