What is the difference of these two scenarios?

1. a dataset with all "s p o g" quads loaded into the dataset, with this 
configuration

<#dataset> rdf:type tdb2:DatasetTDB2 ;
    tdb2:location "TDB2" ;
    tdb2:unionDefaultGraph true .


2. a dataset where each graph is in its own folder, with this configuration

<#dataset> rdf:type ja:RDFDataset ;
     ja:namedGraph
        [ ja:graphName      <http://example.org/g1> ;
          ja:graph          <#g1> ] ;
     ja:namedGraph
        [ ja:graphName      <http://example.org/g2> ;
          ja:graph          <#g2> ] ;
     .

<#g1> rdf:type tdb:GraphTDB2 ;
    tdb2:location "DB-1" .

<#g2> rdf:type tdb:GraphTDB2 ;
    tdb2:location "DB-2" .


- Is there any performance hit with the second method?
- With the second method, is it still possible to have the default union graph 
of all single graphs?
- I tried to query Fuseki with the second method:
    - This query works: select ?g where { graph ?g {} }
    - This query returns "Error 500: Not in a transaction":
      select ?s from <http://example.org/g1> where { ?s ?p ?o } limit 1

Reply via email to