!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/lib/python2.4/site-packages/Ft/Rdf/Inference/   drwxr-xr-x
Free 3.46 GB of 27.03 GB (12.8%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Rule.py (1.73 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
########################################################################
#
# File Name:            Rule.py
#
# Documentation:        http://docs.4suite.org/4Rdf/Inference/Rule.py.html
#
"""

WWW: http://4suite.org/4RDF         e-mail: support@4suite.org

Copyright (c) 1999 Fourthought Inc, USA.   All Rights Reserved.
See  http://4suite.org/COPYRIGHT  for license and copyright information
"""

#from Ft.Lib import Set
#import Common
import InferenceEngine

class Rule:
    def __init__(self, id_, premise, conclusion):
        self.premise = premise
        self.conclusion = conclusion
        self.id = id_


    def fire(self, infEng,context):
        if infEng.state != InferenceEngine.InferenceEngine.CHAINING:
            return

        #Add Skolem Variables to the context
        context.skolemVariables = {}
        oldFire = context.fireRules
        context.fireRules = 0
        for predicate in self.premise:
            predicate.execute(infEng, context)

        for action in self.conclusion:
            action.execute(infEng, context)

        delattr(context,'skolemVariables')
        context.fireRules = oldFire

        return

    def execute(self,infEng,context):
        infEng.rules.append(self)
        return

    def _4rdf_dump(self,indent = 0):
        iStr = '\t'*indent
        iStr2 = '\t'*(indent+1)

        rt = iStr + '<ril:rule>\n'
        rt = rt + iStr2 + '<ril:premise>\n'
        for p in self.premise:
            rt = rt + p._4rdf_dump(indent+2)
        rt = rt + iStr2 + '</ril:premise>\n'
        rt = rt + iStr2 + '<ril:conclusion>\n'
        for p in self.conclusion:
            rt = rt + p._4rdf_dump(indent+2)
        rt = rt + iStr2 + '</ril:conclusion>\n'
        rt = rt + iStr + '</ril:rule>\n'
        return rt

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0041 ]--