ai-market-recommended-prices.rq 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. PREFIX gesli: <https://gesli.example/ontology#>
  2. PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  3. SELECT ?solutionName ?solutionType ?marketBenchmarkAmount
  4. ?strategyName ?strategyObjective ?aiRecommendedAmount
  5. ?allowedQuoteLowerAmount ?allowedQuoteUpperAmount
  6. ?customerName ?loyaltyTransactionCount ?customerPremiumAmount
  7. ?salespersonAdjustmentAmount ?finalQuoteAmount ?currency ?pricingExplanation
  8. WHERE {
  9. ?recommendedPrice a gesli:AIRecommendedPrice ;
  10. gesli:recommendedForSolution ?solution ;
  11. gesli:basedOnMarketBenchmark ?benchmark ;
  12. gesli:basedOnProductStrategy ?strategy ;
  13. gesli:aiRecommendedAmount ?aiRecommendedAmount ;
  14. gesli:allowedQuoteLowerAmount ?allowedQuoteLowerAmount ;
  15. gesli:allowedQuoteUpperAmount ?allowedQuoteUpperAmount ;
  16. gesli:currency ?currency .
  17. ?solution gesli:solutionName ?solutionName ;
  18. gesli:solutionType ?solutionType .
  19. ?benchmark gesli:marketBenchmarkAmount ?marketBenchmarkAmount .
  20. ?strategy gesli:strategyName ?strategyName ;
  21. gesli:strategyObjective ?strategyObjective .
  22. OPTIONAL { ?recommendedPrice gesli:pricingExplanation ?pricingExplanation . }
  23. OPTIONAL {
  24. ?premium a gesli:CustomerPremiumDecision ;
  25. gesli:basedOnAIRecommendedPrice ?recommendedPrice ;
  26. gesli:premiumForCustomer ?customer ;
  27. gesli:loyaltyTransactionCount ?loyaltyTransactionCount ;
  28. gesli:customerPremiumAmount ?customerPremiumAmount .
  29. ?customer rdfs:label ?customerName .
  30. OPTIONAL {
  31. ?customerQuote a gesli:CustomerQuote ;
  32. gesli:usesRecommendedPrice ?recommendedPrice ;
  33. gesli:usesPremiumDecision ?premium ;
  34. gesli:salespersonAdjustmentAmount ?salespersonAdjustmentAmount ;
  35. gesli:finalQuoteAmount ?finalQuoteAmount .
  36. }
  37. }
  38. }
  39. ORDER BY ?solutionName ?customerName