Re: [Tracker] TV Series in tracker
Hi Martyn, If you have some time to improve ontologies regarding that subject, in the following is a copy/paste of my suggestions regarding this subject that I did a long time ago (25/03/2010) but never had time to implement. - Hi, I'm currently working on a MP4 (audio/video) extractor for tracker, and so I came to the idea of the following changes in the nmm ontology : For the audio aspect: nmm:musicPiece : - Add an integer diskNumber - Add a boolean isPodcast - Add a link to the RadioStation (to link the podcast to the source where it could have been recorded) nmm:MusicAlbum : - Add an integer albumDiskCount - Add a boolean isCompilation - Add a string synopsis or description (It is not the same as nie:comment, Some times you want to add some *summary*/*history* to the album, like the text that is present in the book associated with a cd, when you buy one). (Maybe synopsis could also be added to musicPiece as when we think about a podcast or an Audio Book for example) For the video aspect: - Add a string episodeId ( It is different from the episodeNumber. It is a little like the musicPiece unique id, but in the context of the videoAlbum. ) - Add an integer chapterCount (To store the number of chapter that could have a video) - Add a boolean isPodcast (don't know if this one is really needed, but could serve one day) - Add soundtrack a link to a musicPiece And/or - soundtrackAlbum a link to a musicAlbum. - Add TVStation a link to a container (described in the following) TVStation: Would be similar to RadioStation. (Could we already use nie:title for their name?) videoAlbum: Should be modified to be similar to have VideoAlbum as range instead of nfo:MediaList to be similar to MusicAlbum. With at least: - A string synopsis - an integer albumEpisodeCount - an integer albumSeasonCount and could have like musicalbum: albumArtist, albumDuration, albumTitle, and MPAARating, category, isSeries Is there already a field in an ontology that we could use for userrating, copyright string, license? And maybe it could be good to add a year field in nmm or in nfo:media, as often the media meta tags only reference the year of the media and not the full date, and so, using/filling the complete creation date could a filling of incorrect values, as we will choose randomly the other part of the date like saying 2010 correspond to 01-01-2010. Thanks, Florent Viard Software Development Engineer fvi...@lacie.com www.lacie.com Le 03/04/2012 12:24, Martyn Russell a écrit : On 02/04/12 09:50, Jens Georg wrote: On Mo, 2012-04-02 at 09:34 +0100, Martyn Russell wrote: Yes, sure. I'd even be willing to write a small tool to do that manually for now; I just need the ontology to generate the data because I desperately need this for my private Rygel use-case ;) We'll happily accept patches Jens ;) I know that, but I've never touched the ontologies so I'd rather leave that to someone who already did this. I don't much either :) Anyway, something like the patch attached should work. It passes the ontology validator. Perhaps Ivan/Philip or Jürg could comment? ___ tracker-list mailing list tracker-list@gnome.org http://mail.gnome.org/mailman/listinfo/tracker-list What's your backup plan? Check out our Backup Guide http://www.lacie.com/backupplan ___ tracker-list mailing list tracker-list@gnome.org http://mail.gnome.org/mailman/listinfo/tracker-list
Re: [Tracker] TV Series in tracker
Hi, My comments: 0. It is missing the season idea, which is quite important. We could copy the pattern for the multiple CD albums... although is not the nicest part of the ontology. 1. TVShow doesn't need to be direct subclass of all those classes. Inheriting from nfo:Video will pull the rest of the hierarchy In other words, the hierarchy now is (starting in the lowest subclass): nfo:Video, nfo:Visual, nfo:Media, nie:InformationElement I wonder if TVShow is a nfo:Video (something playable) or nmm:Video (something you want to see in your media player). 2. The classes don't have rdfs:domain (or rdfs:range). That only applies to properties. (Remove rdfs:domain from nmm:TVShow) 3. nmm:series comment should explain a TVShow belongs to a serie 4. Actually I would rename nmm:series to nmm:isEpisode or nmm:isEpisodeOf, to make it clear it is the reverse property of nmm:hasEpisode 5. nmm:TVShow comment should explain that it is usually an Episode. Why don't we call it directly Episode? In a TVShow with independent stories (E.G. The Twilight Zone), each piece is still call Episode, right? Thanks for starting this work. Hopefully we can give it a couple of iterations and merge soon. Regards, Ivan On Wed, Apr 4, 2012 at 11:40 PM, Jens Georg m...@jensge.org wrote: On Di, 2012-04-03 at 11:24 +0100, Martyn Russell wrote: On 02/04/12 09:50, Jens Georg wrote: On Mo, 2012-04-02 at 09:34 +0100, Martyn Russell wrote: Yes, sure. I'd even be willing to write a small tool to do that manually for now; I just need the ontology to generate the data because I desperately need this for my private Rygel use-case ;) We'll happily accept patches Jens ;) I know that, but I've never touched the ontologies so I'd rather leave that to someone who already did this. I don't much either :) Anyway, something like the patch attached should work. It passes the ontology validator. Perhaps Ivan/Philip or Jürg could comment? Btw, wouldn't it make sense to set nmm:synopsis to tracker:fulltextIndexed true ? ___ tracker-list mailing list tracker-list@gnome.org http://mail.gnome.org/mailman/listinfo/tracker-list
Re: [Tracker] TV Series in tracker
On Di, 2012-04-03 at 11:24 +0100, Martyn Russell wrote: On 02/04/12 09:50, Jens Georg wrote: On Mo, 2012-04-02 at 09:34 +0100, Martyn Russell wrote: Yes, sure. I'd even be willing to write a small tool to do that manually for now; I just need the ontology to generate the data because I desperately need this for my private Rygel use-case ;) We'll happily accept patches Jens ;) I know that, but I've never touched the ontologies so I'd rather leave that to someone who already did this. I don't much either :) Anyway, something like the patch attached should work. It passes the ontology validator. Perhaps Ivan/Philip or Jürg could comment? Btw, wouldn't it make sense to set nmm:synopsis to tracker:fulltextIndexed true ? ___ tracker-list mailing list tracker-list@gnome.org http://mail.gnome.org/mailman/listinfo/tracker-list
Re: [Tracker] TV Series in tracker
On 02/04/12 09:50, Jens Georg wrote: On Mo, 2012-04-02 at 09:34 +0100, Martyn Russell wrote: Yes, sure. I'd even be willing to write a small tool to do that manually for now; I just need the ontology to generate the data because I desperately need this for my private Rygel use-case ;) We'll happily accept patches Jens ;) I know that, but I've never touched the ontologies so I'd rather leave that to someone who already did this. I don't much either :) Anyway, something like the patch attached should work. It passes the ontology validator. Perhaps Ivan/Philip or Jürg could comment? -- Regards, Martyn Founder and CEO of Lanedo GmbH. From 7923c47e977cc40602c049fdc205efe37e711506 Mon Sep 17 00:00:00 2001 From: Martyn Russell mar...@lanedo.com Date: Tue, 3 Apr 2012 11:21:57 +0100 Subject: [PATCH] ontology: Added classes nmm:TVSeries and nmm:TVShow Inline with improvements upstream here: http://oscaf.sourceforge.net/nmm.html#nmm:TVSeries --- data/ontologies/38-nmm.ontology | 29 - 1 files changed, 28 insertions(+), 1 deletions(-) diff --git a/data/ontologies/38-nmm.ontology b/data/ontologies/38-nmm.ontology index ea3e6be..d2d4fce 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 2011-08-19T13:05:00Z . + nao:lastModified 2012-04-03T12:00:00Z . nmm:MusicPiece a rdfs:Class ; rdfs:label Music ; @@ -543,3 +543,30 @@ nmm:uPnPShared a rdf:Property ; nrl:maxCardinality 1 ; rdfs:domain nfo:Media ; rdfs:range xsd:boolean . + +# TV / Series +nmm:TVShow a rdfs:Class ; + rdfs:label TV Show ; + rdfs:comment A TV Show ; + rdfs:subClassOf nfo:Media, nie:InformationElement, nfo:Visual, nfo:Video ; + rdfs:domain nmm:episodeNumber, nmm:season . + +nmm:TVSeries a rdfs:Class ; + rdfs:label TV Series ; + rdfs:comment A TV Series has multiple seasons and episodes ; + rdfs:subClassOf nie:InformationElement . + +nmm:series a rdf:Property ; + a nrl:InverseFunctionalProperty ; + rdfs:label series ; + rdfs:comment series ; + rdfs:domain nmm:TVShow ; + rdfs:range nmm:TVSeries ; + nrl:maxCardinality 1 . + +nmm:hasEpisode a rdf:Property ; + a nrl:InverseFunctionalProperty ; + rdfs:label has episode ; + rdfs:comment A TV Series has many episodes ; + rdfs:domain nmm:TVSeries ; + rdfs:range xsd:boolean . -- 1.7.7.6 ___ tracker-list mailing list tracker-list@gnome.org http://mail.gnome.org/mailman/listinfo/tracker-list
Re: [Tracker] TV Series in tracker
hi, The ontology is not a big deal. The problem is how to discover the information from the files. It is a solvable problem (XBMC does it!) but our extractor doesn't support it. Regards, Ivan On Sun, Apr 1, 2012 at 10:34 AM, Jens Georg m...@jensge.org wrote: On Sa, 2011-10-22 at 09:50 +0200, Jens Georg wrote: How would you represent a TV series in tracker? You have nmm:season, nmm:episodeNumber and nmm:isSeries to attach to a nmm:Video, but then you have the issue of the title of that series. Where to put that? It's a minor issue if episodes don't have their own titles, but they do have in many series. I thought about adding them to a nmm:Playlist (nmm:VideoAlbum seems broken judging from the comment in 38-nmm.ontology), attaching a title there - but that feels kind-of redundant since the grouping information would be already contained in title + season. looks like upstream nmm has nmm:TVSeries and nmm:TVShow: http://oscaf.sourceforge.net/nmm.html Can you sync that? ___ tracker-list mailing list tracker-list@gnome.org http://mail.gnome.org/mailman/listinfo/tracker-list ___ tracker-list mailing list tracker-list@gnome.org http://mail.gnome.org/mailman/listinfo/tracker-list
Re: [Tracker] TV Series in tracker
On Mo, 2012-04-02 at 10:36 +0300, Ivan Frade wrote: hi, The ontology is not a big deal. The problem is how to discover the information from the files. It is a solvable problem (XBMC does it!) but our extractor doesn't support it. Yes, sure. I'd even be willing to write a small tool to do that manually for now; I just need the ontology to generate the data because I desperately need this for my private Rygel use-case ;) Regards, Ivan On Sun, Apr 1, 2012 at 10:34 AM, Jens Georg m...@jensge.org wrote: On Sa, 2011-10-22 at 09:50 +0200, Jens Georg wrote: How would you represent a TV series in tracker? You have nmm:season, nmm:episodeNumber and nmm:isSeries to attach to a nmm:Video, but then you have the issue of the title of that series. Where to put that? It's a minor issue if episodes don't have their own titles, but they do have in many series. I thought about adding them to a nmm:Playlist (nmm:VideoAlbum seems broken judging from the comment in 38-nmm.ontology), attaching a title there - but that feels kind-of redundant since the grouping information would be already contained in title + season. looks like upstream nmm has nmm:TVSeries and nmm:TVShow: http://oscaf.sourceforge.net/nmm.html Can you sync that? ___ tracker-list mailing list tracker-list@gnome.org http://mail.gnome.org/mailman/listinfo/tracker-list ___ tracker-list mailing list tracker-list@gnome.org http://mail.gnome.org/mailman/listinfo/tracker-list
Re: [Tracker] TV Series in tracker
On 02/04/12 08:38, Jens Georg wrote: On Mo, 2012-04-02 at 10:36 +0300, Ivan Frade wrote: hi, The ontology is not a big deal. The problem is how to discover the information from the files. It is a solvable problem (XBMC does it!) but our extractor doesn't support it. Yes, sure. I'd even be willing to write a small tool to do that manually for now; I just need the ontology to generate the data because I desperately need this for my private Rygel use-case ;) We'll happily accept patches Jens ;) -- Regards, Martyn Founder and CEO of Lanedo GmbH. ___ tracker-list mailing list tracker-list@gnome.org http://mail.gnome.org/mailman/listinfo/tracker-list
Re: [Tracker] TV Series in tracker
On Mo, 2012-04-02 at 09:34 +0100, Martyn Russell wrote: Yes, sure. I'd even be willing to write a small tool to do that manually for now; I just need the ontology to generate the data because I desperately need this for my private Rygel use-case ;) We'll happily accept patches Jens ;) I know that, but I've never touched the ontologies so I'd rather leave that to someone who already did this. ___ tracker-list mailing list tracker-list@gnome.org http://mail.gnome.org/mailman/listinfo/tracker-list
Re: [Tracker] TV Series in tracker
On Mon, Apr 2, 2012 at 5:06 PM, Ivan Frade ivan.fr...@gmail.com wrote: hi, The ontology is not a big deal. The problem is how to discover the information from the files. It is a solvable problem (XBMC does it!) but our extractor doesn't support it. I did a bit of fooling around to get XMBC to provide tv data to tracker - it wasn't pretty and was kind of the reverse of what you actually want. Related work - most of you have probably seen http://trueg.wordpress.com/2012/02/11/a-fun-release-nepomuk-tv-namer-0-2/ ___ tracker-list mailing list tracker-list@gnome.org http://mail.gnome.org/mailman/listinfo/tracker-list
Re: [Tracker] TV Series in tracker
On Sa, 2011-10-22 at 09:50 +0200, Jens Georg wrote: How would you represent a TV series in tracker? You have nmm:season, nmm:episodeNumber and nmm:isSeries to attach to a nmm:Video, but then you have the issue of the title of that series. Where to put that? It's a minor issue if episodes don't have their own titles, but they do have in many series. I thought about adding them to a nmm:Playlist (nmm:VideoAlbum seems broken judging from the comment in 38-nmm.ontology), attaching a title there - but that feels kind-of redundant since the grouping information would be already contained in title + season. looks like upstream nmm has nmm:TVSeries and nmm:TVShow: http://oscaf.sourceforge.net/nmm.html Can you sync that? ___ tracker-list mailing list tracker-list@gnome.org http://mail.gnome.org/mailman/listinfo/tracker-list