market-candidates.rq 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. PREFIX gesli: <https://gesli.example/ontology#>
  2. PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  3. SELECT ?quote ?quoteNo ?validFrom ?validTo ?currency ?supplierCostAmount
  4. ?offering ?offeringCode ?offeringChannel ?agencyLevel ?capacityCommitment
  5. ?capacityAvailable ?supportsDangerousGoods ?dangerousGoodsOnly ?bookingSuccessRate ?spaceReleaseSuccessRate
  6. ?supplier ?supplierName ?supplierActive
  7. ?product ?productCode ?productName ?brandName ?transportMode ?serviceForm ?routeType
  8. ?originLocation ?destinationLocation ?estimatedTransitDays
  9. ?schedule ?scheduleCode ?documentCutoffTime ?estimatedDepartureTime ?estimatedArrivalTime
  10. ?etdAtdOnTimeRate ?etaAtaOnTimeRate
  11. WHERE {
  12. ?quote a gesli:SupplierQuote ;
  13. gesli:quoteNo ?quoteNo ;
  14. gesli:quotedForOffering ?offering ;
  15. gesli:supplierCostAmount ?supplierCostAmount ;
  16. gesli:currency ?currency .
  17. ?offering gesli:offeredBySupplier ?supplier ;
  18. gesli:offeringProduct ?product .
  19. ?supplier rdfs:label ?supplierName .
  20. ?product gesli:productCode ?productCode ;
  21. gesli:productName ?productName ;
  22. gesli:transportMode ?transportMode .
  23. OPTIONAL { ?quote gesli:validFrom ?validFrom . }
  24. OPTIONAL { ?quote gesli:validTo ?validTo . }
  25. OPTIONAL { ?offering gesli:offeringCode ?offeringCode . }
  26. OPTIONAL { ?offering gesli:offeringChannel ?offeringChannel . }
  27. OPTIONAL { ?offering gesli:agencyLevel ?agencyLevel . }
  28. OPTIONAL { ?offering gesli:capacityCommitment ?capacityCommitment . }
  29. OPTIONAL { ?offering gesli:capacityAvailable ?capacityAvailable . }
  30. OPTIONAL { ?offering gesli:supportsDangerousGoods ?supportsDangerousGoods . }
  31. OPTIONAL { ?offering gesli:dangerousGoodsOnly ?dangerousGoodsOnly . }
  32. OPTIONAL { ?offering gesli:bookingSuccessRate ?bookingSuccessRate . }
  33. OPTIONAL { ?offering gesli:spaceReleaseSuccessRate ?spaceReleaseSuccessRate . }
  34. OPTIONAL { ?supplier gesli:isActivePartner ?directSupplierActive . }
  35. OPTIONAL {
  36. ?supplier gesli:hasBusinessPartnerBasicInfo ?supplierBasic .
  37. ?supplierBasic gesli:isActivePartner ?basicSupplierActive .
  38. }
  39. BIND(COALESCE(?directSupplierActive, ?basicSupplierActive, true) AS ?supplierActive)
  40. OPTIONAL { ?product gesli:serviceForm ?serviceForm . }
  41. OPTIONAL { ?product gesli:routeType ?routeType . }
  42. OPTIONAL { ?product gesli:originLocation ?originLocation . }
  43. OPTIONAL { ?product gesli:destinationLocation ?destinationLocation . }
  44. OPTIONAL { ?product gesli:estimatedTransitDays ?estimatedTransitDays . }
  45. OPTIONAL {
  46. ?product gesli:hasServiceBrand ?brand .
  47. ?brand gesli:brandName ?brandName .
  48. }
  49. OPTIONAL {
  50. ?product gesli:hasProductPerformanceProfile ?performance .
  51. OPTIONAL { ?performance gesli:etdAtdOnTimeRate ?etdAtdOnTimeRate . }
  52. OPTIONAL { ?performance gesli:etaAtaOnTimeRate ?etaAtaOnTimeRate . }
  53. }
  54. OPTIONAL {
  55. ?quote gesli:quoteAppliesToSchedule ?schedule .
  56. OPTIONAL { ?schedule gesli:scheduleCode ?scheduleCode . }
  57. OPTIONAL { ?schedule gesli:documentCutoffTime ?documentCutoffTime . }
  58. OPTIONAL { ?schedule gesli:estimatedDepartureTime ?estimatedDepartureTime . }
  59. OPTIONAL { ?schedule gesli:estimatedArrivalTime ?estimatedArrivalTime . }
  60. }
  61. }
  62. ORDER BY ?supplierCostAmount ?supplierName