[tracker/tracker-0.8] tracker-extract: NB#172390, Tracker doesn't return any content from m3u playlists
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.8] tracker-extract: NB#172390, Tracker doesn't return any content from m3u playlists
- Date: Thu, 19 Aug 2010 16:12:46 +0000 (UTC)
commit db084984b082048058b3ca7b6e1bb22daac39be7
Author: Philip Van Hoof <philip codeminded be>
Date: Tue Aug 3 10:24:14 2010 +0200
tracker-extract: NB#172390, Tracker doesn't return any content from m3u playlists
data/ontologies/33-nfo.ontology | 16 ++++++++++++++--
src/tracker-extract/tracker-extract-playlist.c | 2 +-
2 files changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/data/ontologies/33-nfo.ontology b/data/ontologies/33-nfo.ontology
index 6a60098..42eb83e 100644
--- a/data/ontologies/33-nfo.ontology
+++ b/data/ontologies/33-nfo.ontology
@@ -12,7 +12,7 @@
nfo: a tracker:Namespace, tracker:Ontology ;
tracker:prefix "nfo" ;
- nao:lastModified "2010-06-17T17:06:00Z" .
+ nao:lastModified "2010-08-03T10:03:00Z" .
nfo:Document a rdfs:Class ;
rdfs:label "Document" ;
@@ -452,12 +452,24 @@ nfo:listPosition a rdf:Property ;
# Propose in nepomuk
+
+# This property is very impractical
nfo:entryContent a rdf:Property ;
rdfs:label "Entry content" ;
rdfs:comment "URI to the element in certain position of the list" ;
- nrl:maxCardinality 1 ;
+ nrl:maxCardinality 1 ;
rdfs:domain nfo:MediaFileListEntry ;
rdfs:range nie:InformationElement ;
+ nao:deprecated true ;
+ tracker:writeback true .
+
+# This one makes more sense
+nfo:entryUrl a rdf:Property ;
+ rdfs:label "Entry URL" ;
+ rdfs:comment "URI to the element in certain position of the list" ;
+ nrl:maxCardinality 1 ;
+ rdfs:domain nfo:MediaFileListEntry ;
+ rdfs:range xsd:string ;
tracker:writeback true .
nfo:height a rdf:Property ;
diff --git a/src/tracker-extract/tracker-extract-playlist.c b/src/tracker-extract/tracker-extract-playlist.c
index e867d74..c281898 100644
--- a/src/tracker-extract/tracker-extract-playlist.c
+++ b/src/tracker-extract/tracker-extract-playlist.c
@@ -86,7 +86,7 @@ entry_parsed (TotemPlParser *parser, const gchar *to_uri, GHashTable *to_metadat
tracker_sparql_builder_predicate (data->metadata, "a");
tracker_sparql_builder_object (data->metadata, "nfo:MediaFileListEntry");
- tracker_sparql_builder_predicate (data->metadata, "nfo:entryContent");
+ tracker_sparql_builder_predicate (data->metadata, "nfo:entryUrl");
tracker_sparql_builder_object_unvalidated (data->metadata, to_uri);
tracker_sparql_builder_predicate (data->metadata, "nfo:listPosition");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]