Mercurial > hg > dml-open-backendtools
comparison pyspark/test_transform_n3s/tuningstats_cla_trans_win.n3 @ 0:e34cf1b6fe09 tip
commit
author | Daniel Wolff |
---|---|
date | Sat, 20 Feb 2016 18:14:24 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e34cf1b6fe09 |
---|---|
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 | |
9 # This file defines an ontology, which also imports the vamp plugin ontology | |
10 <dmlclaOntology.n3> a owl:Ontology; | |
11 owl:imports <http://vamp-plugins.org/rdf/plugins/qm-vamp-plugins> . | |
12 | |
13 # Our highest level class is a dml:Transform | |
14 dml:Transform a owl:Class . | |
15 dml:CollectionLevelAnalysis rdfs:subClassOf dml:Transform . | |
16 | |
17 dml:type rdfs:subPropertyOf rdf:type . | |
18 | |
19 vamp:Transform rdfs:subClassOf dml:Transform . | |
20 | |
21 dml:input a owl:ObjectProperty . | |
22 dml:output a owl:ObjectProperty . | |
23 | |
24 # A CollectionLevelKeyTonic is a CollectionLevelAnalysis, | |
25 # it requires at least one input, and these inputs | |
26 # will all be outputs from the qm keydetector vamp plugin. | |
27 dml:CollectionLevelKeyTonic rdfs:subClassOf dml:CollectionLevelAnalysis ; | |
28 owl:equivalentClass [ a owl:restriction ; | |
29 owl:onProperty dml:collectionLevelKeyTonicInput ; | |
30 owl:minCardinality 1] ; | |
31 owl:equivalentClass [ a owl:restriction ; | |
32 owl:onProperty dml:collectionLevelKeyTonicOutput ; | |
33 owl:cardinality 1] . | |
34 | |
35 dml:collectionLevelKeyTonicInput rdfs:subPropertyOf dml:input ; | |
36 rdfs:range <http://vamp-plugins.org/rdf/plugins/qm-vamp-plugins#qm-keydetector_output_tonic> . | |
37 | |
38 dml:collectionLevelKeyTonicOutput rdfs:subPropertyOf dml:output ; | |
39 rdfs:range dml:KeyTonicHistogram . | |
40 | |
41 # A (Tonic) Key Histogram is defined as: | |
42 dml:KeyTonicHistogram a vamp:DenseOutput ; | |
43 vamp:identifier "keytonichistogram" ; | |
44 dc:title "Key Tonic Histogram" ; | |
45 dc:description "Histogram of estimated tonic key (from C major = 1 to B major = 12)." ; | |
46 vamp:fixed_bin_count "true" ; | |
47 vamp:unit "" ; | |
48 vamp:bin_count 12 ; | |
49 vamp:bin_names ( "C" "C#" "D" "D#" "E" "F" "F#" "G" "G#" "A" "A#" "B"); | |
50 owl:intersectionOf ( | |
51 [ a owl:Restriction; | |
52 owl:onProperty dml:sample_count ; | |
53 owl:cardinality 1] | |
54 [ a owl:Restriction; | |
55 owl:onProperty dml:bin ; | |
56 owl:cardinality 12] ) . | |
57 | |
58 dml:bin a owl:ObjectProperty ; | |
59 rdfs:range dml:Bin . | |
60 | |
61 dml:Bin a owl:Class; | |
62 owl:intersectionOf ( | |
63 [ a owl:Restriction; | |
64 owl:onProperty dml:bin_number ; | |
65 owl:cardinality 1] | |
66 [ a owl:Restriction; | |
67 owl:onProperty dml:bin_value ; | |
68 owl:cardinality 1] ) . | |
69 | |
70 dml:bin_number a owl:DatatypeProperty ; | |
71 rdfs:range xsd:integer . | |
72 | |
73 dml:bin_value a owl:DatatypeProperty . | |
74 | |
75 dml:sample_count a owl:DatatypeProperty ; | |
76 rdfs:range xsd:integer . | |
77 | |
78 # A Key Histogram is defined as: | |
79 dml:KeyTonicHistogram a vamp:DenseOutput ; | |
80 vamp:identifier "keyhistogram" ; | |
81 dc:title "Key Histogram" ; | |
82 dc:description "Histogram of estimated key (from C major = 1 to B major = 12 and C minor = 13 to B minor = 24)." ; | |
83 vamp:fixed_bin_count "true" ; | |
84 vamp:unit "" ; | |
85 vamp:bin_count 24 ; | |
86 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"); | |
87 dml:sample_count [ a xsd:integer] ; | |
88 owl:equivalentClass [ a owl:restriction ; | |
89 owl:onProperty dml:bin ; | |
90 owl:cardinality 24] . | |
91 | |
92 | |
93 | |
94 # A CollectionLevelTuningFrequencyStatistics is a CollectionLevelAnalysis, | |
95 # it requires at least one input, and these inputs | |
96 # will all be outputs from the silvet transcription plugin. | |
97 dml:CollectionLevelTuningFrequencyStatistics rdfs:subClassOf dml:CollectionLevelAnalysis ; | |
98 owl:equivalentClass [ a owl:restriction ; | |
99 owl:onProperty dml:collectionLevelTuningFrequencyStatisticsInput ; | |
100 owl:minCardinality 1] ; | |
101 owl:equivalentClass [ a owl:restriction ; | |
102 owl:onProperty dml:collectionLevelTuningFrequencyStatisticsOutput ; | |
103 owl:cardinality 1] . | |
104 | |
105 dml:collectionLevelTuningFrequencyStatisticsInput rdfs:subPropertyOf dml:input ; | |
106 rdfs:range <http://vamp-plugins.org/rdf/plugins/silvet#silvet_output_notes> . | |
107 | |
108 dml:collectionLevelTuningFrequencyStatisticsOutput rdfs:subPropertyOf dml:output ; | |
109 rdfs:range dml:TuningFrequencyStatistics . | |
110 | |
111 # TuningFrequencyStatistics is defined as: | |
112 dml:TuningFrequencyStatistics a vamp:DenseOutput ; | |
113 vamp:identifier "tuningfrequencystatistics" ; | |
114 dc:title "Tuning Frequency Statistics" ; | |
115 dc:description "Statistics of Estimated Tuning Frequency including mean, standard deviation and histogram" ; | |
116 owl:intersectionOf ( | |
117 [ a owl:Restriction; | |
118 owl:onProperty dml:mean ; | |
119 owl:cardinality 1] | |
120 [ a owl:Restriction; | |
121 owl:onProperty dml:std_dev ; | |
122 owl:cardinality 1] | |
123 [ a owl:Restriction; | |
124 owl:onProperty dml:bin ; | |
125 owl:cardinality 100]) . | |
126 | |
127 dml:mean a owl:DatatypeProperty ; | |
128 rdfs:range xsd:float . | |
129 | |
130 dml:std_dev a owl:DatatypeProperty ; | |
131 rdfs:range xsd:float . | |
132 | |
133 # Some example data | |
134 _:cl_tuning_statistics dml:type dml:CollectionLevelTuningFrequencyStatistics ; | |
135 # dml:input <file:///mnt/audio/Bruckner/_Analysis/silvet_settings_slow_nonfinetune_allinstruments.n3_1db32/020A-H03614XXXXXX-0104A0_vamp_silvet_silvet_notes.n3> ; | |
136 # dml:input <file:///mnt/audio/Bruckner/_Analysis/silvet_settings_slow_nonfinetune_allinstruments.n3_1db32/020A-H03799XXXXXX-0103A0_vamp_silvet_silvet_notes.n3> ; | |
137 dml:input <file:///D:/mirg/Pitch_Analysis/026A-1CL0001773XX-0100A0_vamp_silvet_silvet_notes.csv> ; | |
138 # dml:input <file:///D:/mirg/Pitch_Analysis/026A-1CL0002164XX-0100A0_vamp_silvet_silvet_notes.n3> ; | |
139 dml:input <file:///D:/mirg/Pitch_Analysis/026A-1CL0001773XX-0100A0_vamp_silvet_silvet_notes.n3> . |