From cbe433d9d0f6c71626f9e1e2c9f4600ced6ad97a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 19 Feb 2015 21:32:07 -0500 Subject: Simplify property restrictions by removing redundancy. --- lv2/lv2plug.in/ns/extensions/ui/ui.ttl | 5 +---- lv2/lv2plug.in/ns/lv2core/lv2core.ttl | 29 ++++++++--------------------- lv2/lv2plug.in/ns/meta/meta.ttl | 4 +++- 3 files changed, 12 insertions(+), 26 deletions(-) (limited to 'lv2') diff --git a/lv2/lv2plug.in/ns/extensions/ui/ui.ttl b/lv2/lv2plug.in/ns/extensions/ui/ui.ttl index 512a967..1d3d440 100644 --- a/lv2/lv2plug.in/ns/extensions/ui/ui.ttl +++ b/lv2/lv2plug.in/ns/extensions/ui/ui.ttl @@ -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 """

A port notification. This describes which ports the host must send diff --git a/lv2/lv2plug.in/ns/lv2core/lv2core.ttl b/lv2/lv2plug.in/ns/lv2core/lv2core.ttl index d37892d..c82f596 100644 --- a/lv2/lv2plug.in/ns/lv2core/lv2core.ttl +++ b/lv2/lv2plug.in/ns/lv2core/lv2core.ttl @@ -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 """

The class which represents an LV2 plugin.

@@ -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 """

The class which represents an LV2 port.

@@ -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 """

The value of this property MUST conform to the rules for lv2:Symbol, and MUST NOT have a language tag.

@@ -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 diff --git a/lv2/lv2plug.in/ns/meta/meta.ttl b/lv2/lv2plug.in/ns/meta/meta.ttl index c072231..b65cde9 100644 --- a/lv2/lv2plug.in/ns/meta/meta.ttl +++ b/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 meta:paniq ; doap:release [ doap:revision "1.11.0" ; - doap:created "2014-11-01" ; + doap:created "2015-02-19" ; dcs:blame ; dcs:changeset [ dcs:item [ @@ -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." ] ] ] , [ -- cgit v1.2.1