All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bigdata.rdf.sparql.ast.eval.rto.BSBM-Q5.rq Maven / Gradle / Ivy

There is a newer version: 2.1.4
Show newest version
# 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