comparison dml-cla/ontologies/dmlclaOntology.n3 @ 0:718306e29690 tip

commiting public release
author Daniel Wolff
date Tue, 09 Feb 2016 21:05:06 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:718306e29690
1 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
2 @prefix owl: <http://www.w3.org/2002/07/owl#> .
3 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
4 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
5 @prefix dml: <http://dml.org/dml/cla#> .
6 @prefix vamp: <http://purl.org/ontology/vamp/> .
7 @prefix dc: <http://purl.org/dc/elements/1.1/> .
8 @prefix qmplugbase: <http://vamp-plugins.org/rdf/plugins/qm-vamp-plugins#> .
9 @prefix silvetplugbase: <http://vamp-plugins.org/rdf/plugins/silvet#> .
10
11 # This file defines an ontology, which also imports the vamp plugin ontology
12 <dmlclaOntology.n3> a owl:Ontology;
13 owl:imports <http://vamp-plugins.org/rdf/plugins/qm-vamp-plugins> .
14
15 # Our highest level class is a dml:Transform
16 dml:Transform a owl:Class .
17 dml:CollectionLevelAnalysis rdfs:subClassOf dml:Transform .
18
19 dml:type rdfs:subPropertyOf rdf:type .
20
21 vamp:Transform rdfs:subClassOf dml:Transform .
22
23 dml:input a owl:ObjectProperty .
24 dml:output a owl:ObjectProperty .
25
26 # A CollectionLevelKeyTonic is a CollectionLevelAnalysis,
27 # it requires at least one input, and these inputs
28 # will all be outputs from the qm keydetector vamp plugin.
29 dml:CollectionLevelKeyTonic rdfs:subClassOf dml:CollectionLevelAnalysis ;
30 owl:equivalentClass [ a owl:Restriction ;
31 owl:onProperty dml:collectionLevelKeyTonicInput ;
32 owl:minCardinality 1] ;
33 owl:equivalentClass [ a owl:Restriction ;
34 owl:onProperty dml:collectionLevelKeyTonicOutput ;
35 owl:cardinality 1] .
36
37 dml:collectionLevelKeyTonicInput rdfs:subPropertyOf dml:input ;
38 rdfs:range qmplugbase:qm-keydetector_output_tonic .
39
40 dml:collectionLevelKeyTonicOutput rdfs:subPropertyOf dml:output ;
41 rdfs:range dml:KeyTonicHistogram .
42
43 # A (Tonic) Key Histogram is defined as:
44 dml:KeyTonicHistogram a vamp:DenseOutput ;
45 vamp:identifier "keytonichistogram" ;
46 dc:title "Key Tonic Histogram" ;
47 dc:description "Histogram of estimated tonic key (from C major = 1 to B major = 12)." ;
48 vamp:fixed_bin_count "true" ;
49 vamp:unit "" ;
50 vamp:bin_count 12 ;
51 vamp:bin_names ( "C" "C#" "D" "D#" "E" "F" "F#" "G" "G#" "A" "A#" "B");
52 owl:intersectionOf (
53 [ a owl:Restriction;
54 owl:onProperty dml:sample_count ;
55 owl:cardinality 1]
56 [ a owl:Restriction;
57 owl:onProperty dml:bin ;
58 owl:cardinality 12] ) .
59
60 dml:bin a owl:ObjectProperty ;
61 rdfs:range dml:Bin .
62
63 dml:Bin a owl:Class;
64 owl:intersectionOf (
65 [ a owl:Restriction;
66 owl:onProperty dml:bin_number ;
67 owl:cardinality 1]
68 [ a owl:Restriction;
69 owl:onProperty dml:bin_value ;
70 owl:cardinality 1]
71 [ a owl:Restriction;
72 owl:onProperty dml:bin_name ;
73 owl:minCardinality 0]
74 # [ a owl:Restriction;
75 # owl:onProperty dml:bin_lower_limit ;
76 # owl:cardinality 1]
77 # [ a owl:Restriction;
78 # owl:onProperty dml:bin_upper_limit ;
79 # owl:cardinality 1]
80 ) .
81
82 dml:bin_number a owl:DatatypeProperty ;
83 rdfs:range xsd:integer .
84
85 dml:bin_value a owl:DatatypeProperty .
86
87 dml:bin_name a owl:DatatypeProperty ;
88 rdfs:range xsd:string .
89
90 dml:sample_count a owl:DatatypeProperty ;
91 rdfs:range xsd:integer .
92
93 # A Key Histogram is defined as:
94 dml:KeyHistogram a vamp:DenseOutput ;
95 vamp:identifier "keyhistogram" ;
96 dc:title "Key Histogram" ;
97 dc:description "Histogram of estimated key (from C major = 1 to B major = 12 and C minor = 13 to B minor = 24)." ;
98 vamp:fixed_bin_count "true" ;
99 vamp:unit "" ;
100 vamp:bin_count 24 ;
101 vamp:bin_names ( "Cmaj" "C#maj" "Dmaj" "D#maj" "Emaj" "Fmaj" "F#maj" "Gmaj" "G#maj" "Amaj" "A#maj" "Bmaj" "Cmin" "C#min" "Dmin" "D#min" "Emin" "Fmin" "F#min" "Gmin" "G#min" "Amin" "A#min" "Bmin");
102 dml:sample_count [ a xsd:integer] ;
103 owl:equivalentClass [ a owl:Restriction ;
104 owl:onProperty dml:bin ;
105 owl:cardinality 24] .
106
107
108
109 # A CollectionLevelTuningFrequencyStatistics is a CollectionLevelAnalysis,
110 # it requires at least one input, and these inputs
111 # will all be outputs from the silvet transcription plugin.
112 dml:CollectionLevelTuningFrequencyStatistics rdfs:subClassOf dml:CollectionLevelAnalysis ;
113 owl:equivalentClass [ a owl:Restriction ;
114 owl:onProperty dml:collectionLevelTuningFrequencyStatisticsInput ;
115 owl:minCardinality 1] ;
116 owl:equivalentClass [ a owl:Restriction ;
117 owl:onProperty dml:collectionLevelTuningFrequencyStatisticsOutput ;
118 owl:cardinality 1] .
119
120 dml:collectionLevelTuningFrequencyStatisticsInput rdfs:subPropertyOf dml:input ;
121 rdfs:range silvetplugbase:silvet_output_notes .
122
123 dml:collectionLevelTuningFrequencyStatisticsOutput rdfs:subPropertyOf dml:output ;
124 rdfs:range dml:TuningFrequencyStatistics .
125
126 # TuningFrequencyStatistics is defined as:
127 dml:TuningFrequencyStatistics a vamp:DenseOutput ;
128 vamp:identifier "tuningfrequencystatistics" ;
129 dc:title "Tuning Frequency Statistics" ;
130 dc:description "Statistics of Estimated Tuning Frequency including mean, standard deviation and histogram" ;
131 owl:intersectionOf (
132 [ a owl:Restriction;
133 owl:onProperty dml:mean ;
134 owl:cardinality 1]
135 [ a owl:Restriction;
136 owl:onProperty dml:std_dev ;
137 owl:cardinality 1]
138 [ a owl:Restriction;
139 owl:onProperty dml:bin ;
140 owl:cardinality 100]) .
141
142 dml:mean a owl:DatatypeProperty ;
143 rdfs:range xsd:float .
144
145 dml:std_dev a owl:DatatypeProperty ;
146 rdfs:range xsd:float .
147
148 # A CollectionLevelSemitone is a CollectionLevelAnalysis,
149 # it requires at least one input, and these inputs
150 # will all be outputs from the http://vamp-plugins.org/rdf/plugins/silvet#silvet plugin.
151 dml:CollectionLevelSemitone rdfs:subClassOf dml:CollectionLevelAnalysis ;
152 owl:intersectionOf (
153 [ a owl:Restriction ;
154 owl:onProperty dml:collectionLevelSemitoneInput ;
155 owl:minCardinality 1]
156 [ a owl:Restriction ;
157 owl:onProperty dml:collectionLevelSemitoneOutput ;
158 owl:cardinality 1] ) .
159
160 dml:collectionLevelSemitoneInput rdfs:subPropertyOf dml:input ;
161 rdfs:range silvetplugbase:silvet_output_notes .
162
163 dml:collectionLevelSemitoneOutput rdfs:subPropertyOf dml:output ;
164 rdfs:range dml:SemitoneHistogram .
165
166 # A Semitone Histogram is defined as:
167 dml:SemitoneHistogram a vamp:DenseOutput ;
168 vamp:identifier "semitonehistogram" ;
169 dc:title "Semitone Histogram" ;
170 dc:description "Histogram of estimated semitones" ;
171 vamp:fixed_bin_count "false" ;
172 vamp:unit "" ;
173 owl:intersectionOf (
174 [ a owl:Restriction;
175 owl:onProperty dml:sample_count ;
176 owl:cardinality 1]
177 [ a owl:Restriction;
178 owl:onProperty dml:bin ;
179 owl:minCardinality 1] ) .