product-performance.rq 1.3 KB

12345678910111213141516171819202122232425262728
  1. PREFIX gesli: <https://gesli.example/ontology#>
  2. PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  3. SELECT ?brandName ?productName ?routeType ?originLocation ?destinationLocation
  4. ?etdAtdOnTimeRate ?etaAtaOnTimeRate ?scheduleDelayRate
  5. ?scheduleChangeRate ?routeChangeRate
  6. ?averageDepartureDelayHours ?averageArrivalDelayHours
  7. WHERE {
  8. ?product a/rdfs:subClassOf* gesli:ServiceProduct ;
  9. gesli:productName ?productName ;
  10. gesli:routeType ?routeType ;
  11. gesli:originLocation ?originLocation ;
  12. gesli:destinationLocation ?destinationLocation ;
  13. gesli:hasProductPerformanceProfile ?performance .
  14. OPTIONAL {
  15. ?product gesli:hasServiceBrand ?brand .
  16. ?brand gesli:brandName ?brandName .
  17. }
  18. OPTIONAL { ?performance gesli:etdAtdOnTimeRate ?etdAtdOnTimeRate . }
  19. OPTIONAL { ?performance gesli:etaAtaOnTimeRate ?etaAtaOnTimeRate . }
  20. OPTIONAL { ?performance gesli:scheduleDelayRate ?scheduleDelayRate . }
  21. OPTIONAL { ?performance gesli:scheduleChangeRate ?scheduleChangeRate . }
  22. OPTIONAL { ?performance gesli:routeChangeRate ?routeChangeRate . }
  23. OPTIONAL { ?performance gesli:averageDepartureDelayHours ?averageDepartureDelayHours . }
  24. OPTIONAL { ?performance gesli:averageArrivalDelayHours ?averageArrivalDelayHours . }
  25. }
  26. ORDER BY ?brandName ?productName