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

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

There is a newer version: 2.1.4
Show newest version
# BSBM Q7 on pc100.

PREFIX rdfs: 
PREFIX rev: 
PREFIX foaf: 
PREFIX bsbm: 
PREFIX dc: 

SELECT (COUNT(*) as ?count)
#SELECT ?productLabel ?offer ?price ?vendor ?vendorTitle ?review ?revTitle 
#       ?reviewer ?revName ?rating1 ?rating2
WHERE { 

  # Control all RTO parameters for repeatable behavior.
  hint:Query hint:RTO-sampleType "DENSE".
  hint:Query hint:RTO-limit "100".
  hint:Query hint:RTO-nedges "1".

    rdfs:label ?productLabel .
    OPTIONAL {

  # Note: The RTO is only enabled in one join group to make the unit test easier to write.
  hint:Group hint:optimizer "Runtime".
  
        ?offer bsbm:product  .
      ?offer bsbm:price ?price .
      ?offer bsbm:vendor ?vendor .
      ?vendor rdfs:label ?vendorTitle .
        ?vendor bsbm:country  .
        ?offer dc:publisher ?vendor . 
        ?offer bsbm:validTo ?date .
        FILTER (?date > "2008-06-20T00:00:00"^^ )
    }
    OPTIONAL {
   ?review bsbm:reviewFor  .
   ?review rev:reviewer ?reviewer .
   ?reviewer foaf:name ?revName .
   ?review dc:title ?revTitle .
    OPTIONAL { ?review bsbm:rating1 ?rating1 . }
    OPTIONAL { ?review bsbm:rating2 ?rating2 . } 
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy