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/midi.ttl | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'lv2/lv2plug.in/ns/ext/midi/midi.ttl') 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