product-performance.rq 1.3 KB

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