Mercurial > code > home > repos > homeauto
diff service/reasoning/inference.py @ 1093:e3ae71fbd3bd
logging and cleanups. Upgrade fuxi to have the cPickle optimization.
Ignore-this: aa11ce504d20e6b3c9351d7ba2def092
darcs-hash:24384c0b4ebcfed9e8f2aa8563d3db0c117d748b
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Mon, 09 May 2016 01:05:24 -0700 |
parents | 54de5144900d |
children | f3f667769aef |
line wrap: on
line diff
--- a/service/reasoning/inference.py Mon May 09 00:32:08 2016 -0700 +++ b/service/reasoning/inference.py Mon May 09 01:05:24 2016 -0700 @@ -2,22 +2,19 @@ see ./reasoning for usage """ -import sys, os, contextlib +import os, contextlib try: from rdflib.Graph import Graph except ImportError: from rdflib import Graph +from rdflib import Namespace from rdflib.parser import StringInputSource -sys.path.append("/my/proj/room/fuxi/build/lib.linux-x86_64-2.6") from FuXi.Rete.Util import generateTokenSet from FuXi.Rete import ReteNetwork from FuXi.Rete.RuleStore import N3RuleStore -from rdflib import plugin, Namespace -from rdflib.store import Store - from greplin import scales STATS = scales.collection('/web', scales.PmfStat('readRules'))