GDD-Nantes / FedShop

Code for FedShop: The Federated Shop Benchmark
GNU General Public License v3.0
8 stars 0 forks source link

Evaluation on FedX doens't give the same result as Virtuoso #20

Closed mhoangvslev closed 1 year ago

mhoangvslev commented 1 year ago

Given the experiments/bsbm/benchmark/generation/q05/instance_4/injected.sparql.opt:

DEFINE sql:select-option "order"

PREFIX 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:Product133677
        ?localProductXYZ owl:sameAs bsbm:Product133677  .
        ?localProductXYZ bsbm:productFeature ?localProdFeatureXYZ . 
        ?localProdFeatureXYZ owl:sameAs ?prodFeature .
        ?localProductXYZ bsbm:productPropertyNumeric1 ?origProperty1  .
        ?localProductXYZ bsbm:productPropertyNumeric2 ?origProperty2  .
    } .

    {
        ?localProduct owl:sameAs ?product  .
        FILTER (bsbm:Product133677 != ?product)        
        ?localProduct rdfs:label ?localProductLabel  .
        ?localProduct bsbm:productFeature ?localProdFeature  .
        ?localProdFeature owl:sameAs ?prodFeature .
        ?localProduct bsbm:productPropertyNumeric1 ?simProperty1  .
        ?localProduct bsbm:productPropertyNumeric2 ?simProperty2  .    
    } .

    # Values are pre-determined because we knew the boundaries from the normal distribution
    FILTER(?simProperty1 < (?origProperty1 + 20) && ?simProperty1 > (?origProperty1 - 20))
    FILTER(?simProperty2 < (?origProperty2 + 70) && ?simProperty2 > (?origProperty2 - 70))

}
# ORDER BY ?localProductLabel
LIMIT 5
product localProductLabel
http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/Product97476 befogs
http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/Product180800 directs
http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/Product156288 overhauls
http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/Product99042 vesper's
http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/Product74631 piped
product localProductLabel
http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/Product97476 befogs
http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/Product180800 directs
http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/Product156288 overhauls
http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/Product99042 vesper's
http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/Product97088 witness's

Diagnosis:

mhoangvslev commented 1 year ago

Hypotheses:

mhoangvslev commented 1 year ago

In snakefile, I specify the retries: 1 and the problem doesn't re-appear for this q05 of batch 0. Maybe next batch?

mhoangvslev commented 1 year ago
mhoangvslev commented 1 year ago

Seems okay so far...

mhoangvslev commented 1 year ago

For it to work, @momo54 suggested using ORDER BY with every projected variable. It works.