market-customers.rq 1.6 KB

1234567891011121314151617181920212223242526272829303132
  1. PREFIX gesli: <https://gesli.example/ontology#>
  2. PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  3. SELECT ?customer ?customerName ?industry ?routeName ?repeatPurchaseCount ?quoteWinRate
  4. ?overdueDays ?notificationRequirement ?documentRequirement ?exceptionResponseRequirement
  5. ?customerPriceSensitivity ?customerTimeSensitivity ?customerReliabilitySensitivity
  6. WHERE {
  7. ?customer a/rdfs:subClassOf* gesli:Customer ;
  8. rdfs:label ?customerName .
  9. OPTIONAL {
  10. ?customer gesli:hasTradeProfile ?tradeProfile .
  11. OPTIONAL { ?tradeProfile gesli:industry ?industry . }
  12. OPTIONAL { ?tradeProfile gesli:routeName ?routeName . }
  13. OPTIONAL { ?tradeProfile gesli:repeatPurchaseCount ?repeatPurchaseCount . }
  14. OPTIONAL { ?tradeProfile gesli:quoteWinRate ?quoteWinRate . }
  15. OPTIONAL { ?tradeProfile gesli:customerPriceSensitivity ?customerPriceSensitivity . }
  16. OPTIONAL { ?tradeProfile gesli:customerTimeSensitivity ?customerTimeSensitivity . }
  17. OPTIONAL { ?tradeProfile gesli:customerReliabilitySensitivity ?customerReliabilitySensitivity . }
  18. }
  19. OPTIONAL {
  20. ?customer gesli:hasCreditProfile ?creditProfile .
  21. OPTIONAL { ?creditProfile gesli:overdueDays ?overdueDays . }
  22. }
  23. OPTIONAL {
  24. ?customer gesli:hasServiceProfile ?serviceProfile .
  25. OPTIONAL { ?serviceProfile gesli:notificationRequirement ?notificationRequirement . }
  26. OPTIONAL { ?serviceProfile gesli:documentRequirement ?documentRequirement . }
  27. OPTIONAL { ?serviceProfile gesli:exceptionResponseRequirement ?exceptionResponseRequirement . }
  28. }
  29. }
  30. ORDER BY ?customerName