tabular.oml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. vocabulary <http://ontology.rys.one/drivetrain/vocabulary/tabular#> as tabular {
  2. extends <http://www.w3.org/2001/XMLSchema#> as xsd
  3. extends <http://purl.org/dc/elements/1.1/> as dc
  4. extends <http://www.w3.org/2000/01/rdf-schema#> as rdfs
  5. extends <http://ontology.rys.one/drivetrain/vocabulary/file#> as file
  6. aspect Collection
  7. concept TabularData :> file:Data, file:File
  8. concept Cell :> file:Data
  9. concept Row :> Collection
  10. concept Column :> Collection
  11. scalar property holdsContent [
  12. domain Cell
  13. range xsd:string
  14. functional
  15. ]
  16. scalar property hasRowPosition [
  17. domain Cell
  18. // Maybe limit to positive integers here already, no need for shacl that way
  19. range xsd:int
  20. ]
  21. scalar property hasColumnPosition [
  22. domain Cell
  23. // Maybe limit to positive integers here already, no need for shacl that way
  24. range xsd:int
  25. ]
  26. scalar property hasRowId [
  27. domain Row
  28. // Maybe limit to positive integers here already, no need for shacl that way
  29. range xsd:int
  30. ]
  31. scalar property hasColumnId [
  32. domain Row
  33. // Maybe limit to positive integers here already, no need for shacl that way
  34. range xsd:int
  35. ]
  36. enumerated scalar HeadingModifier [
  37. "yes",
  38. "no"
  39. ]
  40. scalar property hasHeadingModifier [
  41. domain Row
  42. range HeadingModifier
  43. functional
  44. ]
  45. concept HeaderRow :> Row [
  46. restricts scalar property hasHeadingModifier to "yes"
  47. ]
  48. relation entity HasCell [
  49. from Collection
  50. to Cell
  51. forward hasCell
  52. reverse isInCollection
  53. ]
  54. relation entity HasCells [
  55. from TabularData
  56. to Cell
  57. forward hasCells
  58. reverse isCellOfTabularData
  59. ]
  60. relation entity HasRows [
  61. from TabularData
  62. to Row
  63. forward hasRow
  64. reverse isRowOfTabularData
  65. ]
  66. relation entity HasColumns [
  67. from TabularData
  68. to Column
  69. forward hasColumn
  70. reverse isColumnOfTabularData
  71. ]
  72. }