find_pm_relation.toml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. group = "Traceability"
  2. name = "Find PM Relation"
  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 DISTINCT ?from ?output ?atname WHERE {
  28. ?from a {{ from_class }} .
  29. ?from {{ relation }} ?output .
  30. ?output a {{ to_class }} .
  31. ?output {{ extra_relation }} ?atname .
  32. }
  33. '''
  34. description = "Find the PM."
  35. visual_support = true
  36. [[replacements]]
  37. placeholder = "from_class"
  38. suggestion = "ftg:Transformation"
  39. description = "Which starting class?"
  40. [[replacements]]
  41. placeholder = "relation"
  42. suggestion = "ftg:outputs"
  43. description = "Relation between the classes?"
  44. [[replacements]]
  45. placeholder = "to_class"
  46. suggestion = "ftg:Formalism"
  47. description = "The ending class?"
  48. [[replacements]]
  49. placeholder = "extra_relation"
  50. suggestion = "base:hasName"
  51. description = "End class relation?"