Browse Source

Add more specific property types

zrythm_meson
David Robillard 3 years ago
parent
commit
55f8ee266c
  1. 3
      lv2/atom/atom.ttl
  2. 15
      lv2/event/event.ttl
  3. 3
      lv2/midi/midi.ttl
  4. 15
      lv2/patch/patch.ttl
  5. 6
      lv2/port-props/port-props.ttl
  6. 10
      lv2/presets/presets.ttl
  7. 3
      lv2/state/state.ttl
  8. 18
      lv2/ui/ui.ttl
  9. 9
      wscript

3
lv2/atom/atom.ttl

@ -229,7 +229,8 @@ atom:childType @@ -229,7 +229,8 @@ atom:childType
rdfs:comment "The type of children in a container." .
atom:supports
a rdf:Property ;
a rdf:Property ,
owl:ObjectProperty ;
rdfs:label "supports" ;
rdfs:comment "A supported atom type." ;
rdfs:range rdfs:Class .

15
lv2/event/event.ttl

@ -41,14 +41,16 @@ ev:generic @@ -41,14 +41,16 @@ ev:generic
rdfs:comment "Port works with generic events." .
ev:supportsEvent
a rdf:Property ;
a rdf:Property ,
owl:ObjectProperty ;
rdfs:domain ev:EventPort ;
rdfs:range rdfs:Class ;
rdfs:label "supports event type" ;
rdfs:comment "An event type supported by this port." .
ev:inheritsEvent
a rdf:Property ;
a rdf:Property ,
owl:ObjectProperty ;
rdfs:domain ev:EventPort ,
lv2:OutputPort ;
rdfs:range lv2:Port ;
@ -56,7 +58,8 @@ ev:inheritsEvent @@ -56,7 +58,8 @@ ev:inheritsEvent
rdfs:comment "Output port inherits event types from an input port." .
ev:supportsTimeStamp
a rdf:Property ;
a rdf:Property ,
owl:ObjectProperty ;
rdfs:domain ev:EventPort ,
lv2:InputPort ;
rdfs:range rdfs:Class ;
@ -64,7 +67,8 @@ ev:supportsTimeStamp @@ -64,7 +67,8 @@ ev:supportsTimeStamp
rdfs:comment "A time stamp type suported by this input port." .
ev:generatesTimeStamp
a rdf:Property ;
a rdf:Property ,
owl:ObjectProperty ;
rdfs:domain ev:EventPort ,
lv2:OutputPort ;
rdfs:range rdfs:Class ;
@ -72,7 +76,8 @@ ev:generatesTimeStamp @@ -72,7 +76,8 @@ ev:generatesTimeStamp
rdfs:comment "A time stamp type generated by this input port." .
ev:inheritsTimeStamp
a rdf:Property ;
a rdf:Property ,
owl:ObjectProperty ;
rdfs:domain ev:EventPort ,
lv2:OutputPort ;
rdfs:range lv2:Port ;

3
lv2/midi/midi.ttl

@ -269,7 +269,8 @@ midi:channel @@ -269,7 +269,8 @@ midi:channel
rdfs:comment "The channel number of a MIDI message." .
midi:chunk
a rdf:Property ;
a rdf:Property ,
owl:ObjectProperty ;
rdfs:range midi:Chunk ;
rdfs:label "MIDI chunk" ;
rdfs:comment "A chunk of a MIDI message." .

15
lv2/patch/patch.ttl

@ -140,7 +140,8 @@ patch:Set @@ -140,7 +140,8 @@ patch:Set
rdfs:comment "A compact request to set a property to a value." .
patch:accept
a rdf:Property ;
a rdf:Property ,
owl:ObjectProperty ;
rdfs:label "accept" ;
rdfs:domain patch:Request ;
rdfs:range rdfs:Class ;
@ -179,14 +180,16 @@ patch:destination @@ -179,14 +180,16 @@ patch:destination
rdfs:comment "The destination to move the patch:subject to." .
patch:property
a rdf:Property ;
a rdf:Property ,
owl:ObjectProperty ;
rdfs:label "property" ;
rdfs:domain patch:Message ;
rdfs:range rdf:Property ;
rdfs:comment "The property for a patch:Set or patch:Get message." .
patch:readable
a rdf:Property ;
a rdf:Property ,
owl:ObjectProperty ;
rdfs:label "readable" ;
rdfs:range rdf:Property ;
rdfs:comment "A property that can be read with a patch:Get message." .
@ -227,7 +230,8 @@ patch:subject @@ -227,7 +230,8 @@ patch:subject
rdfs:comment "The subject this message applies to." .
patch:value
a rdf:Property ;
a rdf:Property ,
owl:DatatypeProperty ;
rdfs:label "value" ;
rdfs:domain patch:Set ;
rdfs:range rdf:Property ;
@ -239,7 +243,8 @@ patch:wildcard @@ -239,7 +243,8 @@ patch:wildcard
rdfs:comment "A wildcard that matches any resource." .
patch:writable
a rdf:Property ;
a rdf:Property ,
owl:ObjectProperty ;
rdfs:label "writable" ;
rdfs:range rdf:Property ;
rdfs:comment "A property that can be set with a patch:Set or patch:Patch message." .

