External, Non-PPA KXStudio Repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

246 lines
7.6KB

  1. From 3a4020958acf5b88f366e5bc99e3009a7beca104 Mon Sep 17 00:00:00 2001
  2. From: David Robillard <d@drobilla.net>
  3. Date: Fri, 12 Mar 2021 20:12:01 -0500
  4. Subject: [PATCH] Add owl:imports to ontologies
  5. These are required by OWL tools to use vocabulary from another ontology.
  6. Though we don't use OWL tools in LV2, they are at least useful for sanity
  7. checking the semantic side of things. These properties are also nice to have
  8. anyway, since they clearly describe the dependencies between specifications.
  9. ---
  10. lv2/atom/atom.ttl | 5 ++++-
  11. lv2/buf-size/buf-size.ttl | 4 +++-
  12. lv2/core/lv2core.ttl | 3 ++-
  13. lv2/event/event.ttl | 3 ++-
  14. lv2/log/log.ttl | 3 ++-
  15. lv2/morph/morph.ttl | 3 ++-
  16. lv2/options/options.ttl | 3 ++-
  17. lv2/parameters/parameters.ttl | 5 ++++-
  18. lv2/port-groups/port-groups.ttl | 3 ++-
  19. lv2/port-props/port-props.ttl | 3 ++-
  20. lv2/presets/presets.ttl | 3 ++-
  21. lv2/resize-port/resize-port.ttl | 3 ++-
  22. lv2/state/state.ttl | 3 ++-
  23. lv2/ui/ui.ttl | 5 +++--
  24. lv2/urid/urid.ttl | 3 ++-
  25. 15 files changed, 36 insertions(+), 16 deletions(-)
  26. diff --git a/lv2/atom/atom.ttl b/lv2/atom/atom.ttl
  27. index ddfb430d..ef221ad3 100644
  28. --- a/lv2/atom/atom.ttl
  29. +++ b/lv2/atom/atom.ttl
  30. @@ -14,7 +14,10 @@
  31. <forge.h> ,
  32. <atom.meta.ttl> ;
  33. rdfs:label "LV2 Atom" ;
  34. - rdfs:comment "A generic value container and several data types." .
  35. + rdfs:comment "A generic value container and several data types." ;
  36. + owl:imports <http://lv2plug.in/ns/lv2core> ,
  37. + <http://lv2plug.in/ns/extensions/ui> ,
  38. + <http://lv2plug.in/ns/extensions/units> .
  39. atom:cType
  40. a rdf:Property ,
  41. diff --git a/lv2/buf-size/buf-size.ttl b/lv2/buf-size/buf-size.ttl
  42. index 88631982..c78d2cc8 100644
  43. --- a/lv2/buf-size/buf-size.ttl
  44. +++ b/lv2/buf-size/buf-size.ttl
  45. @@ -11,7 +11,9 @@
  46. rdfs:label "LV2 Buf Size" ;
  47. rdfs:comment "Access to, and restrictions on, buffer sizes." ;
  48. rdfs:seeAlso <buf-size.h> ,
  49. - <buf-size.meta.ttl> .
  50. + <buf-size.meta.ttl> ;
  51. + owl:imports <http://lv2plug.in/ns/lv2core> ,
  52. + <http://lv2plug.in/ns/ext/options> .
  53. bufsz:boundedBlockLength
  54. a lv2:Feature ;
  55. diff --git a/lv2/core/lv2core.ttl b/lv2/core/lv2core.ttl
  56. index f5836c6e..87541693 100644
  57. --- a/lv2/core/lv2core.ttl
  58. +++ b/lv2/core/lv2core.ttl
  59. @@ -11,7 +11,8 @@
  60. rdfs:comment "An extensible open standard for audio plugins." ;
  61. rdfs:seeAlso <lv2.h> ,
  62. <lv2_util.h> ,
  63. - <lv2core.meta.ttl> .
  64. + <lv2core.meta.ttl> ;
  65. + owl:imports doap: .
  66. lv2:Specification
  67. a rdfs:Class ,
  68. diff --git a/lv2/event/event.ttl b/lv2/event/event.ttl
  69. index de400d43..3114fc58 100644
  70. --- a/lv2/event/event.ttl
  71. +++ b/lv2/event/event.ttl
  72. @@ -11,7 +11,8 @@
  73. rdfs:comment "A port-based real-time generic event interface." ;
  74. rdfs:seeAlso <event.h> ,
  75. <event-helpers.h> ,
  76. - <event.meta.ttl> .
  77. + <event.meta.ttl> ;
  78. + owl:imports <http://lv2plug.in/ns/lv2core> .
  79. ev:EventPort
  80. a rdfs:Class ;
  81. diff --git a/lv2/log/log.ttl b/lv2/log/log.ttl
  82. index 46cba45e..a8c42367 100644
  83. --- a/lv2/log/log.ttl
  84. +++ b/lv2/log/log.ttl
  85. @@ -10,7 +10,8 @@
  86. rdfs:label "LV2 Log" ;
  87. rdfs:comment "A feature for writing log messages." ;
  88. rdfs:seeAlso <log.h> ,
  89. - <log.meta.ttl> .
  90. + <log.meta.ttl> ;
  91. + owl:imports <http://lv2plug.in/ns/lv2core> .
  92. log:Entry
  93. a rdfs:Class ;
  94. diff --git a/lv2/morph/morph.ttl b/lv2/morph/morph.ttl
  95. index 303293da..a771e030 100644
  96. --- a/lv2/morph/morph.ttl
  97. +++ b/lv2/morph/morph.ttl
  98. @@ -13,7 +13,8 @@
  99. rdfs:label "LV2 Morph" ;
  100. rdfs:comment "Ports that can dynamically change type." ;
  101. rdfs:seeAlso <morph.h> ,
  102. - <morph.meta.ttl> .
  103. + <morph.meta.ttl> ;
  104. + owl:imports <http://lv2plug.in/ns/lv2core> .
  105. morph:MorphPort
  106. a rdfs:Class ,
  107. diff --git a/lv2/options/options.ttl b/lv2/options/options.ttl
  108. index f8388da8..78defeff 100644
  109. --- a/lv2/options/options.ttl
  110. +++ b/lv2/options/options.ttl
  111. @@ -10,7 +10,8 @@
  112. rdfs:label "LV2 Options" ;
  113. rdfs:comment "Runtime options for LV2 plugins and UIs." ;
  114. rdfs:seeAlso <options.h> ,
  115. - <options.meta.ttl> .
  116. + <options.meta.ttl> ;
  117. + owl:imports <http://lv2plug.in/ns/lv2core> .
  118. opts:Option
  119. a rdfs:Class ;
  120. diff --git a/lv2/parameters/parameters.ttl b/lv2/parameters/parameters.ttl
  121. index 5c3dadf9..99878127 100644
  122. --- a/lv2/parameters/parameters.ttl
  123. +++ b/lv2/parameters/parameters.ttl
  124. @@ -11,7 +11,10 @@
  125. a owl:Ontology ;
  126. rdfs:label "LV2 Parameters" ;
  127. rdfs:comment "Common parameters for audio processing." ;
  128. - rdfs:seeAlso <parameters.meta.ttl> .
  129. + rdfs:seeAlso <parameters.meta.ttl> ;
  130. + owl:imports <http://lv2plug.in/ns/ext/atom> ,
  131. + <http://lv2plug.in/ns/ext/port-groups> ,
  132. + <http://lv2plug.in/ns/lv2core> .
  133. param:ControlGroup
  134. a rdfs:Class ;
  135. diff --git a/lv2/port-groups/port-groups.ttl b/lv2/port-groups/port-groups.ttl
  136. index d248f28b..5173aa09 100644
  137. --- a/lv2/port-groups/port-groups.ttl
  138. +++ b/lv2/port-groups/port-groups.ttl
  139. @@ -9,7 +9,8 @@
  140. a owl:Ontology ;
  141. rdfs:label "LV2 Port Groups" ;
  142. rdfs:comment "Multi-channel groups of LV2 ports." ;
  143. - rdfs:seeAlso <port-groups.meta.ttl> .
  144. + rdfs:seeAlso <port-groups.meta.ttl> ;
  145. + owl:imports <http://lv2plug.in/ns/lv2core> .
  146. pg:Group
  147. a rdfs:Class ;
  148. diff --git a/lv2/port-props/port-props.ttl b/lv2/port-props/port-props.ttl
  149. index 1ddeed07..ea25c6bd 100644
  150. --- a/lv2/port-props/port-props.ttl
  151. +++ b/lv2/port-props/port-props.ttl
  152. @@ -9,7 +9,8 @@
  153. a owl:Ontology ;
  154. rdfs:label "LV2 Port Properties" ;
  155. rdfs:comment "Various properties for LV2 plugin ports." ;
  156. - rdfs:seeAlso <port-props.meta.ttl> .
  157. + rdfs:seeAlso <port-props.meta.ttl> ;
  158. + owl:imports <http://lv2plug.in/ns/lv2core> .
  159. pprops:trigger
  160. a lv2:PortProperty ;
  161. diff --git a/lv2/presets/presets.ttl b/lv2/presets/presets.ttl
  162. index c1caf43c..156f0813 100644
  163. --- a/lv2/presets/presets.ttl
  164. +++ b/lv2/presets/presets.ttl
  165. @@ -9,7 +9,8 @@
  166. a owl:Ontology ;
  167. rdfs:label "LV2 Presets" ;
  168. rdfs:comment "Presets for LV2 plugins." ;
  169. - rdfs:seeAlso <presets.meta.ttl> .
  170. + rdfs:seeAlso <presets.meta.ttl> ;
  171. + owl:imports <http://lv2plug.in/ns/lv2core> .
  172. pset:Bank
  173. a rdfs:Class ;
  174. diff --git a/lv2/resize-port/resize-port.ttl b/lv2/resize-port/resize-port.ttl
  175. index 29cd18b3..a6712e71 100644
  176. --- a/lv2/resize-port/resize-port.ttl
  177. +++ b/lv2/resize-port/resize-port.ttl
  178. @@ -10,7 +10,8 @@
  179. rdfs:label "LV2 Resize Port" ;
  180. rdfs:comment "Dynamically sized LV2 port buffers." ;
  181. rdfs:seeAlso <resize-port.h> ,
  182. - <resize-port.meta.ttl> .
  183. + <resize-port.meta.ttl> ;
  184. + owl:imports <http://lv2plug.in/ns/lv2core> .
  185. rsz:resize
  186. a lv2:Feature ;
  187. diff --git a/lv2/state/state.ttl b/lv2/state/state.ttl
  188. index 19ccaa22..48537c82 100644
  189. --- a/lv2/state/state.ttl
  190. +++ b/lv2/state/state.ttl
  191. @@ -9,7 +9,8 @@
  192. rdfs:label "LV2 State" ;
  193. rdfs:comment "An interface for LV2 plugins to save and restore state." ;
  194. rdfs:seeAlso <state.h> ,
  195. - <state.meta.ttl> .
  196. + <state.meta.ttl> ;
  197. + owl:imports <http://lv2plug.in/ns/lv2core> .
  198. state:interface
  199. a lv2:ExtensionData ;
  200. diff --git a/lv2/ui/ui.ttl b/lv2/ui/ui.ttl
  201. index 61f8bcac..654f1d7a 100644
  202. --- a/lv2/ui/ui.ttl
  203. +++ b/lv2/ui/ui.ttl
  204. @@ -10,9 +10,10 @@
  205. a owl:Ontology ;
  206. rdfs:label "LV2 UI" ;
  207. rdfs:comment "User interfaces for LV2 plugins." ;
  208. - owl:imports <http://lv2plug.in/ns/lv2core> ;
  209. rdfs:seeAlso <ui.h> ,
  210. - <ui.meta.ttl> .
  211. + <ui.meta.ttl> ;
  212. + owl:imports <http://lv2plug.in/ns/lv2core> ,
  213. + <http://lv2plug.in/ns/ext/options> .
  214. ui:UI
  215. a rdfs:Class ,
  216. diff --git a/lv2/urid/urid.ttl b/lv2/urid/urid.ttl
  217. index 2c44b561..53aa1e57 100644
  218. --- a/lv2/urid/urid.ttl
  219. +++ b/lv2/urid/urid.ttl
  220. @@ -8,7 +8,8 @@
  221. rdfs:label "LV2 URID" ;
  222. rdfs:comment "Features for mapping URIs to and from integers." ;
  223. rdfs:seeAlso <urid.h> ,
  224. - <urid.meta.ttl> .
  225. + <urid.meta.ttl> ;
  226. + owl:imports <http://lv2plug.in/ns/lv2core> .
  227. urid:map
  228. a lv2:Feature ;