Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)
    A specialized Store which maintains order of statements
    and creates N3Filters, Rules, Formula objects, and other facts
    Ensures builtin filters refer to variables that have preceded

    >>> s=N3RuleStore()
    >>> g=Graph(s)
    >>> src = """
    ... @prefix str:   <http://www.w3.org/2000/10/swap/string#>.
    ... @prefix math: <http://www.w3.org/2000/10/swap/math#>.
    ... @prefix log:   <http://www.w3.org/2000/10/swap/log#>.(more...)

src/f/u/FuXi-1.4.1.production/lib/Rete/Network.py   FuXi(Download)
from rdflib.syntax.NamespaceManager import NamespaceManager
from ReteVocabulary import RETE_NS
from RuleStore import N3RuleStore,N3Builtin, Formula
OWL_NS    = Namespace("http://www.w3.org/2002/07/owl#")
Any = None
    def parseN3Logic(self,src):
        store=N3RuleStore(additionalBuiltins=self.ruleStore.filters)
        Graph(store).parse(src,format='n3')
        store._finalize()
        assert len(store.rules),"There are no rules passed in!"

src/f/u/FuXi-HEAD/lib/Rete/Network.py   FuXi(Download)
 
from .ReteVocabulary import RETE_NS
from .RuleStore import (
    Formula,
    N3Builtin,
    def parseN3Logic(self, src):
        store = N3RuleStore(additionalBuiltins=self.ruleStore.filters)
        Graph(store).parse(src, format='n3')
        store._finalize()
        assert len(store.rules), "There are no rules passed in."

src/r/d/RDF.py-HEAD/FuXi/Rete/Network.py   RDF.py(Download)
from rdflib.namespace import NamespaceManager
from ReteVocabulary import RETE_NS
from RuleStore import N3RuleStore,N3Builtin, Formula
OWL_NS    = Namespace("http://www.w3.org/2002/07/owl#")
Any = None
    def parseN3Logic(self,src):
        store=N3RuleStore(additionalBuiltins=self.ruleStore.filters)
        Graph(store).parse(src,format='n3')
        store._finalize()
        assert len(store.rules),"There are no rules passed in!"