diff --git a/bin/rdfdb b/bin/rdfdb --- a/bin/rdfdb +++ b/bin/rdfdb @@ -65,6 +65,14 @@ json {"adds" : [[quads]...], } maybe use some http://json-ld.org/ in there. +proposed rule feature: +rdfdb should be able to watch a pair of (sourceFile, rulesFile) and +rerun the rules when either one changes. Should the sourceFile be able +to specify its own rules file? That would be easier +configuration. How do edits work? Not allowed? Patch the source only? +Also see the source graph loaded into a different ctx, and you can +edit that one and see the results in the output context? + Our web ui: registered clients @@ -74,10 +82,12 @@ them here. We should be able to take pat and keep updating the same data (e.g. a stream of changes as the user drags a slider) and collapse them into a single edit for clarity. -proposed rule feature: -rdfdb should be able to watch a pair of (sourceFile, rulesFile) and -rerun the rules when either one changes. Should the sourceFile be able -to specify its own rules file? That would be easier configuration. +Ways to display patches, using labels and creator/subj icons where possible: + + set 's

to + changed 's from to + added to

+ """ from twisted.internet import reactor diff --git a/light9/dmxclient.py b/light9/dmxclient.py --- a/light9/dmxclient.py +++ b/light9/dmxclient.py @@ -4,9 +4,10 @@ dmxclient.outputlevels(..) client id is formed from sys.argv[0] and the PID. """ -import xmlrpclib, os, sys, socket, time +import xmlrpclib, os, sys, socket, time, logging from light9 import networking _dmx=None +log = logging.getLogger('dmxclient') procname = os.path.basename(sys.argv[0]) procname = procname.replace('.py', '') @@ -34,14 +35,14 @@ def outputlevels(levellist,twisted=0,cli try: _dmx.outputlevels(clientid, levellist) except socket.error, e: - print "dmx server error %s, waiting" % e + log.error("dmx server error %s, waiting" % e) time.sleep(1) except xmlrpclib.Fault,e: - print "outputlevels had xml fault: %s" % e + log.error("outputlevels had xml fault: %s" % e) time.sleep(1) else: def err(error): - print "dmx server error", error + log.error("dmx server error %s", error) time.sleep(1) d = _dmx.callRemote('outputlevels', clientid, levellist) d.addErrback(err)