[tracker] tracker-extract-text: Add nfo:PlainTextDocument type



commit 585c969bb7eb52233e0518c0dbc6352f3dd99aa1
Author: Jürg Billeter <j bitron ch>
Date:   Tue Sep 22 10:11:02 2009 +0200

    tracker-extract-text: Add nfo:PlainTextDocument type

 src/tracker-extract/tracker-extract-text.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-text.c b/src/tracker-extract/tracker-extract-text.c
index 9f3c2a9..6f40777 100644
--- a/src/tracker-extract/tracker-extract-text.c
+++ b/src/tracker-extract/tracker-extract-text.c
@@ -285,8 +285,11 @@ extract_text (const gchar          *uri,
 
 	content = get_file_content (uri);
 
+	tracker_sparql_builder_subject_iri (metadata, uri);
+	tracker_sparql_builder_predicate (metadata, "a");
+	tracker_sparql_builder_object (metadata, "nfo:PlainTextDocument");
+
 	if (content) {
-		tracker_sparql_builder_subject_iri (metadata, uri);
 		tracker_sparql_builder_predicate (metadata, "nie:plainTextContent");
 		tracker_sparql_builder_object_unvalidated (metadata, content);
 		g_free (content);



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