richtext.oml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. vocabulary <http://ontology.rys.one/drivetrain/vocabulary/richtext#> as richtext {
  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/text#> as text
  6. concept RichTextData :> text:TextData
  7. concept RichTextModifer
  8. concept TextPosition
  9. scalar property onLine [
  10. domain TextPosition
  11. range xsd:int
  12. ]
  13. scalar property atPosition [
  14. domain TextPosition
  15. range xsd:int
  16. ]
  17. enumerated scalar RichTextModifierOption [
  18. "italic",
  19. "bold"
  20. ]
  21. scalar property hasRichTextModifierOption [
  22. domain RichTextModifer
  23. range RichTextModifierOption
  24. functional
  25. ]
  26. relation entity StartsAt [
  27. from RichTextModifer
  28. to TextPosition
  29. forward modifierStartsAt
  30. ]
  31. relation entity StopsAt [
  32. from RichTextModifer
  33. to TextPosition
  34. forward modifierStopsAt
  35. ]
  36. concept ItalicRichTextModifier :> RichTextModifer [
  37. restricts scalar property hasRichTextModifierOption to "italic"
  38. ]
  39. concept BoldRichTextModifier :> RichTextModifer [
  40. restricts scalar property hasRichTextModifierOption to "bold"
  41. ]
  42. }