From Music Ontology Wiki
[edit] RDF/XML
1 <rdf:Description rdf:about="http://music.org/bach#emersonperf">
2 <event:hasSubEvent rdf:resource="http://example.com/test#subperf1"/>
3 <event:hasSubEvent rdf:resource="http://example.com/test#subperf2"/>
4 <event:time rdf:resource="http://example.com/test#time"/>
5 <mo:key rdf:resource="http://purl.org/NET/c4dm/keys.owl#AMinor"/>
6 </rdf:Description>
7 <time:TimeInterval rdf:about="http://example.com/test#time">
8 <timeline:ontimeline rdf:resource="http://example.com/test#tl"/>
9 </time:TimeInterval>
10 <timeline:RelativeTimeLine rdf:about="http://example.com/test#tl"/>
11 <mo:Performance rdf:about="http://example.com/test#subperf1">
12 <mo:key rdf:resource="http://purl.org/NET/c4dm/keys.owl#AMinor"/>
13 <event:time>
14 <rdf:Description>
15 <timeline:beginsAtDuration>PT2M2S</timeline:beginsAtDuration>
16 <timeline:durationXSD>PT1M</timeline:durationXSD>
17 <timeline:onTimeLine rdf:resource="http://example.com/test#tl"/>
18 </rdf:Description>
19 </event:time>
20 </mo:Performance>
21 <mo:Performance rdf:about="http://example.com/test#subperf2">
22 <mo:key rdf:resource="http://purl.org/NET/c4dm/keys.owl#CMajor"/>
23 <event:time>
24 <rdf:Description>
25 <timeline:beginsAtDuration>PT4M23.2S</timeline:beginsAtDuration>
26 <timeline:durationXSD>PT1M23S</timeline:durationXSD>
27 <timeline:onTimeLine rdf:resource="http://example.com/test#tl"/>
28 </rdf:Description>
29 </event:time>
30 </mo:Performance>
[edit] RDF/N3
1 @prefix dc: <http://purl.org/dc/elements/1.1/> .
2 @prefix mo: <http://purl.org/ontology/mo/> .
3 @prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
4 @prefix foaf: <http://xmlns.com/foaf/0.1/> .
5 @prefix ex: <http://example.com/test#>.
6 @prefix bach: <http://music.org/bach#>.
7 @prefix timeline: <http://purl.org/NET/c4dm/timeline.owl#>.
8 @prefix time: <http://www.w3.org/2006/time#>.
9 @prefix event: <http://purl.org/NET/c4dm/event.owl#>.
10 @prefix key: <http://purl.org/NET/c4dm/keys.owl#>.
11 bach:emersonperf event:hasSubEvent ex:subperf1; # Here, there is a link to the Bach example
12 event:hasSubEvent ex:subperf2;
13 event:time ex:time;
14 mo:key key:AMinor; # global key
15 .
16 ex:time a time:TimeInterval;
17 timeline:ontimeline ex:tl;
18 .
19 ex:tl a timeline:RelativeTimeLine.
20 ex:subperf1 a mo:Performance;
21 mo:key key:AMinor;
22 event:time [
23 timeline:beginsAtDuration "PT2M2S";
24 timeline:durationXSD "PT1M";
25 timeline:onTimeLine ex:tl;
26 ]
27 .
28 ex:subperf2 a mo:Performance;
29 mo:key key:CMajor;
30 event:time [
31 timeline:beginsAtDuration "PT4M23.2S";
32 timeline:durationXSD "PT1M23S";
33 timeline:onTimeLine ex:tl;
34 ]
35 .