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

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

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

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

SELECT (COUNT(*) as ?count)
#SELECT ?title ?text ?reviewDate ?reviewer ?reviewerName ?rating1 ?rating2 ?rating3 ?rating4 
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".

   ?review bsbm:reviewFor  .
   ?review dc:title ?title .
   ?review rev:text ?text .
   FILTER langMatches( lang(?text), "EN" ) 
   ?review bsbm:reviewDate ?reviewDate .
   ?review 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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy