You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Rick Moynihan (JIRA)" <ji...@apache.org> on 2014/06/03 14:48:01 UTC

[jira] [Updated] (JENA-707) Hyphens in tdb:location path prevent dataset querying when using TDBFactory

     [ https://issues.apache.org/jira/browse/JENA-707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Moynihan updated JENA-707:
-------------------------------

    Description: 
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:

{quote}
@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#> .

# add more services here ^^

[] 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
      # Query timeout on this dataset (1s, 1000 milliseconds)
     ja:context [ ja:cxtName "arq:queryTimeout" ;  ja:cxtValue "10000,10000" ] ;
      tdb:unionDefaultGraph true ;
      .
{quote}

But changing tdb:location to "quadstore/live" works.

  was:
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:

@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#> .

# add more services here ^^

[] 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
      # Query timeout on this dataset (1s, 1000 milliseconds)
     ja:context [ ja:cxtName "arq:queryTimeout" ;  ja:cxtValue "10000,10000" ] ;
      tdb:unionDefaultGraph true ;
      .


But changing tdb:location to "quadstore/live" works.


> Hyphens in tdb:location path prevent dataset querying 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:
> {quote}
> @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#> .
> # add more services here ^^
> [] 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
>       # Query timeout on this dataset (1s, 1000 milliseconds)
>      ja:context [ ja:cxtName "arq:queryTimeout" ;  ja:cxtValue "10000,10000" ] ;
>       tdb:unionDefaultGraph true ;
>       .
> {quote}
> But changing tdb:location to "quadstore/live" works.



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