4Suite API Documentation

Module Ft.Rdf.Inference.Action

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
Classes:
Globals:

Classes

class Action

Methods

__init__(self, id_)
execute(self, infEng, context)
class AverageAction(Action)

Methods

__init__(self, arg)
Overrides: __init__ from class Action
execute(self, infEng, context)
Overrides: execute from class Action
class CountAction(Action)

Methods

__init__(self, arg)
Overrides: __init__ from class Action
execute(self, infEng, context)
Overrides: execute from class Action
class DifferenceAction(Action)

Methods

__init__(self, arg, arg1)
Overrides: __init__ from class Action
execute(self, infEng, context)
Overrides: execute from class Action
class ExternalParamAction(Action)

Methods

__init__(self, name, val)
Overrides: __init__ from class Action
execute(self, infEng, context)
Overrides: execute from class Action
class IndexAction(Action)
#Some set functions

Methods

__init__(self, arg, index)
Overrides: __init__ from class Action
execute(self, infEng, context)
Overrides: execute from class Action
class IntersectionAction(Action)

Methods

__init__(self, arg, arg1)
Overrides: __init__ from class Action
execute(self, infEng, context)
Overrides: execute from class Action
class PathsAction(Action)
A Path step is chain of prediactes from the start to the stop Given the following statements: (A,creator,B) (B,name,foo)
and a start of A, and end end of foo

The path would be [creastor,name]

Methods

__init__(self, startSubject, endObject, allowedPredicates)
Overrides: __init__ from class Action
execute(self, infEng, context)
Overrides: execute from class Action
class ReverseAction(Action)

Methods

__init__(self, arg)
Overrides: __init__ from class Action
execute(self, infEng, context)
Overrides: execute from class Action
class ReversePathsAction(Action)
Find all paths given a starting object and an ending subject. Traverse backwards

Methods

__init__(self, startObject, endSubject, allowedPredicates)
Overrides: __init__ from class Action
execute(self, infEng, context)
Overrides: execute from class Action
class SliceAction(Action)

Methods

__init__(self, arg, start, end)
Overrides: __init__ from class Action
execute(self, infEng, context)
Overrides: execute from class Action
class SortAction(Action)
Sort a list of statements based on the object

Methods

__init__(self, arg, sortType, key='object')
Overrides: __init__ from class Action
execute(self, infEng, context)
Overrides: execute from class Action
class SortType
###A sort action

Members

NUMBER_SORT = 1
STRING_SORT = 2
class StatementObject(Action)

Methods

__init__(self, item)
Overrides: __init__ from class Action
execute(self, infEng, context)
Overrides: execute from class Action
class StatementPredicate(Action)

Methods

__init__(self, item)
Overrides: __init__ from class Action
execute(self, infEng, context)
Overrides: execute from class Action
class StatementSubject(Action)
##Actions to split up a statment

Methods

__init__(self, item)
Overrides: __init__ from class Action
execute(self, infEng, context)
Overrides: execute from class Action
class SumAction(Action)
###Some other agregate functions

Methods

__init__(self, arg)
Overrides: __init__ from class Action
execute(self, infEng, context)
Overrides: execute from class Action
class UnionAction(Action)

Methods

__init__(self, arg, arg1)
Overrides: __init__ from class Action
execute(self, infEng, context)
Overrides: execute from class Action
class UniqueAction(Action)
Make a list unique

Methods

__init__(self, arg)
Overrides: __init__ from class Action
execute(self, infEng, context)
Overrides: execute from class Action
class VariableSetAction(Action)

Methods

__init__(self, name, val)
Overrides: __init__ from class Action
execute(self, infEng, context)
Overrides: execute from class Action

Globals

g_keyMap = {'object': 2, 'predicate': 1, 'subject': 0}