example_function.toml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. group = "Service"
  2. name = "Example Function"
  3. prefix = '''
  4. PREFIX dtf: <https://ontology.rys.app/dt/function/>
  5. PREFIX owl: <http://www.w3.org/2002/07/owl#>
  6. PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
  7. PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
  8. PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  9. PREFIX art: <http://ua.be/drivetrain/description/artifacts/artifacts#>
  10. PREFIX tabular: <http://ua.be/sdo2l/vocabulary/base/tabular#>
  11. PREFIX dc: <http://purl.org/dc/elements/1.1/>
  12. PREFIX ftg: <http://ua.be/sdo2l/vocabulary/ftg#>
  13. PREFIX base: <http://ua.be/sdo2l/vocabulary/base#>
  14. PREFIX vim4: <http://bipm.org/jcgm/vim4#>
  15. PREFIX comp: <http://ua.be/sdo2l/vocabulary/component#>
  16. PREFIX code: <http://ua.be/sdo2l/vocabulary/base/code#>
  17. PREFIX script: <http://ua.be/sdo2l/vocabulary/base/script#>
  18. PREFIX file: <http://ua.be/sdo2l/vocabulary/base/file#>
  19. PREFIX swrl: <http://www.w3.org/2003/11/swrl#>
  20. PREFIX traces: <http://ua.be/sdo2l/vocabulary/processtraces#>
  21. PREFIX wf: <http://ua.be/sdo2l/vocabulary/workflow#>
  22. PREFIX text: <http://ua.be/sdo2l/vocabulary/base/text#>
  23. PREFIX federation: <http://ua.be/sdo2l/vocabulary/federation#>
  24. PREFIX dftg: <http://ua.be/drivetrain/description/ftg#>
  25. '''
  26. query = '''
  27. SELECT ?outlier ?outlier_value WHERE {
  28. SERVICE <http://localhost:8000/> {
  29. SELECT ?outlier ?outlier_value WHERE {
  30. BIND(dtf:example("data2.csv", "1") AS ?outlier)
  31. }
  32. }
  33. }
  34. '''
  35. description = "Example query calling the example function."
  36. visual_support = true