supplier-product-quotes.rq 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. PREFIX gesli: <https://gesli.example/ontology#>
  2. PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  3. SELECT ?brandName ?productName ?transportMode ?transportSubMode
  4. ?serviceForm ?routeType ?originLocation ?destinationLocation ?transitPortName
  5. ?supplierName ?platformSupplierType ?offeringCode ?offeringChannel ?agencyLevel
  6. ?capacityCommitment ?bookingSuccessRate ?spaceReleaseSuccessRate
  7. ?quoteNo ?supplierCostAmount ?currency ?validFrom ?validTo
  8. ?scheduleCode ?documentCutoffTime ?estimatedDepartureTime ?estimatedArrivalTime
  9. WHERE {
  10. ?quote a gesli:SupplierQuote ;
  11. gesli:quoteNo ?quoteNo ;
  12. gesli:quotedForOffering ?offering ;
  13. gesli:supplierCostAmount ?supplierCostAmount ;
  14. gesli:currency ?currency .
  15. ?offering a gesli:SupplierProductOffering ;
  16. gesli:offeringCode ?offeringCode ;
  17. gesli:offeredBySupplier ?supplier ;
  18. gesli:offeringProduct ?product .
  19. ?supplier rdfs:label ?supplierName .
  20. ?product gesli:productName ?productName ;
  21. gesli:transportMode ?transportMode ;
  22. gesli:transportSubMode ?transportSubMode ;
  23. gesli:serviceForm ?serviceForm ;
  24. gesli:routeType ?routeType ;
  25. gesli:originLocation ?originLocation ;
  26. gesli:destinationLocation ?destinationLocation .
  27. OPTIONAL {
  28. ?product gesli:hasServiceBrand ?brand .
  29. ?brand gesli:brandName ?brandName .
  30. }
  31. OPTIONAL { ?supplier gesli:platformSupplierType ?platformSupplierType . }
  32. OPTIONAL { ?offering gesli:offeringChannel ?offeringChannel . }
  33. OPTIONAL { ?offering gesli:agencyLevel ?agencyLevel . }
  34. OPTIONAL { ?offering gesli:capacityCommitment ?capacityCommitment . }
  35. OPTIONAL { ?offering gesli:bookingSuccessRate ?bookingSuccessRate . }
  36. OPTIONAL { ?offering gesli:spaceReleaseSuccessRate ?spaceReleaseSuccessRate . }
  37. OPTIONAL { ?product gesli:transitPortName ?transitPortName . }
  38. OPTIONAL { ?quote gesli:validFrom ?validFrom . }
  39. OPTIONAL { ?quote gesli:validTo ?validTo . }
  40. OPTIONAL {
  41. ?quote gesli:quoteAppliesToSchedule ?schedule .
  42. ?schedule gesli:scheduleCode ?scheduleCode .
  43. OPTIONAL { ?schedule gesli:documentCutoffTime ?documentCutoffTime . }
  44. OPTIONAL { ?schedule gesli:estimatedDepartureTime ?estimatedDepartureTime . }
  45. OPTIONAL { ?schedule gesli:estimatedArrivalTime ?estimatedArrivalTime . }
  46. }
  47. }
  48. ORDER BY ?productName ?supplierName ?quoteNo