[prev in list] [next in list] [prev in thread] [next in thread]
List: nepomuk
Subject: Re: [Nepomuk] Music issues I want to fix
From: Ignacio Serantes <kde () aynoa ! net>
Date: 2012-06-10 18:32:23
Message-ID: CAKbQbAp-KF7UDDgQz2yk0XOz5fMcNZjagt2_vXmyDxqhc9LmZw () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
I brief update status.
1) I just fix multiple performers bug in flac analyzer.
2) nmm:albumArtist seems to be related to DB structure and is not a coding
bug. I just added nmm:albumArtist to SDO and now there is a nmm:albumArtist
in nmm:MusicAlbum. This is the code I added:
nmm:albumArtist
a rdf:Property, nrl:DefiningProperty ;
rdfs:subPropertyOf nco:contributor ;
rdfs:label "album artist" ;
rdfs:comment "Album artist" ;
rdfs:domain nmm:MusicAlbum ;
rdfs:range nco:Contact .
I will upload a patch to Review Board for the first one but, what must I do
with the second one?
On Thu, Jun 7, 2012 at 7:59 PM, Ignacio Serantes <kde@aynoa.net> wrote:
> Hi,
>
> I detect next issues with music albums scanning flac and mp3 formats:
>
> 1) Performers:
>
> - mp3: supports it but it wrongly adding nmm:albumArtist too and this
> must be related to nmm:MusicAlbum.
> - flac: only adds one performer, the last added to the file?.
> nmm:musicArtist it's not imported and an error is launched: "Cannot set
> values for abstract property '
> http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#albumArtist'
> .".
>
> Solution:
>
> - 0 to n nmm:albumArtist resources must be added to nmm:MusicAlbum.
> - 0 to n nmm:performer resources must be added to nmm:MusicPiece.
>
>
> 2) Albums:
>
> - there is no url in nmm:MusicAlbum so two different albums with same
> name are considered one unique resource.
> - determine album url is tricky, you need to obtain the url from a
> track, a method complicated because previous problem.
>
> Solution:
>
> - add nie:url to albums.
> - two albums with same name but different path are different albums.
> This have a side effect with sets if sets are in different paths, but I
> think is better that sets are considered different albums, than two
> different albums are the same resource. On the other side, this could be
> handle with some smart path detection assuming some kind of organization
> with paths. Other solution could be using nmm:albumArtis to determine if
> two albums are different but, then we have the problem with various artists
> compilations.
> - added nfo:depiction as a cover, an image that could be handled by
> Bangarang or Nepoogle.
> - maybe more nfo:depiction for scans?
>
>
> 3) Genres:
>
> - mp3: is not working.
> - flac: works fine, supporting unlimited genres.
>
> Solution:
>
> - bug with mp3 files must be fixed.
>
>
> 4) Sets:
>
> - there is no total tracks per set.
> - the total tracks is equal to the total tracks number in the last
> track scanned.
>
> Solution:
>
> - a solution similar as seasons in tvshows.
> - a total tracks and a total tracks per set must be handled.
>
> I'm only using flac and mp3 so the same or other issues could be in other
> music formats.
>
> Sets problems is a minor issue, but the other three, must be fixed.
>
> As practically all my music is in flac format I will try to fix problems 1
> and 2 in flac analyzer, I'm crossing my fingers because is C++, but I wish
> to hear comments/suggestions before begin to code.
>
> --
> Best wishes,
> Ignacio
>
>
>
--
Best wishes,
Ignacio
[Attachment #5 (text/html)]
I brief update status.<div><br></div><div>1) I just fix multiple performers bug in \
flac analyzer.</div><div><br></div><div>2) nmm:albumArtist seems to be related to DB \
structure and is not a coding bug. I just added nmm:albumArtist to SDO and now there \
is a nmm:albumArtist in nmm:MusicAlbum. This is the code I added:</div>
<div><div><font face="courier new, monospace"> \
nmm:albumArtist</font></div><div><font face="courier new, monospace"> a \
rdf:Property, nrl:DefiningProperty ;</font></div><div><font face="courier new, \
monospace"> rdfs:subPropertyOf nco:contributor ;</font></div>
<div><font face="courier new, monospace"> rdfs:label "album artist" \
;</font></div><div><font face="courier new, monospace"> rdfs:comment "Album \
artist" ;</font></div><div><font face="courier new, monospace"> rdfs:domain \
nmm:MusicAlbum ;</font></div>
<div><font face="courier new, monospace"> rdfs:range nco:Contact \
.</font></div><div><br></div></div><div>I will upload a patch to Review Board for the \
first one but, what must I do with the second one?</div><div><br></div>
<div><div class="gmail_quote">On Thu, Jun 7, 2012 at 7:59 PM, Ignacio Serantes <span \
dir="ltr"><<a href="mailto:kde@aynoa.net" \
target="_blank">kde@aynoa.net</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">
Hi,<div><br clear="all"><div>I detect next issues with music albums scanning flac and \
mp3 formats:</div><div><br></div><div>1) Performers:</div><div><ul><li>mp3: supports \
it but it wrongly adding nmm:albumArtist too and this must be related to \
nmm:MusicAlbum.</li>
<li>flac: only adds one performer, the last added to the file?. nmm:musicArtist \
it's not imported and an error is launched: "Cannot set values for abstract \
property '<a href="http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#albumArtist'" \
target="_blank">http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#albumArtist'</a>.".</li>
</ul><div>Solution:</div><div><ul><li>0 to n nmm:albumArtist resources must be added \
to nmm:MusicAlbum.</li><li>0 to n nmm:performer resources must be added to \
nmm:MusicPiece.</li></ul></div><div><br></div><div>2) Albums:</div>
</div><div><ul><li>there is no url in nmm:MusicAlbum so two different albums with \
same name are considered one unique resource.</li><li>determine album url is tricky, \
you need to obtain the url from a track, a method complicated because previous \
problem.</li>
</ul><div>Solution:</div><div><ul><li>add nie:url to albums.</li><li>two albums with \
same name but different path are different albums. This have a side effect with sets \
if sets are in different paths, but I think is better that sets are considered \
different albums, than two different albums are the same resource. On the other side, \
this could be handle with some smart path detection assuming some kind of \
organization with paths. Other solution could be using nmm:albumArtis to determine if \
two albums are different but, then we have the problem with various artists \
compilations.</li>
<li>added nfo:depiction as a cover, an image that could be handled by Bangarang or \
Nepoogle.</li><li>maybe more nfo:depiction for \
scans?</li></ul></div><div><br></div><div>3) Genres:</div><div><ul><li>mp3: is not \
working.</li>
<li>flac: works fine, supporting unlimited \
genres.</li></ul><div>Solution:</div></div><div><ul><li>bug with mp3 files must be \
fixed.</li></ul></div><div><br></div><div>4) Sets:</div></div><div><ul><li>there is \
no total tracks per set.</li>
<li>the total tracks is equal to the total tracks number in the last track \
scanned.</li></ul></div><div>Solution:</div><div><ul><li>a solution similar as \
seasons in tvshows.</li><li>a total tracks and a total tracks per set must be \
handled.</li>
</ul><div>I'm only using flac and mp3 so the same or other issues could be in \
other music formats.</div></div><div><br></div><div>Sets problems is a minor issue, \
but the other three, must be fixed.</div><div><br></div>
<div>As practically all my music is in flac format I will try to fix problems 1 and 2 \
in flac analyzer, I'm crossing my fingers because is C++, but I wish to hear \
comments/suggestions before begin to code.</div><span class="HOEnZb"><font \
color="#888888"><div>
<br>
</div>-- <br>Best wishes,<div>Ignacio</div><div><br></div><br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Best \
wishes,<div>Ignacio</div><div><br></div><br> </div>
_______________________________________________
Nepomuk mailing list
Nepomuk@kde.org
https://mail.kde.org/mailman/listinfo/nepomuk
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic