[tracker] NMM: Ontology changes for multi-disc albums



commit 3c38a087ea240717b3961bc86e2abed65a64c5b5
Author: Philip Van Hoof <philip codeminded be>
Date:   Wed Dec 1 17:24:28 2010 +0100

    NMM: Ontology changes for multi-disc albums

 data/ontologies/38-nmm.ontology |   28 ++++++++++++++++++++++++----
 1 files changed, 24 insertions(+), 4 deletions(-)
---
diff --git a/data/ontologies/38-nmm.ontology b/data/ontologies/38-nmm.ontology
index 832e8e3..2b7b33b 100644
--- a/data/ontologies/38-nmm.ontology
+++ b/data/ontologies/38-nmm.ontology
@@ -13,7 +13,7 @@
 
 nmm: a tracker:Namespace, tracker:Ontology ;
 	tracker:prefix "nmm" ;
-	nao:lastModified "2010-11-11T10:49:00Z" .
+	nao:lastModified "2010-12-01T17:24:00Z" .
 
 nmm:MusicPiece a rdfs:Class ;
 	rdfs:label "Music" ;
@@ -21,6 +21,17 @@ nmm:MusicPiece a rdfs:Class ;
 	tracker:domainIndex nie:title ;
 	rdfs:subClassOf nfo:Media .
 
+# Added Dec 1 2010
+nmm:MusicAlbumDisk a rdfs:Class ;
+	rdfs:label "Music album Disk" .
+
+# Added Dec 1 2010
+nmm:albumDiskAlbum a rdf:Property ;
+	rdfs:label "album disk" ;
+	rdfs:range nmm:MusicAlbum ;
+	nrl:maxCardinality 1 ;
+	rdfs:domain nmm:MusicAlbumDisk .
+
 nmm:SynchronizedText a rdfs:Class ;
 	rdfs:label "Synchronized text (use nie:language to set the language). Valid for subtitles and lyrics" ;
 	rdfs:subClassOf nfo:PlainTextDocument .
@@ -72,6 +83,14 @@ nmm:musicAlbum a rdf:Property ;
 	tracker:indexed true ;
 	tracker:weight 6 .
 
+nmm:musicAlbumDisk a rdf:Property ;
+	rdfs:label "is part of album disk" ;
+	rdfs:comment "album disk the music belongs to" ;
+	rdfs:subPropertyOf nie:isLogicalPartOf ;
+	nrl:maxCardinality 1 ;
+	rdfs:domain nmm:MusicPiece ;
+	rdfs:range nmm:MusicAlbumDisk .
+
 # Cardinality could be > 1 if we create one for album collections
 nmm:albumArtist a rdf:Property ;
 	rdfs:label "artist" ;
@@ -87,6 +106,7 @@ nmm:beatsPerMinute a rdf:Property ;
 	rdfs:domain nmm:MusicPiece ;
 	rdfs:range xsd:integer .
 
+# Todo: change cardinality
 nmm:performer a rdf:Property ;
 	rdfs:label "Performer" ;
 	rdfs:comment "Performer" ;
@@ -148,7 +168,7 @@ nmm:musicCDIdentifier a rdf:Property ;
 	rdfs:comment "Music CD identifier to for databases like FreeDB.org. This frame is intended for music that comes from a CD, so that the CD can be identified in databases such as the CDDB. The frame consists of a binary dump of the Table Of Contents, TOC, from the CD, which is a header of 4 bytes and then 8 bytes/track on the CD plus 8 bytes for the 'lead out' making a maximum of 804 bytes. The offset to the beginning of every track on the CD should be described with a four bytes absolute CD-frame address per track, and not with absolute time." ;
 	rdfs:subPropertyOf nie:identifier ;
 	nrl:maxCardinality 1 ;
-	rdfs:domain nmm:MusicAlbum ;
+	rdfs:domain nmm:MusicAlbumDisk ;
 	rdfs:range xsd:string .
 
 nmm:internationalStandardRecordingCode a rdf:Property ;
@@ -156,7 +176,7 @@ nmm:internationalStandardRecordingCode a rdf:Property ;
 	rdfs:comment "ISRC ID. Format: 'CC-XXX-YY-NNNNN'" ;
 	rdfs:subPropertyOf nie:identifier ;
 	nrl:maxCardinality 1 ;
-	rdfs:domain nmm:MusicAlbum ;
+	rdfs:domain nmm:MusicPiece ;
 	rdfs:range xsd:string .
 
 nmm:albumTrackCount a rdf:Property ;
@@ -203,7 +223,7 @@ nmm:setNumber a rdf:Property ;
 	rdfs:label "Disk number" ;
 	rdfs:comment "Disk number of album" ;
 	nrl:maxCardinality 1 ;
-	rdfs:domain nmm:MusicAlbum ;
+	rdfs:domain nmm:MusicAlbumDisk ;
 	rdfs:range xsd:integer .
 
 # This property doesn't make sense... it is the other way around



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]