Mercurial > hg > dml-open-backendtools
view pyspark/test_transform_n3s/keyhisto_cla_trans.n3 @ 0:e34cf1b6fe09 tip
commit
author | Daniel Wolff |
---|---|
date | Sat, 20 Feb 2016 18:14:24 +0100 |
parents | |
children |
line wrap: on
line source
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix dml: <http://example.org/dml#> . @prefix vamp: <http://purl.org/ontology/vamp/> . @prefix dc: <http://purl.org/dc/elements/1.1/> . # This file defines an ontology, which also inports the vamp plugin ontology <dmlclaOntology.n3> a owl:Ontology; owl:imports <http://vamp-plugins.org/rdf/plugins/qm-vamp-plugins> . # Our highest level class is a CollectionLevelAnalysis dml:Transform a owl:Class . dml:CollectionLevelAnalysis rdfs:subClassOf dml:Transform . dml:type rdfs:subPropertyOf rdf:type . vamp:Transform rdfs:subClassOf dml:Transform . # A CollectionLevelKeyTonic is a CollectionLevelAnalysis, # it requires at least one input, and these inputs # will all be outputs from the qm keydetector vamp plugin. # Its output is an Average Tonic Key. dml:CollectionLevelKeyTonic rdfs:subClassOf dml:CollectionLevelAnalysis ; dml:input [ a <http://vamp-plugins.org/rdf/plugins/qm-vamp-plugins#qm-keydetector_output_tonic>] ; dml:output [ a dml:KeyTonicHistogram] . dml:CollectionLevelKey rdfs:subClassOf dml:CollectionLevelAnalysis ; dml:input [ a <http://vamp-plugins.org/rdf/plugins/qm-vamp-plugins#qm-keydetector_output_key>] ; dml:output [ a dml:KeyHistogram] . # specify domain and range of dml:input here: #dml:input <http://vamp-plugins.org/rdf/plugins/qm-vamp-plugins#qm-keydetector_output_tonic> ; # An Average Key is defined as: dml:AverageKeyTonic a vamp:SparseOutput ; dml:identifier "average tonic key" ; dc:title "Average Key Tonic" ; dc:description "Average estimated tonic key (from C major = 1 to B major = 12)" ; vamp:unit "" ; dml:sample_count [ a xsd:integer] ; dml:result [ a owl:DatatypeProperty] . # A (Tonic) Key Histogram is defined as: dml:KeyTonicHistogram a vamp:DenseOutput ; vamp:identifier "keytonichistogram" ; dc:title "Key Tonic Histogram" ; dc:description "Histogram of estimated tonic key (from C major = 1 to B major = 12)." ; vamp:fixed_bin_count "true" ; vamp:unit "" ; vamp:bin_count 12 ; vamp:bin_names ( "C" "C#" "D" "D#" "E" "F" "F#" "G" "G#" "A" "A#" "B"); dml:sample_count [ a xsd:integer] ; dml:result [ a owl:DatatypeProperty] . # Some example data _:cl_key_tonic dml:type dml:CollectionLevelKeyTonic ; dml:input <file:///mnt/audio/Beethoven/_Analysis/qm_vamp_key_standard_tonic.n3_3cb2d/020A-H01915XXXXXX-0100A0_vamp_qm-vamp-plugins_qm-keydetector_key.n3> ; dml:input <file:///mnt/audio/Beethoven/_Analysis/qm_vamp_key_standard_tonic.n3_3cb2d/020A-H01916XXXXXX-0100A0_vamp_qm-vamp-plugins_qm-keydetector_key.n3> .