Ejemplo n.º 1
0
    def __init__(self, chainer):
        a = chainer.new_variable()
        b = chainer.new_variable()
        c = chainer.new_variable()

        self.chainer = chainer
        Rule.__init__(
            self,
            formula=contextFormula,
            inputs=[
                chainer.link(
                    types.InheritanceLink,  # InheritanceLink
                    [
                        chainer.link(types.AndLink, [a, c]),  # C ANDLink A
                        # C ANDLink B
                        chainer.link(types.AndLink, [c, b])
                    ])
            ],
            outputs=[
                chainer.link(
                    types.ContextLink,  # ContextLink
                    [
                        c,
                        # InheritanceLink
                        chainer.link(types.InheritanceLink, [a, b])
                    ])
            ])
Ejemplo n.º 2
0
 def __init__(self, chainer):
     a = chainer.new_variable()
     c = chainer.new_variable()
     self.chainer = chainer
     Rule.__init__(self,
                   formula=contextFormula,
                   inputs=[chainer.link(types.ContextLink, [c, a])],
                   outputs=[])
Ejemplo n.º 3
0
 def __init__(self, chainer):
     a = chainer.new_variable()
     c = chainer.new_variable()
     self.chainer = chainer
     Rule.__init__(self,
                   formula=contextFormula,
                   inputs=[chainer.link(types.ContextLink, [c, a])],
                   outputs=[])
Ejemplo n.º 4
0
    def __init__(self, chainer):
        a = chainer.new_variable()
        b = chainer.new_variable()
        c = chainer.new_variable()

        self.chainer = chainer
        Rule.__init__(self,
                      formula=None,
                      inputs=[chainer.link(
                          types.EvaluationLink,   # EvaluationLink
                          [a,  # PredicateNode A
                           chainer.link(
                               types.ListLink,   # ListLink
                               # C ANDLink B
                               [chainer.link(types.AndLink, [c, b])])])],
                      outputs=[])
Ejemplo n.º 5
0
    def __init__(self, chainer):
        a = chainer.new_variable()
        b = chainer.new_variable()
        c = chainer.new_variable()

        self.chainer = chainer
        Rule.__init__(self,
                      formula=None,
                      inputs=[chainer.link(
                          types.ContextLink,  # ContextLink
                          [c,  # ConceptNode C
                           chainer.link(types.EvaluationLink,  # EvaluationLink
                                        [a,  # PredicateNode Ac
                                         chainer.link(types.ListLink,
                                                      [b])])])],
                      outputs=[])
Ejemplo n.º 6
0
    def __init__(self, chainer):
        a = chainer.new_variable()
        b = chainer.new_variable()
        c = chainer.new_variable()

        self.chainer = chainer
        Rule.__init__(self,
                      formula=None,
                      inputs=[chainer.link(
                          types.EvaluationLink,   # EvaluationLink
                          [a,  # PredicateNode A
                           chainer.link(
                               types.ListLink,   # ListLink
                               # C ANDLink B
                               [chainer.link(types.AndLink, [c, b])])])],
                      outputs=[])
Ejemplo n.º 7
0
    def __init__(self, chainer):
        a = chainer.new_variable()
        b = chainer.new_variable()
        c = chainer.new_variable()

        self.chainer = chainer
        Rule.__init__(self,
                      formula=None,
                      inputs=[chainer.link(
                          types.ContextLink,  # ContextLink
                          [c,  # ConceptNode C
                           chainer.link(types.EvaluationLink,  # EvaluationLink
                                        [a,  # PredicateNode Ac
                                         chainer.link(types.ListLink,
                                                      [b])])])],
                      outputs=[])
Ejemplo n.º 8
0
    def __init__(self, chainer):
        a = chainer.new_variable()
        b = chainer.new_variable()
        c = chainer.new_variable()

        self.chainer = chainer
        Rule.__init__(self,
                      formula=contextFormula,
                      inputs=[chainer.link(
                          types.InheritanceLink,  # InheritanceLink
                          [chainer.link(types.AndLink, [a, c]),  # C ANDLink A
                           # C ANDLink B
                           chainer.link(types.AndLink, [c, b])])],
                      outputs=[chainer.link(
                          types.ContextLink,  # ContextLink
                          [c,
                           # InheritanceLink
                           chainer.link(types.InheritanceLink,
                                        [a, b])])])