CVS update: openprivacy/htdocs/notes

From: cvs@openprivacy.org
Date: Tue Dec 19 2000 - 17:45:05 PST


Date: Tuesday December 19, 19100 @ 17:45
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:
subroutinized subscribe and 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.60

CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/openprivacy/htdocs/notes/flow.txt?rev=1.60&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.60&r2=1.59

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

Index: openprivacy/htdocs/notes/flow.txt
diff -u openprivacy/htdocs/notes/flow.txt:1.59 openprivacy/htdocs/notes/flow.txt:1.60
--- openprivacy/htdocs/notes/flow.txt:1.59 Tue Dec 19 16:57:53 2000
+++ openprivacy/htdocs/notes/flow.txt Tue Dec 19 17:45:05 2000
@@ -1,4 +1,4 @@
-$Id: flow.txt,v 1.59 2000/12/20 00:57:53 fen Exp $
+$Id: flow.txt,v 1.60 2000/12/20 01:45:05 fen Exp $
 
 http://pix.comedia.com/OpenPrivacy/20001214/DSCN5532.JPG
 
@@ -156,91 +156,53 @@
 //
 (AJ1s, AJ1p) = agent1.reputationServer.createPublicKeyPair(AN1s)
 
-// create prob for reputation subscription (subscribe to RSS1)
-// "RSS*" is a multi-valued entity for RSS_090, RSS_091, and RSS_1.0
+// subscribe AJ1 to stream RSS1 (and add reputation)
 //
-op = New Opinion // create new opinion object
-op.setProperty("namespace", "RSS*")
-op.setProperty("reference", RSS1.getURL)
+agent1.rssSubscribe(RSS1, AJ1p, "MyNews")
+agent1.rssPutReputation(RSS1, AJ1p, "cool")
 
-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_AJ1a, "MyNews")
-agent1.storeLocally(prob_AJ1a)
-
-// send the prob to JetsPeek (acting as a subscription server)
+// subscribe AJ2 to streams RSS1, RSS2 & RSS3
 //
-agent1.sendMessage(
- address=JetsPeek,
- facility=SCDS,
- method=subscription, // essentially a graft
- prob=prob_AJ1a) // prob_AJ1 includes reference URI
+(AJ2s, AJ2p) = agent1.reputationServer.createPublicKeyPair(AN1s)
+agent1.rssSubscribe(RSS2, AJ2p, "MyNews")
+agent1.rssSubscribe(RSS3, AJ2p, "MyNews")
+agent1.rssPutReputation(RSS2, AJ2p, "cool")
+agent1.rssPutReputation(RSS3, AJ2p, "cool")
 
-// modify (add to) prob for reputation publication (add reputaion to RSS1)
+// subscribe AJ3 to stream RSS4 (don't publish this one)
 //
-op.setProperty("ontology", "OpenPrivacyDefaultOntology")
-op.setProperty("payload", "cool")
+agent1.rssSubscribe(RSS4, AJ2p, "MyNews")
 
-prob_AJ1b = agent1.ProbFactory.create(op, AJ1s)
-agent1.storeLocally(prob_AJ1b)
+// == subroutine definitions ==
 
-// send the prob to JetsPeek (acting as a reputation server)
-// other capabilities include DELETE, ...?
-//
-agent1.sendMessage(
- address=JetsPeek,
- facility=Reputation,
- method=putReputation // essentially a graft
- prob=prob_AJ1b) // prob_AJ1 includes reference URI
+// note: "RSS*" is a multi-valued entity for RSS_090, RSS_091, and RSS_1.0
 
-// 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("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_AJ2b)
-
-op = New Opinion // create new opinion object
-op.setProperty("reference", RSS3.getURL)
-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_AJ2d)
+agent1.rssSubscribe(channel, pubkey, edition) {
+ op = New Opinion // create new opinion object
+ op.setProperty("namespace","RSS*")
+ op.setProperty("reference", channel.getURL)
+ prob = agent1.ProbFactory.create(op, pubkey)
+ agent1.storeLocally(prob)
+ //
+ // categorize as edition; this is local configuration information only
+ // note that the local JetsPeek client may handle this transparently
+ //
+ agent1.categorize(prob, edition)
+ agent1.sendMessage(address=JetsPeek, facility=SCDS,
+ method=subscription, prob=prob)
+}
 
-// 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("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)
+agent1.rssPutReputation(channel, pubkey, reputation) {
+ op = New Opinion // create new opinion object
+ op.setProperty("namespace", "RSS*")
+ op.setProperty("reference", channel.getURL)
+ op.setProperty("ontology", "OpenPrivacyDefaultOntology")
+ op.setProperty("payload", reputation)
+ prob = agent1.ProbFactory.create(op, pubkey)
+ agent1.storeLocally(prob)
+ agent1.sendMessage(address=JetsPeek, facility=Reputation,
+ method=putReputation, prob=prob)
+}
 
 // ========== in JetsPeek ========== Reputation:putReputation facility
 



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