customer-profile-summary.rq 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. PREFIX gesli: <https://gesli.example/ontology#>
  2. PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  3. SELECT ?customerName ?country ?region ?industry ?routeName ?quoteWinRate
  4. ?dealPriceMarketPriceRatio ?repeatPurchaseCount ?grossMarginRate
  5. ?creditTermDays ?overdueDays ?notificationRequirement
  6. WHERE {
  7. ?customer a gesli:Customer ;
  8. rdfs:label ?customerName .
  9. OPTIONAL {
  10. ?customer gesli:hasBasicInfo ?basic .
  11. ?basic gesli:country ?country ;
  12. gesli:region ?region .
  13. }
  14. OPTIONAL {
  15. ?customer gesli:hasTradeProfile ?trade .
  16. ?trade gesli:industry ?industry ;
  17. gesli:routeName ?routeName ;
  18. gesli:quoteWinRate ?quoteWinRate ;
  19. gesli:dealPriceMarketPriceRatio ?dealPriceMarketPriceRatio ;
  20. gesli:repeatPurchaseCount ?repeatPurchaseCount ;
  21. gesli:grossMarginRate ?grossMarginRate .
  22. }
  23. OPTIONAL {
  24. ?customer gesli:hasCreditProfile ?credit .
  25. ?credit gesli:creditTermDays ?creditTermDays ;
  26. gesli:overdueDays ?overdueDays .
  27. }
  28. OPTIONAL {
  29. ?customer gesli:hasServiceProfile ?service .
  30. ?service gesli:notificationRequirement ?notificationRequirement .
  31. }
  32. }
  33. ORDER BY ?customerName