summaryrefslogtreecommitdiff
path: root/nmm/nmm.trig
blob: 67a5df7149e4c330dadbd26fd1cb5635f7da102d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
#
# Copyright (c) 2009 Evgeny Egorochkin <phreedom.stdin@gmail.com>
# All rights reserved, licensed under either CC-BY or BSD.
#
# You are free:
#  * to Share - to copy, distribute and transmit the work
#  * to Remix - to adapt the work
# Under the following conditions:
#  * Attribution - You must attribute the work in the manner specified by the author
#    or licensor (but not in any way that suggests that they endorse you or your use 
#    of the work).
#
# Redistribution and use in source and binary forms, with or without modification, 
# are permitted provided that the following conditions are met:
#  * Redistributions of source code must retain the above copyright notice, this 
#    list of conditions and the following disclaimer.
#  * Redistributions in binary form must reproduce the above copyright notice, this 
#    list of conditions and the following disclaimer in the documentation and/or 
#    other materials provided with the distribution.
#  * Neither the names of the authors nor the names of contributors may
#    be used to endorse or promote products derived from this ontology without 
#    specific prior written permission.
#
# THIS ONTOLOGY IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS ONTOLOGY, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix nrl:     <http://www.semanticdesktop.org/ontologies/2007/08/15/nrl#> .
@prefix nao:     <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
@prefix nco:     <http://www.semanticdesktop.org/ontologies/2007/03/22/nco#> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix nie:     <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#> .
@prefix nfo:     <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo> .
@prefix nmm:     <http://www.semanticdesktop.org/ontologies/2009/02/19/nmm> .

<http://www.semanticdesktop.org/ontologies/2009/02/19/nmm> {

    nmm:MusicPiece
	a rdfs:Class ;
	rdfs:subClassOf nfo:Media ;
	rdfs:label "music" ;
	rdfs:comment "Used to assign music-specific properties such a BPM to video and audio" .

    nmm:musicAlbum
	a rdf:Property ;
	rdfs:subPropertyOf nie:isLogicalPartOf ;
	rdfs:label "album" ;
	rdfs:comment "Album the music belongs to" ;
	rdfs:domain nmm:MusicPiece ;
	rdfs:range nmm:MusicAlbum ;
	nrl:maxCardinality 1^^xsd:nonNegativeInteger .

    nmm:beatsPerMinute
	a rdf:Property ;
	rdfs:label "Beats per minute" ;
	rdfs:comment "beats per minute" ;
	rdfs:domain nmm:MusicPiece ;
	rdfs:range xsd:integer .

    nmm:performer
	a rdf:Property ;
	rdfs:subPropertyOf nco:contributor ;
	rdfs:label "performer" ;
	rdfs:comment "Performer" ;
	rdfs:domain nmm:MusicPiece ;
	rdfs:range nco:Contact .

    nmm:composer
	a rdf:Property ;
	rdfs:subPropertyOf nco:contributor ;
	rdfs:label "composer" ;
	rdfs:comment "Composer" ;
	rdfs:domain nmm:MusicPiece ;
	rdfs:range nco:Contact .

    nmm:lyricist
	a rdf:Property ;
	rdfs:subPropertyOf nco:contributor ;
	rdfs:label "lyricist";
	rdfs:comment "Lyricist";
	rdfs:domain nmm:MusicPiece ;
	rdfs:range nco:Contact .

    nmm:trackNumber
	a rdf:Property ;
	rdfs:label "track number" ;
	rdfs:comment "Track number of the music in its album" ;
	rdfs:domain nmm:MusicPiece ;
	rdfs:range xsd:integer .

    nmm:musicBrainzTrackID
	a rdf:Property ;
	rdfs:subPropertyOf nie:identifier ;
	rdfs:label "musicbrainz track ID" ;
	rdfs:comment "MusicBrainz track ID" ;
	rdfs:domain nmm:MusicPiece ;
	rdfs:range xsd:integer .

    nmm:trackGain
	a rdf:Property ;
	rdfs:label "track gain" ;
	rdfs:comment "ReplayGain track gain" ;
	rdfs:domain nmm:MusicPiece .

    nmm:trackPeakGain
	a rdf:Property ;
	rdfs:label "track peak gain" ;
	rdfs:comment "ReplayGain track peak gain" ;
	rdfs:domain nmm:MusicPiece .


    nmm:MusicAlbum
	a rdfs:Class ;
	rdfs:subClassOf nfo:MediaList ;
	rdfs:label "music album" ;
	rdfs:comment "The music album as provided by the publisher. Not to be confused with media lists or collections." .

    nmm:musicCDIdentifier
	a rdf:Property ;
	rdfs:subPropertyOf nie:identifier ;
	rdfs:label "music CD identifier" ;
	rdfs:comment "Music CD identifier to for databases like FreeDB.org. This property is intended for music that comes from a CD, so that the CD can be identified in external databases." ;
	rdfs:domain nmm:MusicAlbum ;
	rdfs:range xsd:string .

    nmm:internationalStandardRecordingCode
	a rdf:Property ;
	rdfs:subPropertyOf nie:identifier ;
	rdfs:label "international standard recording code" ;
	rdfs:comment "ISRC ID. Format: 'CC-XXX-YY-NNNNN'" ;
	rdfs:domain nmm:MusicAlbum ;
	rdfs:range xsd:string .

    nmm:musicBrainzAlbumID
	a rdf:Property ;
	rdfs:subPropertyOf nie:identifier ;
	rdfs:label "musicbrainz album ID" ;
	rdfs:comment "MusicBrainz album ID" ;
	rdfs:domain nmm:MusicAlbum ;
	rdfs:range xsd:string .

    nmm:albumGain
	a rdf:Property ;
	rdfs:label "album gain" ;
	rdfs:comment "ReplayGain album(audiophile) gain" ;
	rdfs:domain nmm:MusicAlbum .

    nmm:albumPeakGain
	a rdf:Property ;
	rdfs:label "album peak gain" ;
	rdfs:comment "ReplayGain album(audiophile) peak gain" ;
	rdfs:domain nmm:MusicAlbum .

}

<http://www.semanticdesktop.org/ontologies/2009/02/19/nmm/metadata>
{
    <http://www.semanticdesktop.org/ontologies/2009/02/19/nmm>
          a       nrl:DocumentGraph , nrl:KnowledgeBase ;
          nao:hasDefaultNamespace "http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#" ;
          nao:hasDefaultNamespaceAbbreviation "nmm" ;
          nao:lastModified "2009-11-11T22:37:29" ;
          nao:serializationLanguage "TriG" ;
          nao:status "Testing" ;
          nrl:updatable "0" ;
          nao:version "1" .

    <http://www.semanticdesktop.org/ontologies/2009/02/19/nmm/metadata>
          a       nrl:GraphMetadata , nrl:DocumentGraph ;
          nao:serializationLanguage "TriG" ;
          nrl:coreGraphMetadataFor <http://www.semanticdesktop.org/ontologies/2009/02/19/nmm> .
}