6
lv2/port-props/port-props.ttl

@ -62,14 +62,16 @@ pprops:notOnGUI @@ -62,14 +62,16 @@ pprops:notOnGUI
rdfs:comment "Port that should not be displayed on a GUI." .
pprops:displayPriority
a rdf:Property ;
a rdf:Property ,
owl:DatatypeProperty ;
rdfs:domain lv2:Port ;
rdfs:range xsd:nonNegativeInteger ;
rdfs:label "display priority" ;
rdfs:comment "A priority ranking this port in importance to its plugin." .
pprops:rangeSteps
a rdf:Property ;
a rdf:Property ,
owl:DatatypeProperty ;
rdfs:domain lv2:Port ;
rdfs:range xsd:nonNegativeInteger ;
rdfs:label "range steps" ;

10
lv2/presets/presets.ttl

@ -35,20 +35,24 @@ pset:Preset @@ -35,20 +35,24 @@ pset:Preset
] .
pset:bank
a rdf:Property ;
a rdf:Property ,
owl:ObjectProperty ;
rdfs:domain pset:Preset ;
rdfs:range pset:Bank ;
rdfs:label "bank" ;
rdfs:comment "The bank this preset belongs to." .
pset:value
a rdf:Property ;
a rdf:Property ,
owl:DatatypeProperty ,
owl:FunctionalProperty ;
rdfs:domain lv2:PortBase ;
rdfs:label "value" ;
rdfs:comment "The value of a port in a preset." .
pset:preset
a rdf:Property ;
a rdf:Property ,
owl:ObjectProperty ;
rdfs:domain lv2:PluginBase ;
rdfs:range pset:Preset ;
rdfs:label "preset" ;

3
lv2/state/state.ttl

@ -27,7 +27,8 @@ state:loadDefaultState @@ -27,7 +27,8 @@ state:loadDefaultState
rdfs:comment "A feature indicating that the plugin has default state." .
state:state
a rdf:Property ;
a rdf:Property ,
owl:ObjectProperty ;
rdfs:label "state" ;
rdfs:range state:State ;
rdfs:comment "The state of an LV2 plugin instance." .

18
lv2/ui/ui.ttl

@ -70,14 +70,16 @@ ui:CocoaUI @@ -70,14 +70,16 @@ ui:CocoaUI
rdfs:comment "A UI where the widget is a pointer to a NSView." .
ui:ui
a rdf:Property ;
a rdf:Property ,
owl:ObjectProperty ;
rdfs:domain lv2:Plugin ;
rdfs:range ui:UI ;
rdfs:label "user interface" ;
rdfs:comment "Relates a plugin to a UI that applies to it." .
ui:binary
a rdf:Property ;
a rdf:Property ,
owl:ObjectProperty ;
owl:sameAs lv2:binary ;
owl:deprecated "true"^^xsd:boolean ;
rdfs:label "binary" ;
@ -163,7 +165,8 @@ ui:portIndex @@ -163,7 +165,8 @@ ui:portIndex
rdfs:comment "The index of the port a portNotification applies to." .
ui:notifyType
a rdf:Property ;
a rdf:Property ,
owl:ObjectProperty ;
rdfs:domain ui:PortNotification ;
rdfs:label "notify type" ;
rdfs:comment "A particular type that the UI should be notified of." .
@ -206,19 +209,22 @@ ui:showInterface @@ -206,19 +209,22 @@ ui:showInterface
rdfs:comment "An interface for showing and hiding a window for a UI." .
ui:windowTitle
a rdf:Property ;
a rdf:Property ,
owl:DatatypeProperty ;
rdfs:range xsd:string ;
rdfs:label "window title" ;
rdfs:comment "The title for the window shown by LV2UI_Show_Interface." .
ui:updateRate
a rdf:Property ;
a rdf:Property ,
owl:DatatypeProperty ;
rdfs:range xsd:float ;
rdfs:label "update rate" ;
rdfs:comment "The target rate, in Hz, to send updates to the UI." .
ui:protocol
a rdf:Property ;
a rdf:Property ,
owl:ObjectProperty ;
rdfs:domain ui:PortNotification ;
rdfs:range ui:PortProtocol ;
rdfs:label "protocol" ;

9
wscript

@ -510,6 +510,15 @@ def test_vocabularies(check, specs, files): @@ -510,6 +510,15 @@ def test_vocabularies(check, specs, files):
check(lambda: str(documentation).endswith('\n\n'),
name = "%s documentation ends with blank line" % subject)
# Check that all properties are either datatype or object properties
for r in sorted(model.triples([None, rdf.type, rdf.Property])):
subject = r[0]
check(lambda: ((owl.DatatypeProperty in model.objects(subject, rdf.type)) or
(owl.ObjectProperty in model.objects(subject, rdf.type)) or
(owl.AnnotationProperty in model.objects(subject, rdf.type))),
name = "%s is a Datatype/Object/Annotation property" % subject)
def test(tst):
import tempfile

Loading…
Cancel
Save