CVS update: openprivacy/htdocs/notes

From: cvs@openprivacy.org
Date: Tue Dec 19 2000 - 16:57:53 PST


Date: Tuesday December 19, 19100 @ 16:57
Author: fen
CVSWEB Options: -------------------

Main CVSWeb: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi

View this module: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/openprivacy/htdocs/notes

-----------------------------------

Update of /usr/local/cvsroot/openprivacy/htdocs/notes
In directory openprivacy.org:/home/fen/projects/openprivacy/htdocs/notes

Modified Files:
        flow.txt
Log Message:
separate subscription from putReputation

*****************************************************************
File: openprivacy/htdocs/notes/flow.txt

CVSWEB Options: -------------------

CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/openprivacy/htdocs/notes/flow.txt?annotate=1.59

CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/openprivacy/htdocs/notes/flow.txt?rev=1.59&content-type=text/x-cvsweb-markup

CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/openprivacy/htdocs/notes/flow.txt.diff?r1=1.59&r2=1.58

-----------------------------------

Index: openprivacy/htdocs/notes/flow.txt
diff -u openprivacy/htdocs/notes/flow.txt:1.58 openprivacy/htdocs/notes/flow.txt:1.59
--- openprivacy/htdocs/notes/flow.txt:1.58 Tue Dec 19 16:26:33 2000
+++ openprivacy/htdocs/notes/flow.txt Tue Dec 19 16:57:53 2000
@@ -1,4 +1,4 @@
-$Id: flow.txt,v 1.58 2000/12/20 00:26:33 fen Exp $
+$Id: flow.txt,v 1.59 2000/12/20 00:57:53 fen Exp $
 
 http://pix.comedia.com/OpenPrivacy/20001214/DSCN5532.JPG
 
@@ -141,7 +141,7 @@
 // AJ2: RSS2
 // AJ2: RSS3
 // AJ3: RSS4 (don't publish this)
-// TODO: make explicit difference between publishing and grafting reputation
+// TODO: make explicit difference between subscription and grafting reputation
 
 // Agent1 chooses channels it wants to receive
 // subscribes to RSS server channels directly (or through JetsPeek)
@@ -156,24 +156,38 @@
 //
 (AJ1s, AJ1p) = agent1.reputationServer.createPublicKeyPair(AN1s)
 
-// create prob for reputation publication (subscribe to RSS1)
+// create prob for reputation subscription (subscribe to RSS1)
 // "RSS*" is a multi-valued entity for RSS_090, RSS_091, and RSS_1.0
 //
 op = New Opinion // create new opinion object
 op.setProperty("namespace", "RSS*")
 op.setProperty("reference", RSS1.getURL)
-op.setProperty("ontology", "OpenPrivacyDefaultOntology")
-op.setProperty("payload", "cool")
 
-prob_AJ1 = agent1.ProbFactory.create(op, AJ1s)
-agent1.storeLocally(prob_AJ1)
+prob_AJ1a = agent1.ProbFactory.create(op, AJ1s)
 
 // categorize these four streams (with three J's) as "MyNews"
 // local configuration information only
 // note that local JetsPeek client may handle this transparently
 //
-agent1.categorize(prob_AJ1, "MyNews")
+agent1.categorize(prob_AJ1a, "MyNews")
+agent1.storeLocally(prob_AJ1a)
 
+// send the prob to JetsPeek (acting as a subscription server)
+//
+agent1.sendMessage(
+ address=JetsPeek,
+ facility=SCDS,
+ method=subscription, // essentially a graft
+ prob=prob_AJ1a) // prob_AJ1 includes reference URI
+
+// modify (add to) prob for reputation publication (add reputaion to RSS1)
+//
+op.setProperty("ontology", "OpenPrivacyDefaultOntology")
+op.setProperty("payload", "cool")
+
+prob_AJ1b = agent1.ProbFactory.create(op, AJ1s)
+agent1.storeLocally(prob_AJ1b)
+
 // send the prob to JetsPeek (acting as a reputation server)
 // other capabilities include DELETE, ...?
 //
