PREFIX bsbm: PREFIX rdfs: PREFIX rdf: PREFIX bsbm-inst: SELECT DISTINCT ?product ?label WHERE { ?product rdfs:label ?label ; rdf:type bsbm-inst:ProductType8 ; bsbm:productFeature bsbm-inst:ProductFeature9 ; bsbm:productFeature bsbm-inst:ProductFeature5 ; bsbm:productPropertyNumeric1 ?value1 FILTER ( ?value1 > 136 ) } ORDER BY ?label LIMIT 10 PREFIX bsbm: PREFIX rdfs: PREFIX bsbm-inst: PREFIX dc: SELECT ?label ?comment ?producer ?productFeature ?propertyTextual1 ?propertyTextual2 ?propertyTextual3 ?propertyNumeric1 ?propertyNumeric2 ?propertyTextual4 ?propertyTextual5 ?propertyNumeric4 WHERE { rdfs:label ?label ; rdfs:comment ?comment ; bsbm:producer ?p . ?p rdfs:label ?producer . dc:publisher ?p ; bsbm:productFeature ?f . ?f rdfs:label ?productFeature . bsbm:productPropertyTextual1 ?propertyTextual1 ; bsbm:productPropertyTextual2 ?propertyTextual2 ; bsbm:productPropertyTextual3 ?propertyTextual3 ; bsbm:productPropertyNumeric1 ?propertyNumeric1 ; bsbm:productPropertyNumeric2 ?propertyNumeric2 OPTIONAL { bsbm:productPropertyTextual4 ?propertyTextual4 } OPTIONAL { bsbm:productPropertyTextual5 ?propertyTextual5 } OPTIONAL { bsbm:productPropertyNumeric4 ?propertyNumeric4 } } PREFIX bsbm: PREFIX rdfs: PREFIX bsbm-inst: PREFIX dc: SELECT ?label ?comment ?producer ?productFeature ?propertyTextual1 ?propertyTextual2 ?propertyTextual3 ?propertyNumeric1 ?propertyNumeric2 ?propertyTextual4 ?propertyTextual5 ?propertyNumeric4 WHERE { rdfs:label ?label ; rdfs:comment ?comment ; bsbm:producer ?p . ?p rdfs:label ?producer . dc:publisher ?p ; bsbm:productFeature ?f . ?f rdfs:label ?productFeature . bsbm:productPropertyTextual1 ?propertyTextual1 ; bsbm:productPropertyTextual2 ?propertyTextual2 ; bsbm:productPropertyTextual3 ?propertyTextual3 ; bsbm:productPropertyNumeric1 ?propertyNumeric1 ; bsbm:productPropertyNumeric2 ?propertyNumeric2 OPTIONAL { bsbm:productPropertyTextual4 ?propertyTextual4 } OPTIONAL { bsbm:productPropertyTextual5 ?propertyTextual5 } OPTIONAL { bsbm:productPropertyNumeric4 ?propertyNumeric4 } } PREFIX bsbm: PREFIX rdfs: PREFIX rdf: PREFIX bsbm-inst: SELECT ?product ?label WHERE { ?product rdfs:label ?label ; rdf:type bsbm-inst:ProductType12 ; bsbm:productFeature bsbm-inst:ProductFeature63 ; bsbm:productPropertyNumeric1 ?p1 FILTER ( ?p1 > 156 ) ?product bsbm:productPropertyNumeric3 ?p3 FILTER ( ?p3 < 152 ) OPTIONAL { ?product bsbm:productFeature bsbm-inst:ProductFeature53 ; rdfs:label ?testVar } FILTER ( ! bound(?testVar) ) } ORDER BY ?label LIMIT 10 PREFIX bsbm: PREFIX rdfs: PREFIX bsbm-inst: PREFIX dc: SELECT ?label ?comment ?producer ?productFeature ?propertyTextual1 ?propertyTextual2 ?propertyTextual3 ?propertyNumeric1 ?propertyNumeric2 ?propertyTextual4 ?propertyTextual5 ?propertyNumeric4 WHERE { rdfs:label ?label ; rdfs:comment ?comment ; bsbm:producer ?p . ?p rdfs:label ?producer . dc:publisher ?p ; bsbm:productFeature ?f . ?f rdfs:label ?productFeature . bsbm:productPropertyTextual1 ?propertyTextual1 ; bsbm:productPropertyTextual2 ?propertyTextual2 ; bsbm:productPropertyTextual3 ?propertyTextual3 ; bsbm:productPropertyNumeric1 ?propertyNumeric1 ; bsbm:productPropertyNumeric2 ?propertyNumeric2 OPTIONAL { bsbm:productPropertyTextual4 ?propertyTextual4 } OPTIONAL { bsbm:productPropertyTextual5 ?propertyTextual5 } OPTIONAL { bsbm:productPropertyNumeric4 ?propertyNumeric4 } } PREFIX bsbm: PREFIX rdfs: PREFIX bsbm-inst: PREFIX dc: SELECT ?label ?comment ?producer ?productFeature ?propertyTextual1 ?propertyTextual2 ?propertyTextual3 ?propertyNumeric1 ?propertyNumeric2 ?propertyTextual4 ?propertyTextual5 ?propertyNumeric4 WHERE { rdfs:label ?label ; rdfs:comment ?comment ; bsbm:producer ?p . ?p rdfs:label ?producer . dc:publisher ?p ; bsbm:productFeature ?f . ?f rdfs:label ?productFeature . bsbm:productPropertyTextual1 ?propertyTextual1 ; bsbm:productPropertyTextual2 ?propertyTextual2 ; bsbm:productPropertyTextual3 ?propertyTextual3 ; bsbm:productPropertyNumeric1 ?propertyNumeric1 ; bsbm:productPropertyNumeric2 ?propertyNumeric2 OPTIONAL { bsbm:productPropertyTextual4 ?propertyTextual4 } OPTIONAL { bsbm:productPropertyTextual5 ?propertyTextual5 } OPTIONAL { bsbm:productPropertyNumeric4 ?propertyNumeric4 } } PREFIX bsbm: PREFIX rdfs: PREFIX rdf: PREFIX bsbm-inst: SELECT DISTINCT ?product ?label ?propertyTextual WHERE { { ?product rdfs:label ?label ; rdf:type bsbm-inst:ProductType7 ; bsbm:productFeature bsbm-inst:ProductFeature234 ; bsbm:productFeature bsbm-inst:ProductFeature268 ; bsbm:productPropertyTextual1 ?propertyTextual ; bsbm:productPropertyNumeric1 ?p1 FILTER ( ?p1 > 457 ) } UNION { ?product rdfs:label ?label ; rdf:type bsbm-inst:ProductType7 ; bsbm:productFeature bsbm-inst:ProductFeature234 ; bsbm:productFeature bsbm-inst:ProductFeature269 ; bsbm:productPropertyTextual1 ?propertyTextual ; bsbm:productPropertyNumeric2 ?p2 FILTER ( ?p2 > 488 ) } } ORDER BY ?label OFFSET 5 LIMIT 10 PREFIX bsbm: PREFIX rdfs: PREFIX bsbm-inst: PREFIX dc: SELECT ?label ?comment ?producer ?productFeature ?propertyTextual1 ?propertyTextual2 ?propertyTextual3 ?propertyNumeric1 ?propertyNumeric2 ?propertyTextual4 ?propertyTextual5 ?propertyNumeric4 WHERE { rdfs:label ?label ; rdfs:comment ?comment ; bsbm:producer ?p . ?p rdfs:label ?producer . dc:publisher ?p ; bsbm:productFeature ?f . ?f rdfs:label ?productFeature . bsbm:productPropertyTextual1 ?propertyTextual1 ; bsbm:productPropertyTextual2 ?propertyTextual2 ; bsbm:productPropertyTextual3 ?propertyTextual3 ; bsbm:productPropertyNumeric1 ?propertyNumeric1 ; bsbm:productPropertyNumeric2 ?propertyNumeric2 OPTIONAL { bsbm:productPropertyTextual4 ?propertyTextual4 } OPTIONAL { bsbm:productPropertyTextual5 ?propertyTextual5 } OPTIONAL { bsbm:productPropertyNumeric4 ?propertyNumeric4 } } PREFIX bsbm: PREFIX rdfs: PREFIX bsbm-inst: PREFIX dc: SELECT ?label ?comment ?producer ?productFeature ?propertyTextual1 ?propertyTextual2 ?propertyTextual3 ?propertyNumeric1 ?propertyNumeric2 ?propertyTextual4 ?propertyTextual5 ?propertyNumeric4 WHERE { rdfs:label ?label ; rdfs:comment ?comment ; bsbm:producer ?p . ?p rdfs:label ?producer . dc:publisher ?p ; bsbm:productFeature ?f . ?f rdfs:label ?productFeature . bsbm:productPropertyTextual1 ?propertyTextual1 ; bsbm:productPropertyTextual2 ?propertyTextual2 ; bsbm:productPropertyTextual3 ?propertyTextual3 ; bsbm:productPropertyNumeric1 ?propertyNumeric1 ; bsbm:productPropertyNumeric2 ?propertyNumeric2 OPTIONAL { bsbm:productPropertyTextual4 ?propertyTextual4 } OPTIONAL { bsbm:productPropertyTextual5 ?propertyTextual5 } OPTIONAL { bsbm:productPropertyNumeric4 ?propertyNumeric4 } } PREFIX bsbm: PREFIX rdfs: PREFIX rdf: SELECT DISTINCT ?product ?productLabel WHERE { ?product rdfs:label ?productLabel FILTER ( != ?product ) bsbm:productFeature ?prodFeature . ?product bsbm:productFeature ?prodFeature . bsbm:productPropertyNumeric1 ?origProperty1 . ?product bsbm:productPropertyNumeric1 ?simProperty1 FILTER ( ( ?simProperty1 < ( ?origProperty1 + 120 ) ) && ( ?simProperty1 > ( ?origProperty1 - 120 ) ) ) bsbm:productPropertyNumeric2 ?origProperty2 . ?product bsbm:productPropertyNumeric2 ?simProperty2 FILTER ( ( ?simProperty2 < ( ?origProperty2 + 170 ) ) && ( ?simProperty2 > ( ?origProperty2 - 170 ) ) ) } ORDER BY ?productLabel LIMIT 5 PREFIX rev: PREFIX bsbm: PREFIX rdfs: PREFIX foaf: PREFIX dc: SELECT ?productLabel ?offer ?price ?vendor ?vendorTitle ?review ?revTitle ?reviewer ?revName ?rating1 ?rating2 WHERE { rdfs:label ?productLabel OPTIONAL { ?offer bsbm:product ; bsbm:price ?price ; bsbm:vendor ?vendor . ?vendor rdfs:label ?vendorTitle ; bsbm:country . ?offer dc:publisher ?vendor ; bsbm:validTo ?date FILTER ( ?date > "2008-06-20T00:00:00"^^ ) } OPTIONAL { ?review bsbm:reviewFor ; rev:reviewer ?reviewer . ?reviewer foaf:name ?revName . ?review dc:title ?revTitle OPTIONAL { ?review bsbm:rating1 ?rating1 } OPTIONAL { ?review bsbm:rating2 ?rating2 } } } PREFIX rev: PREFIX bsbm: PREFIX rdfs: PREFIX foaf: PREFIX dc: SELECT ?productLabel ?offer ?price ?vendor ?vendorTitle ?review ?revTitle ?reviewer ?revName ?rating1 ?rating2 WHERE { rdfs:label ?productLabel OPTIONAL { ?offer bsbm:product ; bsbm:price ?price ; bsbm:vendor ?vendor . ?vendor rdfs:label ?vendorTitle ; bsbm:country . ?offer dc:publisher ?vendor ; bsbm:validTo ?date FILTER ( ?date > "2008-06-20T00:00:00"^^ ) } OPTIONAL { ?review bsbm:reviewFor ; rev:reviewer ?reviewer . ?reviewer foaf:name ?revName . ?review dc:title ?revTitle OPTIONAL { ?review bsbm:rating1 ?rating1 } OPTIONAL { ?review bsbm:rating2 ?rating2 } } } PREFIX bsbm: PREFIX rdfs: PREFIX rdf: SELECT DISTINCT ?product ?productLabel WHERE { ?product rdfs:label ?productLabel FILTER ( != ?product ) bsbm:productFeature ?prodFeature . ?product bsbm:productFeature ?prodFeature . bsbm:productPropertyNumeric1 ?origProperty1 . ?product bsbm:productPropertyNumeric1 ?simProperty1 FILTER ( ( ?simProperty1 < ( ?origProperty1 + 120 ) ) && ( ?simProperty1 > ( ?origProperty1 - 120 ) ) ) bsbm:productPropertyNumeric2 ?origProperty2 . ?product bsbm:productPropertyNumeric2 ?simProperty2 FILTER ( ( ?simProperty2 < ( ?origProperty2 + 170 ) ) && ( ?simProperty2 > ( ?origProperty2 - 170 ) ) ) } ORDER BY ?productLabel LIMIT 5 PREFIX rev: PREFIX bsbm: PREFIX rdfs: PREFIX foaf: PREFIX dc: SELECT ?productLabel ?offer ?price ?vendor ?vendorTitle ?review ?revTitle ?reviewer ?revName ?rating1 ?rating2 WHERE { rdfs:label ?productLabel OPTIONAL { ?offer bsbm:product ; bsbm:price ?price ; bsbm:vendor ?vendor . ?vendor rdfs:label ?vendorTitle ; bsbm:country . ?offer dc:publisher ?vendor ; bsbm:validTo ?date FILTER ( ?date > "2008-06-20T00:00:00"^^ ) } OPTIONAL { ?review bsbm:reviewFor ; rev:reviewer ?reviewer . ?reviewer foaf:name ?revName . ?review dc:title ?revTitle OPTIONAL { ?review bsbm:rating1 ?rating1 } OPTIONAL { ?review bsbm:rating2 ?rating2 } } } PREFIX rev: PREFIX bsbm: PREFIX rdfs: PREFIX foaf: PREFIX dc: SELECT ?productLabel ?offer ?price ?vendor ?vendorTitle ?review ?revTitle ?reviewer ?revName ?rating1 ?rating2 WHERE { rdfs:label ?productLabel OPTIONAL { ?offer bsbm:product ; bsbm:price ?price ; bsbm:vendor ?vendor . ?vendor rdfs:label ?vendorTitle ; bsbm:country . ?offer dc:publisher ?vendor ; bsbm:validTo ?date FILTER ( ?date > "2008-06-20T00:00:00"^^ ) } OPTIONAL { ?review bsbm:reviewFor ; rev:reviewer ?reviewer . ?reviewer foaf:name ?revName . ?review dc:title ?revTitle OPTIONAL { ?review bsbm:rating1 ?rating1 } OPTIONAL { ?review bsbm:rating2 ?rating2 } } } PREFIX bsbm: PREFIX rev: PREFIX foaf: PREFIX dc: SELECT ?title ?text ?reviewDate ?reviewer ?reviewerName ?rating1 ?rating2 ?rating3 ?rating4 WHERE { ?review bsbm:reviewFor ; dc:title ?title ; rev:text ?text FILTER langMatches(lang(?text), "EN") ?review bsbm:reviewDate ?reviewDate ; rev:reviewer ?reviewer . ?reviewer foaf:name ?reviewerName OPTIONAL { ?review bsbm:rating1 ?rating1 } OPTIONAL { ?review bsbm:rating2 ?rating2 } OPTIONAL { ?review bsbm:rating3 ?rating3 } OPTIONAL { ?review bsbm:rating4 ?rating4 } } ORDER BY DESC(?reviewDate) LIMIT 20 PREFIX rev: DESCRIBE ?x WHERE { rev:reviewer ?x } PREFIX rev: DESCRIBE ?x WHERE { rev:reviewer ?x } PREFIX bsbm: PREFIX rev: PREFIX foaf: PREFIX dc: SELECT ?title ?text ?reviewDate ?reviewer ?reviewerName ?rating1 ?rating2 ?rating3 ?rating4 WHERE { ?review bsbm:reviewFor ; dc:title ?title ; rev:text ?text FILTER langMatches(lang(?text), "EN") ?review bsbm:reviewDate ?reviewDate ; rev:reviewer ?reviewer . ?reviewer foaf:name ?reviewerName OPTIONAL { ?review bsbm:rating1 ?rating1 } OPTIONAL { ?review bsbm:rating2 ?rating2 } OPTIONAL { ?review bsbm:rating3 ?rating3 } OPTIONAL { ?review bsbm:rating4 ?rating4 } } ORDER BY DESC(?reviewDate) LIMIT 20 PREFIX rev: DESCRIBE ?x WHERE { rev:reviewer ?x } PREFIX rev: DESCRIBE ?x WHERE { rev:reviewer ?x } PREFIX xsd: PREFIX bsbm: PREFIX dc: SELECT DISTINCT ?offer ?price WHERE { ?offer bsbm:product ; bsbm:vendor ?vendor ; dc:publisher ?vendor . ?vendor bsbm:country . ?offer bsbm:deliveryDays ?deliveryDays FILTER ( ?deliveryDays <= 3 ) ?offer bsbm:price ?price ; bsbm:validTo ?date FILTER ( ?date > "2008-06-20T00:00:00"^^xsd:dateTime ) } ORDER BY xsd:double(str(?price)) LIMIT 10 PREFIX xsd: PREFIX bsbm: PREFIX dc: SELECT DISTINCT ?offer ?price WHERE { ?offer bsbm:product ; bsbm:vendor ?vendor ; dc:publisher ?vendor . ?vendor bsbm:country . ?offer bsbm:deliveryDays ?deliveryDays FILTER ( ?deliveryDays <= 3 ) ?offer bsbm:price ?price ; bsbm:validTo ?date FILTER ( ?date > "2008-06-20T00:00:00"^^xsd:dateTime ) } ORDER BY xsd:double(str(?price)) LIMIT 10 SELECT ?property ?hasValue ?isValueOf WHERE { { ?property ?hasValue } UNION { ?isValueOf ?property } }