From e9e3da3ea1dec4557019cb6f267e86ab5afa1fe4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 21 Nov 2011 07:01:40 +0000 Subject: Make units.ttl a valid OWL 2 DL ontology. Update change log. --- lv2/ns/extensions/ui/lv2-ui.doap.ttl | 2 + lv2/ns/extensions/units/lv2-units.doap.ttl | 72 +++++++++++++++++++++++++++++ lv2/ns/extensions/units/manifest.ttl | 2 +- lv2/ns/extensions/units/units.ttl | 74 ++++++------------------------ 4 files changed, 89 insertions(+), 61 deletions(-) create mode 100644 lv2/ns/extensions/units/lv2-units.doap.ttl (limited to 'lv2/ns/extensions') diff --git a/lv2/ns/extensions/ui/lv2-ui.doap.ttl b/lv2/ns/extensions/ui/lv2-ui.doap.ttl index ca54c84..3a23032 100644 --- a/lv2/ns/extensions/ui/lv2-ui.doap.ttl +++ b/lv2/ns/extensions/ui/lv2-ui.doap.ttl @@ -45,6 +45,8 @@ dcs:blame ; dcs:changeset [ dcs:item [ + rdfs:label "Add build system (for installation)." + ] , [ rdfs:label "Convert documentation to HTML and use lv2:documentation." ] , [ rdfs:label "Use lv2:Specification to be discovered as an extension." diff --git a/lv2/ns/extensions/units/lv2-units.doap.ttl b/lv2/ns/extensions/units/lv2-units.doap.ttl new file mode 100644 index 0000000..d3f5c9e --- /dev/null +++ b/lv2/ns/extensions/units/lv2-units.doap.ttl @@ -0,0 +1,72 @@ +@prefix dcs: . +@prefix doap: . +@prefix foaf: . +@prefix rdfs: . + + + a foaf:Person ; + foaf:name "Steve Harris" ; + foaf:homepage ; + rdfs:seeAlso . + + + a foaf:Person ; + foaf:name "David Robillard" ; + foaf:homepage ; + foaf:mbox ; + rdfs:seeAlso . + + + a doap:Project ; + doap:name "LV2 Units" ; + doap:shortdesc "Units for LV2 values." ; + doap:created "2007-02-06" ; + doap:homepage ; + doap:license ; + doap:release [ + doap:revision "5.4" ; + doap:created "2011-11-20" ; + doap:file-release ; + dcs:blame ; + dcs:changeset [ + dcs:item [ + rdfs:label "Make units.ttl a valid OWL 2 DL ontology." + ] , [ + rdfs:label "Define used but undefined resources (units:name, units:render, units:symbol, units:Conversion, units:conversion, units:prefixConversion, units:to, and units:factor)." + ] , [ + rdfs:label "Update packaging." + ] , [ + rdfs:label "Improve documentation." + ] + ] + ] , [ + doap:revision "5.2" ; + doap:created "2010-10-05" ; + doap:file-release ; + dcs:blame ; + dcs:changeset [ + dcs:item [ + rdfs:label "Add build system (for installation)." + ] , [ + rdfs:label "Convert documentation to HTML and use lv2:documentation." + ] + ] + ] , [ + doap:revision "5.0" ; + doap:created "2010-10-05" ; + doap:file-release ; + dcs:blame ; + dcs:changeset [ + dcs:item [ + rdfs:label "Initial release." + ] , [ + rdfs:label "Define used but undefined resources (units:name, units:render, units:symbol, units:Conversion, units:conversion, units:prefixConversion, units:to, and units:factor)." + ] , [ + rdfs:label "Update packaging." + ] , [ + rdfs:label "Improve documentation." + ] + ] + ] ; + doap:developer ; + doap:maintainer . diff --git a/lv2/ns/extensions/units/manifest.ttl b/lv2/ns/extensions/units/manifest.ttl index fb5e949..e5250cc 100644 --- a/lv2/ns/extensions/units/manifest.ttl +++ b/lv2/ns/extensions/units/manifest.ttl @@ -5,5 +5,5 @@ a lv2:Specification ; lv2:minorVersion 5 ; lv2:microVersion 4 ; - rdfs:seeAlso . + rdfs:seeAlso , . diff --git a/lv2/ns/extensions/units/units.ttl b/lv2/ns/extensions/units/units.ttl index 65c3bd9..f1727a1 100644 --- a/lv2/ns/extensions/units/units.ttl +++ b/lv2/ns/extensions/units/units.ttl @@ -14,61 +14,16 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -@prefix units: . @prefix lv2: . +@prefix owl: . @prefix rdf: . @prefix rdfs: . -@prefix doap: . -@prefix foaf: . +@prefix units: . @prefix xsd: . -@prefix dcs: . - - - a foaf:Person ; - foaf:name "Steve Harris" ; - foaf:homepage ; - rdfs:seeAlso . - - - a foaf:Person ; - foaf:name "David Robillard" ; - foaf:homepage ; - foaf:mbox ; - rdfs:seeAlso . - a lv2:Specification ; - doap:name "LV2 Units" ; - doap:shortdesc "Units for LV2 values." ; - doap:created "2007-02-06" ; - doap:homepage ; - doap:license ; - doap:release [ - doap:revision "5.4" ; - doap:created "2011-11-20" ; - dcs:blame ; - dcs:changeset [ - dcs:item [ - rdfs:label "Define used but undefined resources (units:name, units:render, units:symbol, units:Conversion, units:conversion, units:prefixConversion, units:to, and units:factor)." - ] , [ - rdfs:label "Update packaging." - ] , [ - rdfs:label "Improve documentation." - ] - ] - ] ; - doap:maintainer [ - a foaf:Person ; - rdfs:seeAlso ; - foaf:homepage ; - foaf:mbox_sha1sum "44bc4fed584a2d1ac8fc55206db67656165d67fd" ; - foaf:name "Steve Harris" - ], [ - a foaf:Person ; - rdfs:seeAlso ; - foaf:homepage ; - foaf:name "David Robillard" - ] ; + a owl:Ontology ; + owl:imports ; lv2:documentation """

This extension defines a number of units for use in audio processing.

@@ -111,45 +66,45 @@ unit to a desired unit. The units defined in this extension include conversion definitions where it makes sense to do so.

""" . -units:Unit a rdfs:Class ; +units:Unit a rdfs:Class , owl:Class ; rdfs:comment "A unit for LV2 port data" . units:unit - a rdf:Property ; + a rdf:Property , owl:ObjectProperty ; rdfs:domain lv2:Port ; rdfs:range units:Unit ; rdfs:comment "Relates a port to the unit of its data" . units:name - a rdf:Property ; + a rdf:Property , owl:DatatypeProperty ; rdfs:domain units:Unit ; rdfs:range xsd:string ; rdfs:comment "A display name for the unit (e.g. decibels)." . units:render - a rdf:Property ; + a rdf:Property , owl:DatatypeProperty ; rdfs:domain units:Unit ; rdfs:range xsd:string ; rdfs:comment "A printf format string for rendering a value (eg. \"%f dB\")." . units:symbol - a rdf:Property ; + a rdf:Property , owl:DatatypeProperty ; rdfs:domain units:Unit ; rdfs:range xsd:string ; rdfs:comment "The abbreviated symbol for the unit (e.g. dB)." . units:Conversion - a rdfs:Class ; + a rdfs:Class , owl:Class ; rdfs:comment "A conversion from one unit to another." . units:conversion - a rdf:Property ; + a rdf:Property , owl:ObjectProperty ; rdfs:domain units:Unit ; rdfs:range units:Conversion ; rdfs:comment "A conversion from this unit to another." . units:prefixConversion - a rdf:Property ; + a rdf:Property , owl:ObjectProperty ; rdfs:subPropertyOf units:conversion ; rdfs:domain units:Unit ; rdfs:range units:Conversion ; @@ -159,15 +114,14 @@ A conversion from this unit to the same unit but with a different SI prefix """ . units:to - a rdf:Property ; + a rdf:Property , owl:ObjectProperty ; rdfs:domain units:Conversion ; rdfs:range units:Unit ; rdfs:comment "The target unit this conversion converts to." . units:factor - a rdf:Property ; + a rdf:Property , owl:DatatypeProperty ; rdfs:domain units:Conversion ; - rdfs:range units:Unit ; rdfs:comment """ The factor to multiple the source value by in order to convert to the target unit. -- cgit v1.2.1