market-context.rq 1.2 KB

123456789101112131415161718192021222324252627282930
  1. PREFIX gesli: <https://gesli.example/ontology#>
  2. PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  3. SELECT ?kind ?resource ?amount ?currency ?validFrom ?validTo ?origin ?destination
  4. ?strategyName ?strategyObjective ?strategyAdjustmentRate
  5. WHERE {
  6. {
  7. ?resource a gesli:MarketPriceBenchmark ;
  8. gesli:marketBenchmarkAmount ?amount ;
  9. gesli:currency ?currency .
  10. OPTIONAL { ?resource gesli:originLocation ?origin . }
  11. OPTIONAL { ?resource gesli:destinationLocation ?destination . }
  12. OPTIONAL { ?resource gesli:validFrom ?validFrom . }
  13. OPTIONAL { ?resource gesli:validTo ?validTo . }
  14. BIND("benchmark" AS ?kind)
  15. }
  16. UNION
  17. {
  18. ?resource a/rdfs:subClassOf* gesli:ProductStrategy ;
  19. gesli:strategyName ?strategyName ;
  20. gesli:strategyObjective ?strategyObjective ;
  21. gesli:strategyEnabled true ;
  22. gesli:strategyAdjustmentRate ?strategyAdjustmentRate .
  23. OPTIONAL { ?resource gesli:strategyScopeOrigin ?origin . }
  24. OPTIONAL { ?resource gesli:strategyScopeDestination ?destination . }
  25. OPTIONAL { ?resource gesli:validFrom ?validFrom . }
  26. OPTIONAL { ?resource gesli:validTo ?validTo . }
  27. BIND("strategy" AS ?kind)
  28. }
  29. }