We are working with Apache Jena Fuseki.
If we unload graphA and graphB
SELECT (COUNT(*) as ?count) FROM <graphA> FROM <graphB> WHERE { ?s ?p ?o . }
gives 100
If we load triples in A and B by default
SELECT (COUNT(*) as ?count) WHERE { ?s ?p ?o . }
gives 200
It seems that there is no conclusion about what happens between the graph and the graph in the FROM example?
How do we fix this?
Found Reasoning with Fuseki, TDB and named graphs? but don't understand if this is the same problem.
Sample data: Graph A:
Mdworking:Measure a owl:Class ; mdmm:elementName "Measure" .
Chart B:
Mddemobank:Account_Balance a owl:Class ; rdfs:subClassOf Mdworking:Measure ; mdmm:elementName "Account_Balance" . Mddemobank:Sub_Account_Balance a owl:Class ; rdfs:subClassOf Mddemobank:Account_Balance ; mdmm:elementName "Sub_Account_Balance" .
Query:
SELECT ?subject ?predicate ?object FROM <A> FROM <B> WHERE { ?subject ?predicate ?object }
does not give output Mddemobank: Sub_Account_Balance subClassOf Mdworking: Measure
I tried the request
SELECT * { { ?s ?p ?o } UNION { GRAPH ?g { ?s ?p ?o } } }
which returns triples from A, B and by default, but does not display the derived triplets.
Environment:
* Tested version 2.6.0 on Ubuntu * Tested version 3.4.0. on Windows 10 * Loaded the test files using the browser
Here is the assembler file
@prefix : <http://base/
source share