From 97fe158126b53c8fb00581c5a4d19b44b1927406 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 18 Mar 2011 07:07:57 +0000 Subject: Document lv2:Point restrictions in machine readable form. --- core.lv2/lv2.ttl | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/core.lv2/lv2.ttl b/core.lv2/lv2.ttl index c013119..c9d76b5 100644 --- a/core.lv2/lv2.ttl +++ b/core.lv2/lv2.ttl @@ -465,12 +465,21 @@ property without changing the Plugin URI. lv2:Point a rdfs:Class , owl:Class ; rdfs:label "Port value point" ; + rdfs:subClassOf [ + a owl:Restriction ; + owl:onProperty rdfs:label ; + owl:someValuesFrom xsd:string ; + rdfs:comment "A Point MUST have at least one string rdfs:label." ; + ] , [ + a owl:Restriction ; + owl:onProperty rdf:value ; + owl:cardinality 1 ; + rdfs:comment "A Point MUST have exactly one rdf:value." ; + ] ; rdfs:comment """ -Used to describe interesting values in a Port's range. To be valid it -requires two properties: rdfs:label and rdf:value. - -There are 3 specially defined Points in the LV2 specification (default, -minimum, and maximum), though future extensions may define more. +A Point describes an interesting value in a Port's range (much like a labeled +notch on a physical knob). A Point has a string label and a value; the +type of the value MUST be compatible with the type of the corresponding Port. """ . lv2:ScalePoint a rdfs:Class , owl:Class ; -- cgit v1.2.1