From 3a4020958acf5b88f366e5bc99e3009a7beca104 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 12 Mar 2021 20:12:01 -0500 Subject: [PATCH] Add owl:imports to ontologies These are required by OWL tools to use vocabulary from another ontology. Though we don't use OWL tools in LV2, they are at least useful for sanity checking the semantic side of things. These properties are also nice to have anyway, since they clearly describe the dependencies between specifications. --- lv2/atom/atom.ttl | 5 ++++- lv2/buf-size/buf-size.ttl | 4 +++- lv2/core/lv2core.ttl | 3 ++- lv2/event/event.ttl | 3 ++- lv2/log/log.ttl | 3 ++- lv2/morph/morph.ttl | 3 ++- lv2/options/options.ttl | 3 ++- lv2/parameters/parameters.ttl | 5 ++++- lv2/port-groups/port-groups.ttl | 3 ++- lv2/port-props/port-props.ttl | 3 ++- lv2/presets/presets.ttl | 3 ++- lv2/resize-port/resize-port.ttl | 3 ++- lv2/state/state.ttl | 3 ++- lv2/ui/ui.ttl | 5 +++-- lv2/urid/urid.ttl | 3 ++- 15 files changed, 36 insertions(+), 16 deletions(-) diff --git a/lv2/atom/atom.ttl b/lv2/atom/atom.ttl index ddfb430d..ef221ad3 100644 --- a/lv2/atom/atom.ttl +++ b/lv2/atom/atom.ttl @@ -14,7 +14,10 @@ , ; rdfs:label "LV2 Atom" ; - rdfs:comment "A generic value container and several data types." . + rdfs:comment "A generic value container and several data types." ; + owl:imports , + , + . atom:cType a rdf:Property , diff --git a/lv2/buf-size/buf-size.ttl b/lv2/buf-size/buf-size.ttl index 88631982..c78d2cc8 100644 --- a/lv2/buf-size/buf-size.ttl +++ b/lv2/buf-size/buf-size.ttl @@ -11,7 +11,9 @@ rdfs:label "LV2 Buf Size" ; rdfs:comment "Access to, and restrictions on, buffer sizes." ; rdfs:seeAlso , - . + ; + owl:imports , + . bufsz:boundedBlockLength a lv2:Feature ; diff --git a/lv2/core/lv2core.ttl b/lv2/core/lv2core.ttl index f5836c6e..87541693 100644 --- a/lv2/core/lv2core.ttl +++ b/lv2/core/lv2core.ttl @@ -11,7 +11,8 @@ rdfs:comment "An extensible open standard for audio plugins." ; rdfs:seeAlso , , - . + ; + owl:imports doap: . lv2:Specification a rdfs:Class , diff --git a/lv2/event/event.ttl b/lv2/event/event.ttl index de400d43..3114fc58 100644 --- a/lv2/event/event.ttl +++ b/lv2/event/event.ttl @@ -11,7 +11,8 @@ rdfs:comment "A port-based real-time generic event interface." ; rdfs:seeAlso , , - . + ; + owl:imports . ev:EventPort a rdfs:Class ; diff --git a/lv2/log/log.ttl b/lv2/log/log.ttl index 46cba45e..a8c42367 100644 --- a/lv2/log/log.ttl +++ b/lv2/log/log.ttl @@ -10,7 +10,8 @@ rdfs:label "LV2 Log" ; rdfs:comment "A feature for writing log messages." ; rdfs:seeAlso , - . + ; + owl:imports . log:Entry a rdfs:Class ; diff --git a/lv2/morph/morph.ttl b/lv2/morph/morph.ttl index 303293da..a771e030 100644 --- a/lv2/morph/morph.ttl +++ b/lv2/morph/morph.ttl @@ -13,7 +13,8 @@ rdfs:label "LV2 Morph" ; rdfs:comment "Ports that can dynamically change type." ; rdfs:seeAlso , - . + ; + owl:imports . morph:MorphPort a rdfs:Class , diff --git a/lv2/options/options.ttl b/lv2/options/options.ttl index f8388da8..78defeff 100644 --- a/lv2/options/options.ttl +++ b/lv2/options/options.ttl @@ -10,7 +10,8 @@ rdfs:label "LV2 Options" ; rdfs:comment "Runtime options for LV2 plugins and UIs." ; rdfs:seeAlso , - . + ; + owl:imports . opts:Option a rdfs:Class ; diff --git a/lv2/parameters/parameters.ttl b/lv2/parameters/parameters.ttl index 5c3dadf9..99878127 100644 --- a/lv2/parameters/parameters.ttl +++ b/lv2/parameters/parameters.ttl @@ -11,7 +11,10 @@ a owl:Ontology ; rdfs:label "LV2 Parameters" ; rdfs:comment "Common parameters for audio processing." ; - rdfs:seeAlso . + rdfs:seeAlso ; + owl:imports , + , + . param:ControlGroup a rdfs:Class ; diff --git a/lv2/port-groups/port-groups.ttl b/lv2/port-groups/port-groups.ttl index d248f28b..5173aa09 100644 --- a/lv2/port-groups/port-groups.ttl +++ b/lv2/port-groups/port-groups.ttl @@ -9,7 +9,8 @@ a owl:Ontology ; rdfs:label "LV2 Port Groups" ; rdfs:comment "Multi-channel groups of LV2 ports." ; - rdfs:seeAlso . + rdfs:seeAlso ; + owl:imports . pg:Group a rdfs:Class ; diff --git a/lv2/port-props/port-props.ttl b/lv2/port-props/port-props.ttl index 1ddeed07..ea25c6bd 100644 --- a/lv2/port-props/port-props.ttl +++ b/lv2/port-props/port-props.ttl @@ -9,7 +9,8 @@ a owl:Ontology ; rdfs:label "LV2 Port Properties" ; rdfs:comment "Various properties for LV2 plugin ports." ; - rdfs:seeAlso . + rdfs:seeAlso ; + owl:imports . pprops:trigger a lv2:PortProperty ; diff --git a/lv2/presets/presets.ttl b/lv2/presets/presets.ttl index c1caf43c..156f0813 100644 --- a/lv2/presets/presets.ttl +++ b/lv2/presets/presets.ttl @@ -9,7 +9,8 @@ a owl:Ontology ; rdfs:label "LV2 Presets" ; rdfs:comment "Presets for LV2 plugins." ; - rdfs:seeAlso . + rdfs:seeAlso ; + owl:imports . pset:Bank a rdfs:Class ; diff --git a/lv2/resize-port/resize-port.ttl b/lv2/resize-port/resize-port.ttl index 29cd18b3..a6712e71 100644 --- a/lv2/resize-port/resize-port.ttl +++ b/lv2/resize-port/resize-port.ttl @@ -10,7 +10,8 @@ rdfs:label "LV2 Resize Port" ; rdfs:comment "Dynamically sized LV2 port buffers." ; rdfs:seeAlso , - . + ; + owl:imports . rsz:resize a lv2:Feature ; diff --git a/lv2/state/state.ttl b/lv2/state/state.ttl index 19ccaa22..48537c82 100644 --- a/lv2/state/state.ttl +++ b/lv2/state/state.ttl @@ -9,7 +9,8 @@ rdfs:label "LV2 State" ; rdfs:comment "An interface for LV2 plugins to save and restore state." ; rdfs:seeAlso , - . + ; + owl:imports . state:interface a lv2:ExtensionData ; diff --git a/lv2/ui/ui.ttl b/lv2/ui/ui.ttl index 61f8bcac..654f1d7a 100644 --- a/lv2/ui/ui.ttl +++ b/lv2/ui/ui.ttl @@ -10,9 +10,10 @@ a owl:Ontology ; rdfs:label "LV2 UI" ; rdfs:comment "User interfaces for LV2 plugins." ; - owl:imports ; rdfs:seeAlso , - . + ; + owl:imports , + . ui:UI a rdfs:Class , diff --git a/lv2/urid/urid.ttl b/lv2/urid/urid.ttl index 2c44b561..53aa1e57 100644 --- a/lv2/urid/urid.ttl +++ b/lv2/urid/urid.ttl @@ -8,7 +8,8 @@ rdfs:label "LV2 URID" ; rdfs:comment "Features for mapping URIs to and from integers." ; rdfs:seeAlso , - . + ; + owl:imports . urid:map a lv2:Feature ;