My favorites | Sign in
Project Logo
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import xmlrpclib

server = xmlrpclib.Server('http://mac-mini.local/svn/braindump/trunk/xmlrpc.php')

try:
while 1:

one = raw_input('> ')
print 'is to'
two = raw_input('> ')
print 'as'
three = raw_input('> ')
print 'is to'

rel = server.graph.between(one,two)
answer = server.graph.get(three,rel)

if not answer:
answer = server.graph.backlinks(three)[rel]

print '> '+answer+"\n"

except KeyboardInterrupt:
print "\nbye!"
Show details Hide details

Change log

r171 by bonasaurus1 on Aug 17, 2008   Diff
...
Go to: 
Project members, sign in to write a code review

Older revisions

r134 by bonasaurus1 on Jun 24, 2008   Diff
fixed clients to use graph instead of
bql
r133 by bonasaurus1 on Jun 24, 2008   Diff
renamed BQL to graph (its more of an
API than a query language), fixed
xmlrpc
r113 by bonasaurus1 on Jun 08, 2008   Diff
added analogizer
All revisions of this file

File info

Size: 487 bytes, 24 lines
Hosted by Google Code