CVS update: openprivacy/htdocs/notes

From: cvs@openprivacy.org
Date: Sat Dec 16 2000 - 16:09:04 PST


Date: Saturday December 16, 19100 @ 16:09
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:
updated jetspeek.putProb

*****************************************************************
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.17

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

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

Index: openprivacy/htdocs/notes/flow.txt
diff -u openprivacy/htdocs/notes/flow.txt:1.16 openprivacy/htdocs/notes/flow.txt:1.17
--- openprivacy/htdocs/notes/flow.txt:1.16 Sat Dec 16 15:52:55 2000
+++ openprivacy/htdocs/notes/flow.txt Sat Dec 16 16:09:04 2000
@@ -1,4 +1,4 @@
-$Id: flow.txt,v 1.16 2000/12/16 23:52:55 fen Exp $
+$Id: flow.txt,v 1.17 2000/12/17 00:09:04 fen Exp $
 
 http://pix.comedia.com/OpenPrivacy/20001214/DSCN5532.JPG
 
@@ -10,53 +10,51 @@
 J3:RSS4
 
 
-// JetsPeek is a OCS <-> OpenPrivacy gateway
-// when JetsPeek loads the OCS feeds, it creates PROBs for the RSS channels
-//
-JP: receive OCS feed
-JP: parse into RSS channels
-JP: for each channel,
- if not prob-created-or-modified(channel)
- create-prob(channel)
-
-// how does OpinionFactory determine the properties of an Opinion?
-//
 XMLDocument
     toXML() : String
     setProperty(name, value) : Void
     getProperty(name) : String
- init(namespace)
+ init(namespace) : Void
 
 Opinion implements XMLDocument
 
 // create a primary (secret,public) key pair for JetsPeek
 // store this pair as a primary (top-level) pair
 //
-JP: (NP1s,NP1p) = createPseudonym(rand())
+JP: (JPN1s,JPN1p) = createPseudonym(rand())
 
-jetspeek.getProb(rssChannel) {
- URI = rssChannel.getURI
- description = rssChannel.getDescription
+// JetsPeek is a OCS <-> OpenPrivacy gateway
+// when JetsPeek loads the OCS feeds, it creates PROBs for the RSS channels
+//
+JP: receive OCS feed
+JP: parse into RSS channels
+JP: for each rssChannel in (RSS_channels)
+ jetspeek.putProb(rssChannel)
+
+// in this simple reference example, JetsPeek keys off of two fields:
+// URI and description are used to see if we should create a new prob
+// TODO: how to merge values from similar probs, e.g.,
+// slashdot.org reputation grafts after description has changed?
+//
+jetspeek.putProb(rssChannel) {
+ URI = rssChannel.getURI // get the channel's URI
+ description = rssChannel.getDescription // and description
     hash = sha1(URI + description)
 
     if not hashTable.exists(hash) {
-
- op = New Opinion
-
+ op = New Opinion // create new opinion object
         op.setProperty("namespace", "RSS*")
         op.setProperty("channel", rssChannel)
         op.setProperty("URI", URI)
         op.setProperty("description", description)
-
- prob = ProbFactory.create(OpinionFactory.create(op, NP1p))
 
- storeLocally(prob)
- hashTable.put(hash, prob)
- }
- else {
- prob = hashTable.get(hash)
- }
- return prob;
+ prob = ProbFactory.create(OpinionFactory.create(op, JPN1p))
+ //
+ // TODO: define storage mechanism for probs
+ // does storage have side-effect of indexing properties?
+ //
+ storeLocally(prob) // store prob locally
+ hashTable.put(hash, prob) // put prob in hashTable
 }
 
 // create a primary (secret,public) key pair [see e.g. openssh]



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