aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-03-18 07:07:57 +0000
committerDavid Robillard <d@drobilla.net>2011-03-18 07:07:57 +0000
commit97fe158126b53c8fb00581c5a4d19b44b1927406 (patch)
tree6c9b03b201a89f2d899026f0581f7f5272ac6469
parent32f0a41640a5dff6f80ba1eb64bc961bd840f691 (diff)
downloadlv2-97fe158126b53c8fb00581c5a4d19b44b1927406.tar.xz
Document lv2:Point restrictions in machine readable form.
-rw-r--r--core.lv2/lv2.ttl19
1 files 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
+<q>notch</q> 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 ;