market-candidates.rq 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 ?spotSpaceStatus ?spotSpaceTeu ?supportsDangerousGoods ?dangerousGoodsOnly ?bookingSuccessRate ?spaceReleaseSuccessRate
  6. ?solutionAssuranceScore ?serviceSupportScore ?relationshipTier ?relationshipStrength
  7. ?lowPriceAccessProbability ?prioritySpaceProbability ?relationshipEvidence
  8. ?supplier ?supplierName ?supplierActive
  9. ?product ?productCode ?productName ?brandName ?transportMode ?serviceForm ?routeType
  10. ?originLocation ?destinationLocation ?estimatedTransitDays
  11. ?schedule ?scheduleCode ?documentCutoffTime ?estimatedDepartureTime ?estimatedArrivalTime
  12. ?etdAtdOnTimeRate ?etaAtaOnTimeRate
  13. WHERE {
  14. ?quote a gesli:SupplierQuote ;
  15. gesli:quoteNo ?quoteNo ;
  16. gesli:quotedForOffering ?offering ;
  17. gesli:supplierCostAmount ?supplierCostAmount ;
  18. gesli:currency ?currency .
  19. ?offering gesli:offeredBySupplier ?supplier ;
  20. gesli:offeringProduct ?product .
  21. ?supplier rdfs:label ?supplierName .
  22. ?product gesli:productCode ?productCode ;
  23. gesli:productName ?productName ;
  24. gesli:transportMode ?transportMode .
  25. OPTIONAL { ?quote gesli:validFrom ?validFrom . }
  26. OPTIONAL { ?quote gesli:validTo ?validTo . }
  27. OPTIONAL { ?offering gesli:offeringCode ?offeringCode . }
  28. OPTIONAL { ?offering gesli:offeringChannel ?offeringChannel . }
  29. OPTIONAL { ?offering gesli:agencyLevel ?agencyLevel . }
  30. OPTIONAL { ?offering gesli:capacityCommitment ?capacityCommitment . }
  31. OPTIONAL { ?offering gesli:capacityAvailable ?capacityAvailable . }
  32. OPTIONAL { ?offering gesli:spotSpaceStatus ?spotSpaceStatus . }
  33. OPTIONAL { ?offering gesli:spotSpaceTeu ?spotSpaceTeu . }
  34. OPTIONAL { ?offering gesli:supportsDangerousGoods ?supportsDangerousGoods . }
  35. OPTIONAL { ?offering gesli:dangerousGoodsOnly ?dangerousGoodsOnly . }
  36. OPTIONAL { ?offering gesli:bookingSuccessRate ?bookingSuccessRate . }
  37. OPTIONAL { ?offering gesli:spaceReleaseSuccessRate ?spaceReleaseSuccessRate . }
  38. OPTIONAL { ?offering gesli:solutionAssuranceScore ?solutionAssuranceScore . }
  39. OPTIONAL { ?offering gesli:serviceSupportScore ?serviceSupportScore . }
  40. OPTIONAL { ?offering gesli:relationshipTier ?relationshipTier . }
  41. OPTIONAL { ?offering gesli:relationshipStrength ?relationshipStrength . }
  42. OPTIONAL { ?offering gesli:lowPriceAccessProbability ?lowPriceAccessProbability . }
  43. OPTIONAL { ?offering gesli:prioritySpaceProbability ?prioritySpaceProbability . }
  44. OPTIONAL { ?offering gesli:relationshipEvidence ?relationshipEvidence . }
  45. OPTIONAL { ?supplier gesli:isActivePartner ?directSupplierActive . }
  46. OPTIONAL {
  47. ?supplier gesli:hasBusinessPartnerBasicInfo ?supplierBasic .
  48. ?supplierBasic gesli:isActivePartner ?basicSupplierActive .
  49. }
  50. BIND(COALESCE(?directSupplierActive, ?basicSupplierActive, true) AS ?supplierActive)
  51. OPTIONAL { ?product gesli:serviceForm ?serviceForm . }
  52. OPTIONAL { ?product gesli:routeType ?routeType . }
  53. OPTIONAL { ?product gesli:originLocation ?originLocation . }
  54. OPTIONAL { ?product gesli:destinationLocation ?destinationLocation . }
  55. OPTIONAL { ?product gesli:estimatedTransitDays ?estimatedTransitDays . }
  56. OPTIONAL {
  57. ?product gesli:hasServiceBrand ?brand .
  58. ?brand gesli:brandName ?brandName .
  59. }
  60. OPTIONAL {
  61. ?product gesli:hasProductPerformanceProfile ?performance .
  62. OPTIONAL { ?performance gesli:etdAtdOnTimeRate ?etdAtdOnTimeRate . }
  63. OPTIONAL { ?performance gesli:etaAtaOnTimeRate ?etaAtaOnTimeRate . }
  64. }
  65. OPTIONAL {
  66. ?quote gesli:quoteAppliesToSchedule ?schedule .
  67. OPTIONAL { ?schedule gesli:scheduleCode ?scheduleCode . }
  68. OPTIONAL { ?schedule gesli:documentCutoffTime ?documentCutoffTime . }
  69. OPTIONAL { ?schedule gesli:estimatedDepartureTime ?estimatedDepartureTime . }
  70. OPTIONAL { ?schedule gesli:estimatedArrivalTime ?estimatedArrivalTime . }
  71. }
  72. }
  73. ORDER BY ?supplierCostAmount ?supplierName