@@ -181,41 +195,52 @@
     address=JetsPeek,
     facility=Reputation,
     method=putReputation // essentially a graft
- prob=prob_AJ1) // prob_AJ1 includes reference URI
+ prob=prob_AJ1b) // prob_AJ1 includes reference URI
 
 // subscribe AJ2 to streams RSS2 & RSS3
 //
 (AJ2s, AJ2p) = agent1.reputationServer.createPublicKeyPair(AN1s)
 op = New Opinion // create new opinion object
-op.setProperty("namespace", "RSS*")
-op.setProperty("ontology", "OpenPrivacyDefaultOntology")
-op.setProperty("payload", "cool")
+op.setProperty("namespace","RSS*")
+op.setProperty("reference", RSS1.getURL)
 prob_J2a = agent1.ProbFactory.create(op, AJ2s)
 agent1.storeLocally(prob_J2a)
 agent1.categorize(prob_J2a, MyNews")
+agent1.sendMessage(address=JetsPeek, facility=SCDS,
+ method=subscription, prob=prob_AJ2a)
+op.setProperty("ontology", "OpenPrivacyDefaultOntology")
+op.setProperty("payload", "cool")
+prob_AJ1b = agent1.ProbFactory.create(op, AJ2s)
+agent1.storeLocally(prob_AJ2b)
 agent1.sendMessage(address=JetsPeek, facility=Reputation,
- method=putReputation, prob=prob_J2a)
+ method=putReputation, prob=prob_AJ2b)
 
-// can we simply modify the previous opinion object?
-//
+op = New Opinion // create new opinion object
 op.setProperty("reference", RSS3.getURL)
-prob_J2b = agent1.ProbFactory.create(op, AJ2s)
-agent1.storeLocally(prob_J2b)
-agent1.categorize(prob_J2b, MyNews")
+prob_AJ2c = agent1.ProbFactory.create(op, AJ2s)
+agent1.storeLocally(prob_AJ2c)
+agent1.categorize(prob_AJ2c, MyNews")
+agent1.sendMessage(address=JetsPeek, facility=SCDS,
+ method=subscription, prob=prob_AJ2c)
+op.setProperty("ontology", "OpenPrivacyDefaultOntology")
+op.setProperty("payload", "cool")
+prob_AJ2d = agent1.ProbFactory.create(op, AJ2s)
+agent1.storeLocally(prob_AJ2d)
 agent1.sendMessage(address=JetsPeek, facility=Reputation,
- method=putReputation, prob=prob_J2b)
+ method=putReputation, prob=prob_AJ2d)
 
 // subscribe AJ3 to stream RSS4 (don't publish this one)
 //
 (AJ3s, AJ3p) = agent1.reputationServer.createPublicKeyPair(AN1s)
 op = New Opinion // create new opinion object
 op.setProperty("namespace", "RSS*")
-op.setProperty("ontology", "OpenPrivacyDefaultOntology")
-op.setProperty("payload", "cool")
-prob_J2a = agent1.ProbFactory.create(op, AJ3s)
-agent1.storeLocally(prob_J3)
-categorize(J3, PRIVATE) // overload or new function?
+op.setProperty("reference", RSS1.getURL)
+prob_AJ3 = agent1.ProbFactory.create(op, AJ3s)
+agent1.storeLocally(prob_AJ3)
+categorize(AJ3, PRIVATE) // overload or new function?
 agent1.categorize(prob_J3, MyNews")
+agent1.sendMessage(address=JetsPeek, facility=SCDS,
+ method=subscription, prob=prob_AJ3)
 
 // ========== in JetsPeek ========== Reputation:putReputation facility
 



This archive was generated by hypermail 2b30 : Mon Jan 22 2001 - 15:52:14 PST