Browse Source

Simplify property restrictions by removing redundancy.

zrythm_meson
David Robillard 8 years ago
parent
commit
cbe433d9d0
  1. 5
      lv2/lv2plug.in/ns/extensions/ui/ui.ttl
  2. 29
      lv2/lv2plug.in/ns/lv2core/lv2core.ttl
  3. 4
      lv2/lv2plug.in/ns/meta/meta.ttl

5
lv2/lv2plug.in/ns/extensions/ui/ui.ttl

@ -211,11 +211,8 @@ ui:PortNotification @@ -211,11 +211,8 @@ ui:PortNotification
rdfs:subClassOf [
a owl:Restriction ;
owl:onProperty ui:plugin ;
owl:someValuesFrom lv2:Plugin ;
owl:cardinality 1 ;
rdfs:comment """
A PortNotification MUST have exactly one ui:plugin which is a lv2:Plugin.
"""
rdfs:comment "A PortNotification MUST have exactly one ui:plugin." ;
] ;
lv2:documentation """
<p>A port notification. This describes which ports the host must send

29
lv2/lv2plug.in/ns/lv2core/lv2core.ttl

@ -144,10 +144,7 @@ lv2:Plugin @@ -144,10 +144,7 @@ lv2:Plugin
a owl:Restriction ;
owl:onProperty doap:name ;
owl:someValuesFrom rdf:PlainLiteral ;
rdfs:comment """
A Plugin MUST have at least one doap:name that is a string
with no language tag.
"""
rdfs:comment "A plugin MUST have at least one untranslated doap:name." ;
] ;
lv2:documentation """
<p>The class which represents an LV2 plugin.</p>
@ -171,30 +168,18 @@ lv2:Port @@ -171,30 +168,18 @@ lv2:Port
rdfs:subClassOf [
a owl:Restriction ;
owl:onProperty lv2:index ;
owl:allValuesFrom xsd:unsignedInt ;
owl:cardinality 1 ;
rdfs:comment """
A port MUST have a single lv2:index which is of type xsd:unsignedInt. The
explicit RDF datatype of the index MAY be something else (typically xsd:integer
for pretty Turtle numeric literals), but the value itself MUST be a valid
xsd:unsignedInt (i.e. a non-negative 32-bit integer).
"""
rdfs:comment "A port MUST have exactly one lv2:index." ;
] , [
a owl:Restriction ;
owl:onProperty lv2:symbol ;
owl:allValuesFrom rdf:PlainLiteral ;
owl:cardinality 1 ;
rdfs:comment """
A port MUST have a single lv2:symbol which is of type xsd:string with no
language tag.
"""
rdfs:comment "A port MUST have exactly one lv2:symbol." ;
] , [
a owl:Restriction ;
owl:onProperty lv2:name ;
owl:someValuesFrom xsd:string ;
rdfs:comment """
A port MUST have at least one lv2:name which is of type xsd:string.
"""
owl:minCardinality 1 ;
rdfs:comment "A port MUST have at least one lv2:name." ;
] ;
lv2:documentation """
<p>The class which represents an LV2 port.</p>
@ -477,7 +462,8 @@ lv2:symbol @@ -477,7 +462,8 @@ lv2:symbol
owl:DatatypeProperty ,
owl:FunctionalProperty ;
rdfs:label "symbol" ;
rdfs:range lv2:Symbol ;
rdfs:range lv2:Symbol ,
rdf:PlainLiteral ;
lv2:documentation """
<p>The value of this property MUST conform to the rules for lv2:Symbol, and
MUST NOT have a language tag.</p>
@ -491,6 +477,7 @@ lv2:name @@ -491,6 +477,7 @@ lv2:name
a rdf:Property ,
owl:DatatypeProperty ;
rdfs:label "name" ;
rdfs:range xsd:string ;
rdfs:comment """
A display name for labeling in a user interface. Unlike lv2:symbol this is
unrestricted and may be translated. The lv2:name MUST NOT be used as an

4
lv2/lv2plug.in/ns/meta/meta.ttl

@ -49,7 +49,7 @@ THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH R @@ -49,7 +49,7 @@ THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH R
meta:paniq ;
doap:release [
doap:revision "1.11.0" ;
doap:created "2014-11-01" ;
doap:created "2015-02-19" ;
dcs:blame <http://drobilla.net/drobilla#me> ;
dcs:changeset [
dcs:item [
@ -60,6 +60,8 @@ THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH R @@ -60,6 +60,8 @@ THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH R
rdfs:label "Fix merging of version histories in specification documentation."
] , [
rdfs:label "Improve API documentation."
] , [
rdfs:label "Simplify property restrictions by removing redundancy."
]
]
] , [

Loading…
Cancel
Save