From 32d8a611c09b5a0f282e34ef89e8529e59e128e1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 9 Sep 2012 03:48:57 +0000 Subject: Add midi:HexByte datatype for status bytes and masks. --- lv2/lv2plug.in/ns/ext/midi/lv2-midi.doap.ttl | 2 ++ lv2/lv2plug.in/ns/ext/midi/midi.ttl | 18 +++++++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) (limited to 'lv2/lv2plug.in/ns/ext/midi') diff --git a/lv2/lv2plug.in/ns/ext/midi/lv2-midi.doap.ttl b/lv2/lv2plug.in/ns/ext/midi/lv2-midi.doap.ttl index 4e2121f..a7f039c 100644 --- a/lv2/lv2plug.in/ns/ext/midi/lv2-midi.doap.ttl +++ b/lv2/lv2plug.in/ns/ext/midi/lv2-midi.doap.ttl @@ -22,6 +22,8 @@ rdfs:label "Use consistent label style." ] , [ rdfs:label "Add midi:binding and midi:channel predicates." + ] , [ + rdfs:label "Add midi:HexByte datatype for status bytes and masks." ] , [ rdfs:label "Remove non-standard midi:Tick message type." ] , [ diff --git a/lv2/lv2plug.in/ns/ext/midi/midi.ttl b/lv2/lv2plug.in/ns/ext/midi/midi.ttl index faddc36..e35d3e3 100644 --- a/lv2/lv2plug.in/ns/ext/midi/midi.ttl +++ b/lv2/lv2plug.in/ns/ext/midi/midi.ttl @@ -98,6 +98,16 @@ midi:Controller midi:property midi:controllerValue ] . +midi:HexByte + a rdfs:Datatype ; + owl:onDatatype xsd:hexBinary ; + owl:withRestrictions ( + [ + xsd:maxInclusive "FF" + ] + ) ; + rdfs:comment "A hexadecimal byte, which is a xsd:hexBinary value <= FF" . + midi:MidiEvent a rdfs:Class ; rdfs:label "MIDI Message" ; @@ -352,16 +362,14 @@ midi:status a rdf:Property , owl:DatatypeProperty , owl:FunctionalProperty ; - rdfs:range xsd:byte , - xsd:hexBinary ; + rdfs:range midi:HexByte ; rdfs:comment "The exact status byte for a message of this type." . midi:statusMask a rdf:Property , owl:DatatypeProperty , owl:FunctionalProperty ; - rdfs:range xsd:byte , - xsd:hexBinary ; + rdfs:range midi:HexByte ; rdfs:comment """ The status byte for a message of this type on channel 1, i.e. a status byte with the lower nibble set to zero.""" . @@ -370,5 +378,5 @@ midi:velocity a rdf:Property , owl:DatatypeProperty , owl:FunctionalProperty ; - rdfs:range xsd:byte ; + rdfs:range midi:HexByte ; rdfs:comment "The velocity of a note message (0 to 127)." . -- cgit v1.2.1