find_class_property.toml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. group = "Traceability"
  2. name = "Find Class Property"
  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 ?class WHERE {
  28. ?subject {{ class }} ?o .
  29. ?subject a ?class .
  30. }
  31. '''
  32. description = "Find all the properties for a class."
  33. visual_support = true
  34. [[replacements]]
  35. placeholder = "class"
  36. suggestion = "base:ArtifactType"
  37. description = "For which class do you want to find properties?"