From Music Ontology Wiki
[edit] RDF Graph
Image:Graph
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix mo: <http://purl.org/ontology/mo/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix bach: <http://music.org/bach#>.
@prefix easaier: <http://www.easaier.org#>.
@prefix timeline: <http://purl.org/NET/c4dm/timeline.owl#>.
@prefix time: <http://www.w3.org/2006/time#>.
@prefix event: <http://purl.org/NET/c4dm/event.owl#>.
@prefix mf: <http://purl.org/ontology/mo/mf#> .
#Description of the composer
bach:Bach
a mo:MusicArtist;
foaf:name "Johann Sebastian Bach";
mo:wikipedia <http://en.wikipedia.org/wiki/Johann_Sebastian_Bach>;
mo:composes easaier:composition3210.
#Description of the composition event
easaier:composition3210
a mo:Composition;
event:hasAgent bach:bach;
event:hasProduct bach:kunstderfuge.
#Description of the musical work produced by the composition event.
bach:kunstderfugue
a mo:MusicalWork;
mo:productOfComposition easaier:composition3210.
# Description of the performance recorded in the file including global
attributes (key, tempo, ...)
easaier:performance1234
a mo:Performance;
mo:usesWork bach:kunstderfugue;
dc:title "Art of the fugue";
mo:key "C-Minor";
mo:tempo "adagio";
mo:bpm "80";
mo:hasPerformer "Hans Kremer";
mo:recordedAs easaier:signal543.
# Descritpion of the signal where we find some low-level features
easaier:signal543
a mo:DigitalSignal;
mo:published_as easaier:classicalMusicCompilation544;
mo:pitch "35";
mo:puid "23h4k43t5p4kt54p544";
mo:channels "2";
mo:sampleRate "128";
mo:timber "timber".
# The record which has a track corresponding to the analyzed audio file
easaier:classicalMusicCompilation544
a mo:Record;
mo:publication_of easaier:signal543;
mo:has_track easaier:classicalMusicCompilation544_track2.
#mo:encoding "MP3 CBR @ 128kbps".
easaier:classicalMusicCompilation544_track2
a mo:Track;
mo:trackNum "2".
#Following are subevents of the main performance aiming to represent key
or tempo changes, structural changes, etc.
easaier:performance1234
event:time easaier:time;
event:hasSubEvent easaier:subperf1;
event:hasSubEvent easaier:subperf2.
easaier:time a time:TimeInterval;
timeline:ontimeline easaier:tl;
.
easaier:tl a timeline:RelativeTimeLine.
easaier:keyevt1 a mf:KeyEvent;
mo:key "AMinor";
event:time [
timeline:beginsAtDuration "PT2M2S";
timeline:durationXSD "PT1M";
timeline:onTimeLine easaier:tl;
]
.
easaier:keyevt2 a mf:KeyEvent;
mo:key "CMajor";
event:time [
timeline:beginsAtDuration "PT4M23.2S";
timeline:durationXSD "PT1M23S";
timeline:onTimeLine easaier:tl;
]
.
[edit] RDF/XML
<?xml version="1.0"?>
<rdf:RDF xmlns:easaier="http://www.easaier.org#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:mo="http://purl.org/ontology/mo/" xmlns:mf="http://purl.org/ontology/mo/mf#" xmlns:bach="http://music.org/bach#" xmlns:time="http://www.w3.org/2006/time#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:timeline="http://purl.org/NET/c4dm/timeline.owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:event="http://purl.org/NET/c4dm/event.owl#">
<mo:MusicArtist rdf:about="http://music.org/bach#Bach">
<foaf:name>Johann Sebastian Bach</foaf:name>
<mo:wikipedia>
<rdf:Description rdf:about="http://en.wikipedia.org/wiki/Johann_Sebastian_Bach" />
</mo:wikipedia>
<mo:composes>
<mo:Composition rdf:about="http://www.easaier.org#composition3210">
<event:hasAgent>
<rdf:Description rdf:about="http://music.org/bach#bach" />
</event:hasAgent>
<event:hasProduct>
<rdf:Description rdf:about="http://music.org/bach#kunstderfuge" />
</event:hasProduct>
</mo:Composition>
</mo:composes>
</mo:MusicArtist>
<mo:Performance rdf:about="http://www.easaier.org#performance1234">
<mo:usesWork>
<mo:MusicalWork rdf:about="http://music.org/bach#kunstderfugue">
<mo:productOfComposition rdf:resource="http://www.easaier.org#composition3210" />
</mo:MusicalWork>
</mo:usesWork>
<dc:title>Art of the fugue</dc:title>
<mo:key>C-Minor</mo:key>
<mo:tempo>adagio</mo:tempo>
<mo:bpm>80</mo:bpm>
<mo:hasPerformer>Hans Kremer</mo:hasPerformer>
<mo:recordedAs>
<mo:DigitalSignal rdf:about="http://www.easaier.org#signal543">
<mo:published_as>
<mo:Record rdf:about="http://www.easaier.org#classicalMusicCompilation544">
<mo:publicationOf rdf:resource="http://www.easaier.org#signal543" />
<mo:has_track>
<mo:Track rdf:about="http://www.easaier.org#classicalMusicCompilation544_track2">
<mo:trackNum>2</mo:trackNum>
</mo:Track>
</mo:has_track>
</mo:Record>
</mo:published_as>
<mo:pitch>35</mo:pitch>
<mo:puid>23h4k43t5p4kt54p544</mo:puid>
<mo:channels>2</mo:channels>
<mo:sampleRate>128</mo:sampleRate>
<mo:timber>timber</mo:timber>
</mo:DigitalSignal>
</mo:recordedAs>
<event:time>
<time:TimeInterval rdf:about="http://www.easaier.org#time">
<timeline:ontimeline>
<timeline:RelativeTimeLine rdf:about="http://www.easaier.org#tl" />
</timeline:ontimeline>
</time:TimeInterval>
</event:time>
<event:hasSubEvent>
<rdf:Description rdf:about="http://www.easaier.org#subperf1" />
</event:hasSubEvent>
<event:hasSubEvent>
<rdf:Description rdf:about="http://www.easaier.org#subperf2" />
</event:hasSubEvent>
</mo:Performance>
<mf:KeyEvent rdf:about="http://www.easaier.org#keyevt1">
<mo:key>AMinor</mo:key>
<event:time>
<rdf:Description>
<timeline:beginsAtDuration>PT2M2S</timeline:beginsAtDuration>
<timeline:durationXSD>PT1M</timeline:durationXSD>
<timeline:onTimeLine rdf:resource="http://www.easaier.org#tl" />
</rdf:Description>
</event:time>
</mf:KeyEvent>
<mf:KeyEvent rdf:about="http://www.easaier.org#keyevt2">
<mo:key>CMajor</mo:key>
<event:time>
<rdf:Description>
<timeline:beginsAtDuration>PT4M23.2S</timeline:beginsAtDuration>
<timeline:durationXSD>PT1M23S</timeline:durationXSD>
<timeline:onTimeLine rdf:resource="http://www.easaier.org#tl" />
</rdf:Description>
</event:time>
</mf:KeyEvent>
</rdf:RDF>