1@prefix owl: <http://www.w3.org/2002/07/owl#> . 2@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 3@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 4@prefix units: <http://lv2plug.in/ns/extensions/units#> . 5@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 6 7<http://lv2plug.in/ns/extensions/units> 8 a owl:Ontology ; 9 rdfs:label "LV2 Units" ; 10 rdfs:comment "Units for LV2 values." ; 11 rdfs:seeAlso <units.h> , 12 <units.meta.ttl> . 13 14units:Unit 15 a rdfs:Class , 16 owl:Class ; 17 rdfs:label "Unit" ; 18 rdfs:comment "A unit for a control value." . 19 20units:unit 21 a rdf:Property , 22 owl:ObjectProperty ; 23 rdfs:range units:Unit ; 24 rdfs:label "unit" ; 25 rdfs:comment "The unit used by the value of a port or parameter." . 26 27units:render 28 a rdf:Property , 29 owl:DatatypeProperty ; 30 rdfs:label "unit format string" ; 31 rdfs:domain units:Unit ; 32 rdfs:range xsd:string ; 33 rdfs:comment """A printf format string for rendering a value (e.g., "%f dB").""" . 34 35units:symbol 36 a rdf:Property , 37 owl:DatatypeProperty ; 38 rdfs:label "unit symbol" ; 39 rdfs:domain units:Unit ; 40 rdfs:range xsd:string ; 41 rdfs:comment """The abbreviated symbol for this unit (e.g., "dB").""" . 42 43units:Conversion 44 a rdfs:Class , 45 owl:Class ; 46 rdfs:subClassOf [ 47 a owl:Restriction ; 48 owl:onProperty units:to ; 49 owl:cardinality 1 ; 50 rdfs:comment "A conversion MUST have exactly 1 units:to property." 51 ] ; 52 rdfs:label "Conversion" ; 53 rdfs:comment "A conversion from one unit to another." . 54 55units:conversion 56 a rdf:Property , 57 owl:ObjectProperty ; 58 rdfs:domain units:Unit ; 59 rdfs:range units:Conversion ; 60 rdfs:label "conversion" ; 61 rdfs:comment "A conversion from this unit to another." . 62 63units:prefixConversion 64 a rdf:Property , 65 owl:ObjectProperty ; 66 rdfs:subPropertyOf units:conversion ; 67 rdfs:domain units:Unit ; 68 rdfs:range units:Conversion ; 69 rdfs:label "prefix conversion" ; 70 rdfs:comment "A conversion from this unit to another with the same base but a different prefix." . 71 72units:to 73 a rdf:Property , 74 owl:ObjectProperty ; 75 rdfs:domain units:Conversion ; 76 rdfs:range units:Unit ; 77 rdfs:label "conversion target" ; 78 rdfs:comment "The target unit this conversion converts to." . 79 80units:factor 81 a rdf:Property , 82 owl:DatatypeProperty ; 83 rdfs:domain units:Conversion ; 84 rdfs:label "conversion factor" ; 85 rdfs:comment "The factor to multiply the source value by in order to convert to the target unit." . 86 87units:s 88 a units:Unit ; 89 units:conversion [ 90 units:factor 0.0166666666 ; 91 units:to units:min 92 ] ; 93 rdfs:label "seconds" ; 94 rdfs:comment "Seconds, the SI base unit for time." ; 95 units:prefixConversion [ 96 units:factor 1000 ; 97 units:to units:ms 98 ] ; 99 units:render "%f s" ; 100 units:symbol "s" . 101 102units:ms 103 a units:Unit ; 104 rdfs:label "milliseconds" ; 105 rdfs:comment "Milliseconds (thousandths of seconds)." ; 106 units:prefixConversion [ 107 units:factor 0.001 ; 108 units:to units:s 109 ] ; 110 units:render "%f ms" ; 111 units:symbol "ms" . 112 113units:min 114 a units:Unit ; 115 units:conversion [ 116 units:factor 60.0 ; 117 units:to units:s 118 ] ; 119 rdfs:label "minutes" ; 120 rdfs:comment "Minutes (60s of seconds and 60ths of an hour)." ; 121 units:render "%f mins" ; 122 units:symbol "min" . 123 124units:bar 125 a units:Unit ; 126 rdfs:label "bars" ; 127 rdfs:comment "Musical bars or measures." ; 128 units:render "%f bars" ; 129 units:symbol "bars" . 130 131units:beat 132 a units:Unit ; 133 rdfs:label "beats" ; 134 rdfs:comment "Musical beats." ; 135 units:render "%f beats" ; 136 units:symbol "beats" . 137 138units:frame 139 a units:Unit ; 140 rdfs:label "audio frames" ; 141 rdfs:comment "Audio frames or samples." ; 142 units:render "%f frames" ; 143 units:symbol "frames" . 144 145units:m 146 a units:Unit ; 147 units:conversion [ 148 units:factor 39.37 ; 149 units:to units:inch 150 ] ; 151 rdfs:label "metres" ; 152 rdfs:comment "Metres, the SI base unit for length." ; 153 units:prefixConversion [ 154 units:factor 100 ; 155 units:to units:cm 156 ] , [ 157 units:factor 1000 ; 158 units:to units:mm 159 ] , [ 160 units:factor 0.001 ; 161 units:to units:km 162 ] ; 163 units:render "%f m" ; 164 units:symbol "m" . 165 166units:cm 167 a units:Unit ; 168 units:conversion [ 169 units:factor 0.3937 ; 170 units:to units:inch 171 ] ; 172 rdfs:label "centimetres" ; 173 rdfs:comment "Centimetres (hundredths of metres)." ; 174 units:prefixConversion [ 175 units:factor 0.01 ; 176 units:to units:m 177 ] , [ 178 units:factor 10 ; 179 units:to units:mm 180 ] , [ 181 units:factor 0.00001 ; 182 units:to units:km 183 ] ; 184 units:render "%f cm" ; 185 units:symbol "cm" . 186 187units:mm 188 a units:Unit ; 189 units:conversion [ 190 units:factor 0.03937 ; 191 units:to units:inch 192 ] ; 193 rdfs:label "millimetres" ; 194 rdfs:comment "Millimetres (thousandths of metres)." ; 195 units:prefixConversion [ 196 units:factor 0.001 ; 197 units:to units:m 198 ] , [ 199 units:factor 0.1 ; 200 units:to units:cm 201 ] , [ 202 units:factor 0.000001 ; 203 units:to units:km 204 ] ; 205 units:render "%f mm" ; 206 units:symbol "mm" . 207 208units:km 209 a units:Unit ; 210 units:conversion [ 211 units:factor 0.62138818 ; 212 units:to units:mile 213 ] ; 214 rdfs:label "kilometres" ; 215 rdfs:comment "Kilometres (thousands of metres)." ; 216 units:prefixConversion [ 217 units:factor 1000 ; 218 units:to units:m 219 ] , [ 220 units:factor 100000 ; 221 units:to units:cm 222 ] , [ 223 units:factor 1000000 ; 224 units:to units:mm 225 ] ; 226 units:render "%f km" ; 227 units:symbol "km" . 228 229units:inch 230 a units:Unit ; 231 units:conversion [ 232 units:factor 0.0254 ; 233 units:to units:m 234 ] ; 235 rdfs:label "inches" ; 236 rdfs:comment "An inch, defined as exactly 0.0254 metres." ; 237 units:render "%f\"" ; 238 units:symbol "in" . 239 240units:mile 241 a units:Unit ; 242 units:conversion [ 243 units:factor 1609.344 ; 244 units:to units:m 245 ] ; 246 rdfs:label "miles" ; 247 rdfs:comment "A mile, defined as exactly 1609.344 metres." ; 248 units:render "%f mi" ; 249 units:symbol "mi" . 250 251units:db 252 a units:Unit ; 253 rdfs:label "decibels" ; 254 rdfs:comment "Decibels, a logarithmic relative unit where 0 is unity." ; 255 units:render "%f dB" ; 256 units:symbol "dB" . 257 258units:pc 259 a units:Unit ; 260 units:conversion [ 261 units:factor 0.01 ; 262 units:to units:coef 263 ] ; 264 rdfs:label "percent" ; 265 rdfs:comment "Percentage, a ratio as a fraction of 100." ; 266 units:render "%f%%" ; 267 units:symbol "%" . 268 269units:coef 270 a units:Unit ; 271 units:conversion [ 272 units:factor 100 ; 273 units:to units:pc 274 ] ; 275 rdfs:label "coefficient" ; 276 rdfs:comment "A scale coefficient where 1 is unity, or 100 percent." ; 277 units:render "* %f" ; 278 units:symbol "" . 279 280units:hz 281 a units:Unit ; 282 rdfs:label "hertz" ; 283 rdfs:comment "Hertz, or inverse seconds, the SI derived unit for frequency." ; 284 units:prefixConversion [ 285 units:factor 0.001 ; 286 units:to units:khz 287 ] , [ 288 units:factor 0.000001 ; 289 units:to units:mhz 290 ] ; 291 units:render "%f Hz" ; 292 units:symbol "Hz" . 293 294units:khz 295 a units:Unit ; 296 rdfs:label "kilohertz" ; 297 rdfs:comment "Kilohertz (thousands of Hertz)." ; 298 units:prefixConversion [ 299 units:factor 1000 ; 300 units:to units:hz 301 ] , [ 302 units:factor 0.001 ; 303 units:to units:mhz 304 ] ; 305 units:render "%f kHz" ; 306 units:symbol "kHz" . 307 308units:mhz 309 a units:Unit ; 310 rdfs:label "megahertz" ; 311 rdfs:comment "Megahertz (millions of Hertz)." ; 312 units:prefixConversion [ 313 units:factor 1000000 ; 314 units:to units:hz 315 ] , [ 316 units:factor 0.001 ; 317 units:to units:khz 318 ] ; 319 units:render "%f MHz" ; 320 units:symbol "MHz" . 321 322units:bpm 323 a units:Unit ; 324 rdfs:label "beats per minute" ; 325 rdfs:comment "Beats Per Minute (BPM), the standard unit for musical tempo." ; 326 units:prefixConversion [ 327 units:factor 0.0166666666 ; 328 units:to units:hz 329 ] ; 330 units:render "%f BPM" ; 331 units:symbol "BPM" . 332 333units:oct 334 a units:Unit ; 335 units:conversion [ 336 units:factor 12.0 ; 337 units:to units:semitone12TET 338 ] ; 339 rdfs:label "octaves" ; 340 rdfs:comment "Octaves, relative musical pitch where +1 octave doubles the frequency." ; 341 units:render "%f octaves" ; 342 units:symbol "oct" . 343 344units:cent 345 a units:Unit ; 346 units:conversion [ 347 units:factor 0.01 ; 348 units:to units:semitone12TET 349 ] ; 350 rdfs:label "cents" ; 351 rdfs:comment "Cents (hundredths of semitones)." ; 352 units:render "%f ct" ; 353 units:symbol "ct" . 354 355units:semitone12TET 356 a units:Unit ; 357 units:conversion [ 358 units:factor 0.083333333 ; 359 units:to units:oct 360 ] ; 361 rdfs:label "semitones" ; 362 rdfs:comment "A semitone in the 12-tone equal temperament scale." ; 363 units:render "%f semi" ; 364 units:symbol "semi" . 365 366units:degree 367 a units:Unit ; 368 rdfs:label "degrees" ; 369 rdfs:comment "An angle where 360 degrees is one full rotation." ; 370 units:render "%f deg" ; 371 units:symbol "deg" . 372 373units:midiNote 374 a units:Unit ; 375 rdfs:label "MIDI note" ; 376 rdfs:comment "A MIDI note number." ; 377 units:render "MIDI note %d" ; 378 units:symbol "note" . 379 380