get_class_label_description.toml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. group = "Info"
  2. name = "Get Class Label Description"
  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 ?label ?description WHERE {
  28. ?class a owl:Class .
  29. OPTIONAL { ?class rdfs:label ?label }
  30. OPTIONAL { ?class rdfs:comment ?description }
  31. }
  32. '''
  33. description = "Get all classes and their label, and description."
  34. visual_support = true