Experiment on Small Heterogeneous Datasources
This experiments are made following this details.
Methods Comparison
Total time
It is the total query answering time.
The materialization (MATREF) takes 2min6s (126 082ms) to compute and contains 2 049 385 triples. The saturated materialization (MATSAT) takes 4min35s (275 126ms) to compute and contains 3 395 853 triples.
Main Statistics on Queries
index | Q01 | Q01a | Q01b | Q02 | Q02a | Q02b | Q02c | Q03 | Q04 | Q07 | Q07a | Q09 | Q10 | Q13 | Q13a | Q13b | Q14 | Q16 | Q19 | Q19a | Q20 | Q20a | Q20b | Q20c | Q21 | Q22 | Q22a | Q23 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NTRI | 5 | 5 | 5 | 6 | 6 | 6 | 6 | 5 | 2 | 3 | 3 | 1 | 3 | 4 | 4 | 4 | 3 | 4 | 9 | 9 | 11 | 11 | 11 | 11 | 3 | 4 | 4 | 7 |
NREF | 7 | 21 | 175 | 21 | 49 | 147 | 1225 | 525 | 1 | 5 | 19 | 7 | 670 | 28 | 84 | 700 | 1 | 25 | 63 | 147 | 21 | 63 | 525 | 1225 | 670 | 2 | 40 | 192 |
NANS | 1272 | 4376 | 22738 | 16 | 56 | 174 | 1342 | 19 | 91 | 2 | 3 | 5617 | 9 | 13190 | 43157 | 330142 | 56198 | 8114 | 2015 | 3515 | 0 | 236 | 2312 | 7564 | 1085 | 28 | 434 | 25803 |
Rewritings Processing Time
Rewritings processing is the part of query answering that concerns only rewriting building and rewriting optimization. It doesn't includes the query plan optimization and evaluation.
Query Plan Processing Time
Query plan processing time are the sum of query plan optimization and query plan evaluation. Since the two method returns minimal equivalent rewriting set, we expect that there is no time different between the two method at this step.
Reformulation Based Method (REW-CA
)
Raw Statistics
INPUT | NANS | NTRI | NREF | NREW | NCLASH | NCOVER | TREF | TREW | TCLASH | TCOVER | TCORE | TOP | TQEV | TTOTAL |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Q01 | 1272.0 | 5.0 | 7.0 | 8.0 | 6.0 | 2.0 | 0.2 | 30.0 | 0.0 | 0.6 | 15.0 | 1.2 | 33.6 | 80.6 |
Q01a | 4376.0 | 5.0 | 21.0 | 16.0 | 12.0 | 4.0 | 0.4 | 85.4 | 0.0 | 1.0 | 21.4 | 1.8 | 94.8 | 204.8 |
Q01b | 22738.0 | 5.0 | 175.0 | 128.0 | 96.0 | 32.0 | 2.0 | 704.8 | 0.6 | 9.0 | 171.6 | 12.4 | 571.4 | 1471.8 |
Q02 | 16.0 | 6.0 | 21.0 | 16.0 | 12.0 | 4.0 | 0.4 | 406.8 | 0.2 | 0.8 | 21.6 | 2.0 | 75.4 | 507.2 |
Q02a | 56.0 | 6.0 | 49.0 | 32.0 | 24.0 | 8.0 | 0.8 | 952.6 | 0.6 | 3.6 | 44.2 | 4.2 | 150.8 | 1156.8 |
Q02b | 174.0 | 6.0 | 147.0 | 64.0 | 48.0 | 16.0 | 2.6 | 2870.0 | 0.8 | 5.6 | 92.2 | 7.8 | 405.2 | 3384.2 |
Q02c | 1342.0 | 6.0 | 1225.0 | 512.0 | 384.0 | 128.0 | 28.8 | 24488.2 | 6.0 | 64.0 | 708.8 | 63.4 | 3272.2 | 28631.4 |
Q03 | 19.0 | 5.0 | 525.0 | 128.0 | nan | 64.0 | 8.0 | 7179.4 | 1.8 | 43.8 | 1019.6 | 77.8 | 174.8 | 8505.2 |
Q04 | 91.0 | 2.0 | 1.0 | 8.0 | 6.0 | 2.0 | 0.2 | 2.6 | 0.0 | 0.0 | 1.2 | 0.6 | 6.8 | 11.4 |
Q05 | 56200.0 | 4.0 | 1.0 | 8.0 | 7.0 | 1.0 | 0.2 | 2.2 | 0.0 | 0.0 | 3.2 | 0.8 | 852.2 | 858.6 |
Q05a | 33089.0 | 4.0 | 3.0 | 2.0 | nan | 2.0 | 0.2 | 26.2 | 0.0 | 0.2 | 1.6 | 1.2 | 5294.6 | 5324.0 |
Q05b | 50958.0 | 4.0 | 7.0 | 4.0 | nan | 4.0 | 0.4 | 66.8 | 0.0 | 0.0 | 3.4 | 1.8 | 10525.0 | 10597.4 |
Q06 | 52208.0 | 3.0 | 5.0 | 2.0 | nan | 2.0 | 0.2 | 22.0 | 0.0 | 0.2 | 4.2 | 1.2 | 218.8 | 246.6 |
Q07 | 2.0 | 3.0 | 5.0 | 194.0 | nan | 194.0 | 0.4 | 39.6 | 0.0 | 14.0 | 16.4 | 44.4 | 1378.4 | 1493.2 |
Q07a | 3.0 | 3.0 | 19.0 | 776.0 | nan | 388.0 | 0.6 | 160.0 | 0.8 | 125.6 | 36.4 | 113.0 | 2828.4 | 3264.8 |
Q08 | 56200.0 | 3.0 | 1.0 | 1.0 | nan | 1.0 | 0.0 | 2.4 | 0.0 | 0.0 | 5.0 | 0.4 | 539.6 | 547.4 |
Q09 | 5617.0 | 1.0 | 7.0 | 2.0 | nan | 2.0 | 0.2 | 13.2 | 0.2 | 0.0 | 3.8 | 0.6 | 20.0 | 38.0 |
Q10 | 9.0 | 3.0 | 670.0 | 786.0 | nan | 586.0 | 5.4 | 4541.4 | 1.4 | 220.4 | 61.4 | 265.2 | 4350.2 | 9445.4 |
Q12 | 116.0 | 5.0 | 2.0 | 8.0 | 7.0 | 1.0 | 0.6 | 23.0 | 0.0 | 0.0 | 1.8 | 0.8 | 23.6 | 49.8 |
Q12a | 720.0 | 5.0 | 6.0 | 16.0 | 14.0 | 2.0 | 0.2 | 65.6 | 0.0 | 0.0 | 3.6 | 1.0 | 136.6 | 207.0 |
Q12b | 2327.0 | 5.0 | 14.0 | 32.0 | 28.0 | 4.0 | 0.2 | 152.6 | 0.0 | 0.0 | 6.8 | 2.0 | 339.8 | 501.4 |
Q13 | 13190.0 | 4.0 | 28.0 | 25.0 | nan | 21.0 | 0.8 | 137.0 | 0.0 | 15.6 | 44.4 | 14.4 | 393.6 | 605.8 |
Q13a | 43157.0 | 4.0 | 84.0 | 50.0 | nan | 42.0 | 0.8 | 436.0 | 0.2 | 32.6 | 90.4 | 28.4 | 1139.0 | 1727.4 |
Q13b | 330142.0 | 4.0 | 700.0 | 400.0 | nan | 336.0 | 6.2 | 3350.6 | 1.4 | 324.6 | 683.4 | 264.4 | 9239.4 | 13870.0 |
Q14 | 56198.8 | 3.0 | 1.0 | 1.0 | nan | 1.0 | 0.2 | 10.2 | 0.0 | 0.0 | 4.2 | 0.0 | 1015.4 | 1030.0 |
Q15 | 28100.0 | 5.0 | 1.0 | 4.0 | 3.0 | 1.0 | 0.6 | 8.2 | 0.0 | 0.0 | 4.2 | 1.4 | 220.6 | 235.0 |
Q16 | 8114.0 | 4.0 | 25.0 | 16.0 | nan | 16.0 | 0.2 | 139.6 | 0.0 | 0.2 | 53.6 | 5.8 | 194.6 | 394.0 |
Q17 | 52208.0 | 2.0 | 5.0 | 2.0 | nan | 2.0 | 0.2 | 17.2 | 0.0 | 0.4 | 3.0 | 0.8 | 201.0 | 222.6 |
Q18 | 56200.0 | 4.0 | 1.0 | 4.0 | 3.0 | 1.0 | 0.2 | 7.4 | 0.0 | 0.0 | 6.8 | 0.0 | 1101.0 | 1115.4 |
Q19 | 2015.0 | 9.0 | 63.0 | 56.0 | nan | 16.0 | 1.8 | 2541.2 | 0.4 | 111.2 | 124.0 | 10.2 | 569.2 | 3358.0 |
Q19a | 3515.0 | 9.0 | 147.0 | 112.0 | nan | 32.0 | 4.2 | 6115.0 | 1.0 | 230.8 | 241.4 | 19.8 | 1136.0 | 7748.2 |
Q20 | 0.0 | 11.0 | 21.0 | 4.0 | nan | 4.0 | 2.0 | 1140.4 | 0.0 | 49.0 | 39.0 | 4.8 | 87.0 | 1322.2 |
Q20a | 236.0 | 11.0 | 63.0 | 8.0 | nan | 8.0 | 2.0 | 3383.2 | 0.8 | 97.4 | 76.6 | 8.6 | 262.4 | 3831.0 |
Q20b | 2312.0 | 11.0 | 525.0 | 64.0 | nan | 64.0 | 17.0 | 29207.2 | 4.0 | 805.0 | 626.2 | 61.2 | 2167.2 | 32887.8 |
Q20c | 7564.0 | 11.0 | 1225.0 | 128.0 | nan | 128.0 | 42.6 | 66268.6 | 4.8 | 1615.6 | 1230.0 | 130.0 | 4464.4 | 73756.0 |
Q21 | 1085.0 | 3.0 | 670.0 | 1060.0 | 566.0 | 385.0 | 4.8 | 689.4 | 2.4 | 103.2 | 51.4 | 111.4 | 4859.2 | 5821.8 |
Q22 | 28.0 | 4.0 | 2.0 | 2.0 | nan | 2.0 | 0.0 | 3.4 | 0.0 | 0.0 | 0.6 | 0.2 | 35.6 | 39.8 |
Q22a | 434.0 | 4.0 | 40.0 | 32.0 | nan | 32.0 | 0.4 | 39.0 | 0.2 | 0.4 | 4.4 | 4.4 | 573.6 | 622.4 |
Q23 | 25803.0 | 7.0 | 192.0 | 80.0 | 56.0 | 24.0 | 3.8 | 2325.0 | 0.8 | 10.6 | 33.8 | 12.6 | 1567.2 | 3953.8 |
Q23a | 38258.0 | 7.0 | 448.0 | 160.0 | 112.0 | 48.0 | 5.6 | 5312.4 | 1.4 | 22.0 | 72.4 | 26.4 | 2577.8 | 8018.0 |
Rewriting Numbers
Rewriting Processing Times
Query Plan Processing Times
Rewriting Based Method (REW-C
)
Raw Statistics
INPUT | NANS | NTRI | NREF | NREW | NCLASH | NCOVER | TREF | TREW | TCLASH | TCOVER | TCORE | TOP | TQEV | TTOTAL |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Q01 | 1272.0 | 5.0 | 1.0 | 8.0 | 6.0 | 2.0 | 0.2 | 32.4 | 0.0 | 0.4 | 13.6 | 1.4 | 38.6 | 86.6 |
Q01a | 4376.0 | 5.0 | 1.0 | 16.0 | 12.0 | 4.0 | 0.0 | 33.0 | 0.0 | 0.6 | 24.0 | 2.0 | 111.2 | 170.8 |
Q01b | 22738.0 | 5.0 | 1.0 | 128.0 | 96.0 | 32.0 | 0.2 | 34.2 | 0.4 | 4.8 | 189.8 | 11.8 | 629.4 | 870.6 |
Q02 | 16.0 | 6.0 | 1.0 | 16.0 | 12.0 | 4.0 | 0.0 | 48.0 | 0.2 | 0.6 | 24.2 | 2.6 | 74.6 | 150.2 |
Q02a | 56.0 | 6.0 | 1.0 | 32.0 | 24.0 | 8.0 | 0.0 | 47.0 | 0.0 | 1.2 | 45.6 | 4.2 | 156.6 | 254.6 |
Q02b | 174.0 | 6.0 | 1.0 | 64.0 | 48.0 | 16.0 | 0.2 | 46.2 | 0.0 | 2.4 | 101.8 | 7.8 | 460.2 | 618.6 |
Q02c | 1342.0 | 6.0 | 1.0 | 512.0 | 384.0 | 128.0 | 0.0 | 58.0 | 0.4 | 29.2 | 809.6 | 63.0 | 3532.2 | 4492.4 |
Q03 | 19.0 | 5.0 | 1.0 | 128.0 | nan | 64.0 | 0.2 | 39.0 | 0.2 | 24.0 | 1143.6 | 86.4 | 174.6 | 1468.0 |
Q04 | 91.0 | 2.0 | 1.0 | 8.0 | 6.0 | 2.0 | 0.0 | 6.2 | 0.0 | 0.0 | 1.2 | 0.4 | 8.0 | 15.8 |
Q05 | 56200.0 | 4.0 | 1.0 | 8.0 | 7.0 | 1.0 | 0.0 | 6.4 | 0.0 | 0.0 | 3.4 | 0.6 | 942.2 | 952.6 |
Q05a | 33089.0 | 4.0 | 1.0 | 2.0 | nan | 2.0 | 0.0 | 22.8 | 0.0 | 0.0 | 1.6 | 0.8 | 5595.4 | 5620.6 |
Q05b | 50958.0 | 4.0 | 1.0 | 4.0 | nan | 4.0 | 0.0 | 21.8 | 0.0 | 0.0 | 3.0 | 2.0 | 10985.2 | 11012.0 |
Q06 | 52208.0 | 3.0 | 1.0 | 2.0 | nan | 2.0 | 0.0 | 12.8 | 0.0 | 0.0 | 4.4 | 1.8 | 227.6 | 246.6 |
Q07 | 2.0 | 3.0 | 1.0 | 194.0 | nan | 194.0 | 0.0 | 31.2 | 0.2 | 17.0 | 19.0 | 48.8 | 1400.8 | 1517.0 |
Q07a | 3.0 | 3.0 | 1.0 | 388.0 | nan | 388.0 | 0.2 | 29.2 | 0.6 | 58.4 | 34.0 | 121.2 | 2878.8 | 3122.4 |
Q08 | 56200.0 | 3.0 | 1.0 | 1.0 | nan | 1.0 | 0.0 | 6.4 | 0.0 | 0.0 | 4.8 | 0.6 | 571.4 | 583.2 |
Q09 | 5617.0 | 1.0 | 1.0 | 2.0 | nan | 2.0 | 0.2 | 13.0 | 0.0 | 0.2 | 3.8 | 0.8 | 19.2 | 37.2 |
Q10 | 9.0 | 3.0 | 1.0 | 586.0 | nan | 586.0 | 0.2 | 76.2 | 0.4 | 168.2 | 67.4 | 268.2 | 4500.8 | 5081.4 |
Q12 | 116.0 | 5.0 | 2.0 | 8.0 | 7.0 | 1.0 | 28.0 | 47.2 | 0.2 | 0.0 | 1.8 | 0.8 | 24.4 | 102.4 |
Q12a | 720.0 | 5.0 | 2.0 | 16.0 | 14.0 | 2.0 | 27.8 | 50.0 | 0.2 | 0.0 | 4.2 | 1.0 | 154.2 | 237.4 |
Q12b | 2327.0 | 5.0 | 2.0 | 32.0 | 28.0 | 4.0 | 28.4 | 49.4 | 0.0 | 0.0 | 9.4 | 2.0 | 367.4 | 456.6 |
Q13 | 13190.0 | 4.0 | 16.0 | 25.0 | nan | 21.0 | 1.0 | 207.4 | 0.0 | 14.6 | 46.0 | 14.2 | 439.8 | 723.0 |
Q13a | 43157.0 | 4.0 | 16.0 | 50.0 | nan | 42.0 | 0.8 | 194.8 | 0.2 | 30.0 | 85.8 | 27.0 | 1241.0 | 1579.6 |
Q13b | 330142.0 | 4.0 | 16.0 | 400.0 | nan | 336.0 | 0.8 | 224.0 | 0.4 | 287.2 | 697.2 | 267.0 | 9692.0 | 11168.6 |
Q14 | 56198.2 | 3.0 | 1.0 | 1.0 | nan | 1.0 | 0.2 | 23.0 | 0.0 | 0.0 | 4.6 | 0.8 | 1096.0 | 1124.6 |
Q15 | 28100.0 | 5.0 | 1.0 | 4.0 | 3.0 | 1.0 | 0.2 | 17.8 | 0.0 | 0.0 | 4.2 | 1.4 | 217.6 | 241.2 |
Q16 | 8114.0 | 4.0 | 1.0 | 16.0 | nan | 16.0 | 0.2 | 17.4 | 0.0 | 0.2 | 59.8 | 5.6 | 198.0 | 281.2 |
Q17 | 52208.0 | 2.0 | 1.0 | 2.0 | nan | 2.0 | 0.0 | 12.0 | 0.0 | 0.2 | 4.2 | 0.6 | 198.6 | 215.6 |
Q18 | 56200.0 | 4.0 | 1.0 | 4.0 | 3.0 | 1.0 | 0.0 | 15.8 | 0.0 | 0.0 | 7.0 | 0.4 | 1163.2 | 1186.4 |
Q19 | 2015.0 | 9.0 | 1.0 | 56.0 | nan | 16.0 | 0.2 | 87.2 | 0.2 | 141.4 | 137.6 | 9.6 | 628.4 | 1004.6 |
Q19a | 3515.0 | 9.0 | 1.0 | 112.0 | nan | 32.0 | 0.2 | 92.4 | 0.4 | 280.0 | 276.8 | 19.8 | 1229.8 | 1899.4 |
Q20 | 0.0 | 11.0 | 1.0 | 4.0 | nan | 4.0 | 0.2 | 120.0 | 0.0 | 45.4 | 54.6 | 5.2 | 92.8 | 318.2 |
Q20a | 236.0 | 11.0 | 1.0 | 8.0 | nan | 8.0 | 0.0 | 113.0 | 0.0 | 89.2 | 92.0 | 8.6 | 302.4 | 605.2 |
Q20b | 2312.0 | 11.0 | 1.0 | 64.0 | nan | 64.0 | 0.0 | 126.2 | 0.4 | 718.8 | 752.4 | 66.6 | 2261.6 | 3926.0 |
Q20c | 7564.0 | 11.0 | 1.0 | 128.0 | nan | 128.0 | 0.0 | 121.6 | 0.4 | 1402.4 | 1392.4 | 141.8 | 4915.2 | 7973.8 |
Q21 | 1085.0 | 3.0 | 1.0 | 929.0 | 539.0 | 385.0 | 0.2 | 56.6 | 0.8 | 77.2 | 58.6 | 128.4 | 5049.4 | 5371.2 |
Q22 | 28.0 | 4.0 | 2.0 | 2.0 | nan | 2.0 | 0.2 | 9.6 | 0.0 | 0.0 | 0.2 | 0.6 | 38.2 | 48.8 |
Q22a | 434.0 | 4.0 | 24.0 | 32.0 | nan | 32.0 | 0.4 | 75.0 | 0.4 | 0.8 | 5.0 | 4.4 | 589.8 | 675.8 |
Q23 | 25803.0 | 7.0 | 64.0 | 80.0 | 56.0 | 24.0 | 669.8 | 1569.8 | 0.8 | 9.6 | 39.4 | 13.2 | 1651.6 | 3954.2 |
Q23a | 38258.0 | 7.0 | 64.0 | 160.0 | 112.0 | 48.0 | 730.4 | 1564.4 | 0.8 | 18.6 | 80.2 | 25.6 | 2682.8 | 5102.8 |
Rewriting Numbers
Rewriting Processing Times
Query Plan Processing Times
Queries
Queries are build by groups of Q, Qa, Qb … where Qb is always more general than Qa according to the ontology.
Q01<$label, $featureLabel, $value> :- triple($product, <rdfs:label>, $label), triple($product, <rdf:type>, <bsbm-int:ProductType110>), triple($product, <bsbm:productFeature>, $productFeature), triple($productFeature, <rdfs:label>, $featureLabel), triple($product, <bsbm:productPropertyNumeric>, $value); Q01a<$label, $featureLabel, $value> :- triple($product, <rdfs:label>, $label), triple($product, <rdf:type>, <bsbm-int:ProductType8>), triple($product, <bsbm:productFeature>, $productFeature), triple($productFeature, <rdfs:label>, $featureLabel), triple($product, <bsbm:productPropertyNumeric>, $value); Q01b<$label, $featureLabel, $value> :- triple($product, <rdfs:label>, $label), triple($product, <rdf:type>, <bsbm-int:ProductType4>), triple($product, <bsbm:productFeature>, $productFeature), triple($productFeature, <rdfs:label>, $featureLabel), triple($product, <bsbm:productPropertyNumeric>, $value); Q02<$label, $value, $country> :- triple($product, <rdfs:label>, $label), triple($product, <rdf:type>, <bsbm-int:ProductType110>), triple($product, <bsbm:productPropertyNumeric>, $value), triple($product, <bsbm:producer>, $producer), triple($producer,<bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType12>); Q02a<$label, $value, $country> :- triple($product, <rdfs:label>, $label), triple($product, <rdf:type>, <bsbm-int:ProductType110>), triple($product, <bsbm:productPropertyNumeric>, $value), triple($product, <bsbm:producer>, $producer), triple($producer,<bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType1>); Q02b<$label, $value, $country> :- triple($product, <rdfs:label>, $label), triple($product, <rdf:type>, <bsbm-int:ProductType8>), triple($product, <bsbm:productPropertyNumeric>, $value), triple($product, <bsbm:producer>, $producer), triple($producer,<bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType1>); Q02c<$label, $value, $country> :- triple($product, <rdfs:label>, $label), triple($product, <rdf:type>, <bsbm-int:ProductType2>), triple($product, <bsbm:productPropertyNumeric>, $value), triple($product, <bsbm:producer>, $producer), triple($producer,<bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType1>); Q03<$product1, $product2> :- triple($product1, <rdf:type>, <bsbm-int:ProductType12>), triple($product1, <bsbm:productPropertyNumeric>, "774"), triple($product1, <bsbm:producer>, $producer), triple($product2, <rdf:type>, <bsbm-int:ProductType2>), triple($product2, <bsbm:producer>, $producer); Q04<$vendor, $vendorLabel, $vendorHomepage> :- triple($vendor, <rdfs:label>, $vendorLabel), triple($vendor, <foaf:homepage>, $vendorHomepage); Q05<$offer, $offerURL, $vendor, $vendorLabel, $vendorHomepage> :- triple($offer, <bsbm:vendor>, $vendor), triple($offer, <bsbm:offerWebpage>, $offerURL), triple($vendor, <rdfs:label>, $vendorLabel), triple($vendor, <foaf:homepage>, $vendorHomepage); Q05a<$offer, $offerURL> :- triple($offer, <bsbm:vendor>, $vendor), triple($offer, <bsbm:offerWebpage>, $offerURL), triple($vendor, <bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType11>); Q05b<$offer, $offerURL> :- triple($offer, <bsbm:vendor>, $vendor), triple($offer, <bsbm:offerWebpage>, $offerURL), triple($vendor, <bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType1>); Q06<$review, $product, $rating> :- triple($review, <bsbm:reviewFor>, $product), triple($review, <http://purl.org/stuff/rev#reviewer>, $reviewer), triple($review, <bsbm:rating>, $rating); Q06a<$review, $product, $rating> :- triple($review, <bsbm:reviewFor>, $product), triple($review, <http://purl.org/stuff/rev#reviewer>, $reviewer), triple($review, <bsbm:rating>, $rating), triple($product, <bsbm:producer>, $producer), triple($producer,<bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType11>); Q06b<$review, $product, $rating> :- triple($review, <bsbm:reviewFor>, $product), triple($review, <http://purl.org/stuff/rev#reviewer>, $reviewer), triple($review, <bsbm:rating>, $rating), triple($product, <bsbm:producer>, $producer), triple($producer,<bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType2>); Q07<$country> :- triple($org, <rdf:type>, <foaf:Organization>), triple($org, <bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType222>); Q07a<$country> :- triple($org, <rdf:type>, <foaf:Organization>), triple($org, <bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType22>); Q08<$offer, $offerURL, $price, $deliveryDays> :- triple($offer, <bsbm:offerWebpage>, $offerURL), triple($offer, <bsbm:price>, $price), triple($offer, <bsbm:deliveryDays>, $deliveryDays); Q09<$product, $value> :- triple($product, <bsbm:productPropertyNumeric>, $value); Q10<$country, $agentType> :- triple($agent, <rdf:type>, $agentType), triple($agent, <bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType222>); Q10a<$country, $agentType> :- triple($agent, <rdf:type>, $agentType), triple($agent, <bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType22>); Q10b<$country, $agentType> :- triple($agent, <rdf:type>, $agentType), triple($agent, <bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType2>); Q11<$label, $p, $country> :- triple($x, <rdfs:label>, $label), triple($x, $p, $org), triple($org, <rdf:type>, <foaf:Organization>), triple($org, <bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType222>); Q12<$label, $p, $country> :- triple($x, <rdfs:label>, $label), triple($x, $p, $org), triple($p, <rdfs:range>, <foaf:Organization>), triple($org, <bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType222>); Q12a<$label, $p, $country> :- triple($x, <rdfs:label>, $label), triple($x, $p, $org), triple($p, <rdfs:range>, <foaf:Organization>), triple($org, <bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType21>); Q12b<$label, $p, $country> :- triple($x, <rdfs:label>, $label), triple($x, $p, $org), triple($p, <rdfs:range>, <foaf:Organization>), triple($org, <bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType1>); Q13<$offer, $prop, $value> :- triple($offer, <bsbm:product>, $product), triple($product, <rdf:type>, <bsbm-int:ProductType110>), triple($product, $prop, $value), triple($prop, <rdfs:domain>, <bsbm:Product>); Q13a<$offer, $prop, $value> :- triple($offer, <bsbm:product>, $product), triple($product, <rdf:type>, <bsbm-int:ProductType8>), triple($product, $prop, $value), triple($prop, <rdfs:domain>, <bsbm:Product>); Q13b<$offer, $prop, $value> :- triple($offer, <bsbm:product>, $product), triple($product, <rdf:type>, <bsbm-int:ProductType2>), triple($product, $prop, $value), triple($prop, <rdfs:domain>, <bsbm:Product>); Q14<$product, $p, $offer, $vendor> :- triple($product, <bsbm:producer>, $p), triple($offer, <bsbm:product>, $product), triple($offer, <bsbm:vendor>, $vendor); Q15<$review, $product, $label, $personName, $title> :- triple($product, <rdfs:label>, $label), triple($review, <bsbm:reviewFor>, $product), triple($review, <http://purl.org/stuff/rev#reviewer>, $person), triple($person, <foaf:name>, $personName), triple($review, <http://purl.org/dc/elements/1.1/title>, $title); Q16<$review, $product, $title, $text> :- triple($review, <bsbm:reviewFor>, $product), triple($product, <rdf:type>, <bsbm-int:ProductType2>), triple($review, <http://purl.org/dc/elements/1.1/title>, $title), triple($review, <http://purl.org/stuff/rev#text>, $text); Q17<$review, $product, $rating> :- triple($review, <bsbm:reviewFor>, $product), triple($review, <bsbm:rating>, $rating); Q18<$offer, $product, $label, $vendor, $price> :- triple($offer, <bsbm:product>, $product), triple($product, <rdfs:label>, $label), triple($offer, <bsbm:vendor>, $vendor), triple($offer, <bsbm:price>, $price); Q19<$offer, $offerURL, $price, $deliveryDays, $value> :- triple($offer, <bsbm:offerWebpage>, $offerURL), triple($offer, <bsbm:price>, $price), triple($offer, <bsbm:deliveryDays>, $deliveryDays), triple($offer, <bsbm:product>, $product), triple($product, <rdf:type>, <bsbm-int:ProductType8>), triple($product, <bsbm:productPropertyNumeric>, $value), triple($product, <bsbm:producer>, $producer), triple($producer,<bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType12>); Q19a<$offer, $offerURL, $price, $deliveryDays, $value> :- triple($offer, <bsbm:offerWebpage>, $offerURL), triple($offer, <bsbm:price>, $price), triple($offer, <bsbm:deliveryDays>, $deliveryDays), triple($offer, <bsbm:product>, $product), triple($product, <rdf:type>, <bsbm-int:ProductType8>), triple($product, <bsbm:productPropertyNumeric>, $value), triple($product, <bsbm:producer>, $producer), triple($producer,<bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType2>); Q19b<$offer, $offerURL, $price, $deliveryDays, $value> :- triple($offer, <bsbm:offerWebpage>, $offerURL), triple($offer, <bsbm:price>, $price), triple($offer, <bsbm:deliveryDays>, $deliveryDays), triple($offer, <bsbm:product>, $product), triple($product, <rdf:type>, <bsbm-int:ProductType3>), triple($product, <bsbm:productPropertyNumeric>, $value), triple($product, <bsbm:producer>, $producer), triple($producer,<bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType12>); Q20<$offer, $offerURL, $price, $deliveryDays, $value> :- triple($offer, <bsbm:offerWebpage>, $offerURL), triple($offer, <bsbm:price>, $price), triple($offer, <bsbm:deliveryDays>, $deliveryDays), triple($offer, <bsbm:product>, $product), triple($product, <bsbm:productFeature>, $productFeature), triple($productFeature, <rdfs:label>, "biographies"), triple($product, <rdf:type>, <bsbm-int:ProductType110>), triple($product, <bsbm:productPropertyNumeric>, $value), triple($product, <bsbm:producer>, $producer), triple($producer,<bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType12>); Q20a<$offer, $offerURL, $price, $deliveryDays, $value> :- triple($offer, <bsbm:offerWebpage>, $offerURL), triple($offer, <bsbm:price>, $price), triple($offer, <bsbm:deliveryDays>, $deliveryDays), triple($offer, <bsbm:product>, $product), triple($product, <bsbm:productFeature>, $productFeature), triple($productFeature, <rdfs:label>, "biographies"), triple($product, <rdf:type>, <bsbm-int:ProductType8>), triple($product, <bsbm:productPropertyNumeric>, $value), triple($product, <bsbm:producer>, $producer), triple($producer,<bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType12>); Q20b<$offer, $offerURL, $price, $deliveryDays, $value> :- triple($offer, <bsbm:offerWebpage>, $offerURL), triple($offer, <bsbm:price>, $price), triple($offer, <bsbm:deliveryDays>, $deliveryDays), triple($offer, <bsbm:product>, $product), triple($product, <bsbm:productFeature>, $productFeature), triple($productFeature, <rdfs:label>, "biographies"), triple($product, <rdf:type>, <bsbm-int:ProductType2>), triple($product, <bsbm:productPropertyNumeric>, $value), triple($product, <bsbm:producer>, $producer), triple($producer,<bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType12>); Q20c<$offer, $offerURL, $price, $deliveryDays, $value> :- triple($offer, <bsbm:offerWebpage>, $offerURL), triple($offer, <bsbm:price>, $price), triple($offer, <bsbm:deliveryDays>, $deliveryDays), triple($offer, <bsbm:product>, $product), triple($product, <bsbm:productFeature>, $productFeature), triple($productFeature, <rdfs:label>, "biographies"), triple($product, <rdf:type>, <bsbm-int:ProductType2>), triple($product, <bsbm:productPropertyNumeric>, $value), triple($product, <bsbm:producer>, $producer), triple($producer,<bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType1>); Q21<$product, $type> :- triple($product, <bsbm:productFeature>, $productFeature), triple($productFeature, <rdfs:label>, "biographies"), triple($product, <rdf:type>, $type); Q22<$product, $type> :- triple($product, <bsbm:productFeature>, $productFeature), triple($productFeature, <rdfs:label>, "biographies"), triple($product, <rdf:type>, $type), triple($type, <rdfs:subClassOf>, <bsbm-int:ProductType12>); Q22a<$product, $type> :- triple($product, <bsbm:productFeature>, $productFeature), triple($productFeature, <rdfs:label>, "biographies"), triple($product, <rdf:type>, $type), triple($type, <rdfs:subClassOf>, <bsbm-int:ProductType2>); Q23<$x, $class, $superProp, $value> :- triple($x, $prop, $value), triple($prop, <rdfs:subPropertyOf>, $superProp), triple($x, $p, $agent), triple($p, <rdfs:range>, <foaf:Agent>), triple($p, <rdfs:domain>, $class), triple($agent, <bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType12>); Q23a<$x, $class, $superProp, $value> :- triple($x, $prop, $value), triple($prop, <rdfs:subPropertyOf>, $superProp), triple($x, $p, $agent), triple($p, <rdfs:range>, <foaf:Agent>), triple($p, <rdfs:domain>, $class), triple($agent, <bsbm:country>, $country), triple($country, <rdf:type>, <bsbm:CountryType2>);