Closed mhoangvslev closed 1 year ago
Problem still persist with the correct provenance.sparql.opt
:
experiments/bsbm/benchmark/evaluation/ideal/q05/instance_8/batch_0/provenance.csv
)QueryRoot
Slice (limit=5)
Distinct
Projection
ProjectionElemList
ProjectionElem "product"
ProjectionElem "localProductLabel"
(...)
NJoin
ExclusiveGroup
ExclusiveStatement
Var (name=localProduct)
Var (name=_const_9285ccfc_uri, value=http://www.w3.org/2000/01/rdf-schema#label, anonymous)
Var (name=localProductLabel)
StatementSource (id=sparql_www.ratingsite2.fr_, type=REMOTE)
ExclusiveStatement
Var (name=localProduct)
Var (name=_const_e248e789_uri, value=http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/productFeature, anonymous)
Var (name=localProdFeature)
StatementSource (id=sparql_www.ratingsite2.fr_, type=REMOTE)
ExclusiveStatement
Var (name=localProduct)
Var (name=_const_ac29ec86_uri, value=http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/productPropertyNumeric1, anonymous)
Var (name=simProperty1)
StatementSource (id=sparql_www.ratingsite2.fr_, type=REMOTE)
ExclusiveStatement
Var (name=localProduct)
Var (name=_const_ac29ec87_uri, value=http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/productPropertyNumeric2, anonymous)
Var (name=simProperty2)
StatementSource (id=sparql_www.ratingsite2.fr_, type=REMOTE)
ExclusiveStatement
Var (name=localProduct)
Var (name=_const_9f24f144_uri, value=http://www.w3.org/2002/07/owl#sameAs, anonymous)
Var (name=product)
StatementSource (id=sparql_www.ratingsite2.fr_, type=REMOTE)
ExclusiveStatement
Var (name=localProdFeature)
Var (name=_const_9f24f144_uri, value=http://www.w3.org/2002/07/owl#sameAs, anonymous)
Var (name=prodFeature)
StatementSource (id=sparql_www.ratingsite2.fr_, type=REMOTE)
FilterExpr
Compare (!=)
ValueConstant (value=http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/Product128382)
Var (name=product)
StatementSourcePattern
Var (name=localProductXYZ)
Var (name=_const_9f24f144_uri, value=http://www.w3.org/2002/07/owl#sameAs, anonymous)
Var (name=_const_8c12c1a3_uri, value=http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/Product128382, anonymous)
StatementSource (id=sparql_www.ratingsite6.fr_, type=REMOTE)
StatementSource (id=sparql_www.vendor5.fr_, type=REMOTE)
StatementSourcePattern
Var (name=localProductXYZ)
Var (name=_const_e248e789_uri, value=http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/productFeature, anonymous)
Var (name=localProdFeatureXYZ)
StatementSource (id=sparql_www.ratingsite6.fr_, type=REMOTE)
StatementSource (id=sparql_www.vendor5.fr_, type=REMOTE)
StatementSourcePattern
Var (name=localProdFeatureXYZ)
Var (name=_const_9f24f144_uri, value=http://www.w3.org/2002/07/owl#sameAs, anonymous)
Var (name=prodFeature)
StatementSource (id=sparql_www.ratingsite6.fr_, type=REMOTE)
StatementSource (id=sparql_www.vendor5.fr_, type=REMOTE)
StatementSourcePattern
Var (name=localProductXYZ)
Var (name=_const_ac29ec86_uri, value=http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/productPropertyNumeric1, anonymous)
Var (name=origProperty1)
StatementSource (id=sparql_www.ratingsite6.fr_, type=REMOTE)
StatementSource (id=sparql_www.vendor5.fr_, type=REMOTE)
StatementSourcePattern
Var (name=localProductXYZ)
Var (name=_const_ac29ec87_uri, value=http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/productPropertyNumeric2, anonymous)
Var (name=origProperty2)
StatementSource (id=sparql_www.ratingsite6.fr_, type=REMOTE)
StatementSource (id=sparql_www.vendor5.fr_, type=REMOTE)
www.ratingsite2.fr
, which is correct. The each tp of bgp2 is evaluated on ratingsite6
and vendor5
which is also correct.ratingsite6
and vendor5
yield results.while (res.hasNext())
LIMIT=1
produce resultsThe experiments/bsbm/benchmark/evaluation/ideal/q05/instance_5/batch_0/provenance.csv
has similar exclusive group pattern, but for bgp2 and it works
For now, temporarily disable the optimisation query (#18 ) to see if the issue persists. If it does, then the issue most likely caused by query.py/unwrap()
The command below will crash with NullPointerException
Hypothesis
q05
was rewritten to take into account join order optimization (#18). The result isinjected.sparql.opt
belowPREFIX rdfs: http://www.w3.org/2000/01/rdf-schema# PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# PREFIX bsbm: http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/ PREFIX owl: http://www.w3.org/2002/07/owl#
SELECT DISTINCT ?product ?localProductLabel WHERE { {
const bsbm:Product92877
}
ORDER BY ?localProductLabel
LIMIT 5