platform-supplier-profile-summary.rq 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. PREFIX gesli: <https://gesli.example/ontology#>
  2. PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  3. SELECT DISTINCT ?supplierName ?supplierNature ?platformSupplierType ?servicePort
  4. ?primaryRouteName ?primaryProductName ?primaryServiceForm
  5. ?routeConcentrationRatio ?productConcentrationRatio ?serviceConcentrationRatio
  6. ?totalRouteCount ?totalProductCount ?coveredTransportModes ?coveredRoutes ?coveredServiceForms
  7. ?offeringCode ?capacityCommitment ?bookingSuccessRate ?spaceReleaseSuccessRate
  8. ?settlementTermDays ?prepaymentRequired ?feeDisputeCount
  9. WHERE {
  10. ?supplier a/rdfs:subClassOf* gesli:Supplier ;
  11. rdfs:label ?supplierName .
  12. OPTIONAL { ?supplier gesli:supplierNature ?supplierNature . }
  13. OPTIONAL { ?supplier gesli:platformSupplierType ?platformSupplierType . }
  14. OPTIONAL { ?supplier gesli:servicePort ?servicePort . }
  15. {
  16. ?supplier gesli:hasSupplierConcentrationProfile ?profileMarker .
  17. } UNION {
  18. ?supplier gesli:hasSupplierServiceCapabilityProfile ?profileMarker .
  19. } UNION {
  20. ?supplier gesli:hasProductOffering ?profileMarker .
  21. } UNION {
  22. ?supplier gesli:hasSupplierSettlementProfile ?profileMarker .
  23. }
  24. OPTIONAL {
  25. ?supplier gesli:hasSupplierConcentrationProfile ?concentration .
  26. OPTIONAL { ?concentration gesli:primaryRouteName ?primaryRouteName . }
  27. OPTIONAL { ?concentration gesli:primaryProductName ?primaryProductName . }
  28. OPTIONAL { ?concentration gesli:primaryServiceForm ?primaryServiceForm . }
  29. OPTIONAL { ?concentration gesli:routeConcentrationRatio ?routeConcentrationRatio . }
  30. OPTIONAL { ?concentration gesli:productConcentrationRatio ?productConcentrationRatio . }
  31. OPTIONAL { ?concentration gesli:serviceConcentrationRatio ?serviceConcentrationRatio . }
  32. }
  33. OPTIONAL {
  34. ?supplier gesli:hasSupplierServiceCapabilityProfile ?capability .
  35. OPTIONAL { ?capability gesli:totalRouteCount ?totalRouteCount . }
  36. OPTIONAL { ?capability gesli:totalProductCount ?totalProductCount . }
  37. OPTIONAL { ?capability gesli:coveredTransportModes ?coveredTransportModes . }
  38. OPTIONAL { ?capability gesli:coveredRoutes ?coveredRoutes . }
  39. OPTIONAL { ?capability gesli:coveredServiceForms ?coveredServiceForms . }
  40. }
  41. OPTIONAL {
  42. ?supplier gesli:hasProductOffering ?offering .
  43. OPTIONAL { ?offering gesli:offeringCode ?offeringCode . }
  44. OPTIONAL { ?offering gesli:capacityCommitment ?capacityCommitment . }
  45. OPTIONAL { ?offering gesli:bookingSuccessRate ?bookingSuccessRate . }
  46. OPTIONAL { ?offering gesli:spaceReleaseSuccessRate ?spaceReleaseSuccessRate . }
  47. }
  48. OPTIONAL {
  49. ?supplier gesli:hasSupplierSettlementProfile ?settlement .
  50. OPTIONAL { ?settlement gesli:settlementTermDays ?settlementTermDays . }
  51. OPTIONAL { ?settlement gesli:prepaymentRequired ?prepaymentRequired . }
  52. OPTIONAL { ?settlement gesli:feeDisputeCount ?feeDisputeCount . }
  53. }
  54. }
  55. ORDER BY ?supplierNature ?platformSupplierType ?supplierName