com.bigdata.rdf.sparql.ast.eval.rto.BSBM-Q5.rq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bigdata-rdf-test Show documentation
Show all versions of bigdata-rdf-test Show documentation
Blazegraph(TM) RDF Test Suites
# BSBM Q5 on pc100.
PREFIX rdfs:
PREFIX rdf:
PREFIX bsbm:
SELECT (COUNT(DISTINCT *) as ?count)
#SELECT DISTINCT ?product ?productLabel
WHERE {
# Control all RTO parameters for repeatable behavior.
hint:Query hint:optimizer "Runtime".
hint:Query hint:RTO-sampleType "DENSE".
hint:Query hint:RTO-limit "100".
hint:Query hint:RTO-nedges "1".
?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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy