tracker r2563 - branches/turtle/src/libtracker-data
- From: pvanhoof svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2563 - branches/turtle/src/libtracker-data
- Date: Tue, 25 Nov 2008 13:45:20 +0000 (UTC)
Author: pvanhoof
Date: Tue Nov 25 13:45:20 2008
New Revision: 2563
URL: http://svn.gnome.org/viewvc/tracker?rev=2563&view=rev
Log:
Added some comments for Ivan
Modified:
branches/turtle/src/libtracker-data/tracker-turtle.c
Modified: branches/turtle/src/libtracker-data/tracker-turtle.c
==============================================================================
--- branches/turtle/src/libtracker-data/tracker-turtle.c (original)
+++ branches/turtle/src/libtracker-data/tracker-turtle.c Tue Nov 25 13:45:20 2008
@@ -214,6 +214,10 @@
turtle->file = fopen (turtle_file, "w");
/*
+
+ Looks like there's no turtle serializer in Raptor, no worries it's not
+ a hard format to serialize by ourselves.
+
turtle->serializer = raptor_new_serializer ("turtle");
uri_string = raptor_uri_filename_to_uri_string (turtle_file);
turtle->uri = raptor_new_uri (uri_string);
@@ -258,6 +262,16 @@
value?value:":",
value?"\"":">");
+ /* TODO: cope with group values by making them ; separated, perhaps by
+ * reading the type from the TrackerField? Also, numeric values don't
+ * need the double quotes (although that might not matter much for
+ * raptor while parsing).
+ *
+ * If you want to reuse the importer of tracker-indexer (for the remov-
+ * able devices), then you'll need to ensure that the predicates
+ * File:Modified and rdf:type are added per record (uyou seperate triples
+ * using a ; and you end a record using a . (a dot).*/
+
fprintf (turtle->file, "<%s> <%s> %s%s%s .\n",
about_uri?about_uri:uri,
tracker_field_get_name (property),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]