[tracker/hierarchical-indexing: 1/7] TrackerSparqlBuilder: allow embedder to specify the subject.



commit da9c89409a9757b69e6fee5ce2127eae118e52b9
Author: Carlos Garnacho <carlos lanedo com>
Date:   Tue Feb 16 14:56:50 2010 +0100

    TrackerSparqlBuilder: allow embedder to specify the subject.
    
    Embedded inserts now only consist of predicate/subject, so the
    embedder is able to specify the subject the data is applying to.

 src/libtracker-client/tracker-sparql-builder.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-client/tracker-sparql-builder.vala b/src/libtracker-client/tracker-sparql-builder.vala
index 7008ccd..9aa94ca 100644
--- a/src/libtracker-client/tracker-sparql-builder.vala
+++ b/src/libtracker-client/tracker-sparql-builder.vala
@@ -53,6 +53,7 @@ public class Tracker.SparqlBuilder : Object {
 	public SparqlBuilder.embedded_insert () {
 		states += State.EMBEDDED_INSERT;
 		states += State.INSERT;
+		states += State.SUBJECT;
 	}
 
 	public void drop_graph (string iri)



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