SlideShare a Scribd company logo
RuleML/Grailog:
The Rule Metalogic Visualized
  with Generalized Graphs
             Harold Boley
            NRC-IIT Fredericton
        Faculty of Computer Science
        University of New Brunswick
                   Canada

            PhiloWeb 2011
  Thessaloniki, Greece, 5 October 2011
1




    Graph Visualization of Logic
• Enrich logical knowledge specifications
  with a convenient 2-dimensional syntax
  for logic-as-graph visualization
  – Supports human in the loop in knowledge
    elicitation, validation, and processing
• Complementary to the use of graphs
  for the efficient implementation of such
  specifications
2


    Rule MetaLogic Provides
 Family of Language Standards for
   Web Knowledge Interchange

• Developed on the Web:
  http://ruleml.org/metalogic
• Principal (family-uniform) and
  variant semantics
• Family-uniform syntaxes for
  humans and machines
3



    Three RuleML Syntaxes (1)
                   Syntax

   Visualization             Symbolic

              Presentation
                              Serialization


RuleML/Grailog RuleML/POSL RuleML/XML
4



     Three RuleML Syntaxes (2)

Serialization = RuleML/XML:
Specified in XML Schema and recently in Relax NG:
http://ruleml.org


Presentation = RuleML/POSL:
Integrates Prolog and F-logic, and translates to RuleML/XML:
http://ojs.academypublisher.com/index.php/jetwi/article/view/0204343353


Visualization = RuleML/Grailog:
Based on Directed Recursive Labelnode Hypergraphs (DRLHs):
http://www.dfki.uni-kl.de/~boley/drlhops.abs.html
5




                 Grailog
Graph inscribed logic invokes imagery for logic

        Proposed cognitively adequate
    graph standard for visualized knowledge:
  Easy to learn and draw, read and remember,
  e.g. for eScience, eLearning, and eBusiness

         Permits logic-cognitive nets
            on the Semantic Web
6


       Generalized Graphs
      for the Representation
 and Mapping of Logic Languages
• We have used generalized graphs for representing
  various logic languages, where basically:
  – Graph nodes (vertices) represent individuals, classes, etc.
  – Graph arcs (edges) represent relations
• Next slides:
  What are the principles of this representation and
  what graph generalizations are required?
• Later slides:
  How are these graphs (invertibly) mapped to logic?
7




              Grailog Principles
• Graphs should make it easier for humans to
  read and write logic constructs by exploiting the
  2-dimensional representation
• Graphs should be natural extensions of
  Directed Labeled Graphs (DLGs), used to
  represent simple semantic nets, i.e. of atomic
  ground formulas in function-free binary predicate
  logic (cf. binary Datalog ground facts and RDF triples)
• Graphs should allow stepwise refinements for all
  logic constructs, e.g. description logic TBoxes
8


  Searle’s Chinese Room Argument
Classes with relations
                                                                              subsumes

  understand
                                                                              hasInstance
                             Language


  understand                                                                  negation
                  English                   Chinese

               lang           lang          lang               lang       lang haveLanguage
                       to            with                for
               rules         texts          questions           replies
      apply            use           with                for

                       Searle          Wang             Searle-replyi        Wang-replyi


                                                                 distinguishable
Instances with relations
9




          Grailog Generalizations
• Directed hypergraphs: For n-ary relations, directed
  (binary) arcs should be generalized to directed
  (n-ary) hyperarcs, e.g. representing relational tuples

• Recursive (hierarchical) graphs: For nested terms
  and formulas, modal logics, and modularization, ‘flat’
  graphs should be generalized to allow other graphs as
  complex nodes to any level of ‘depth’

• Labelnode graphs: For allowing hybrid logics
  describing both instances and predicates, arc labels
  should also become usable as nodes
10




Graphical Elements: Basic Shapes (1)
 • Boxes for atomic and complex nodes
   – Oval: Classes, as labelnodes, for unary relations
   – Rectangle: Atomic for instances. Complex for (‘passive’)
     instance-denoting constructor-function applications
   – Roundangle (Rounded rectangle): (‘active’) function,
     predicate, and connective applications
   – Octagon: Embedded propositions and modules
 • Labeled arrows (directed links) for arcs and
   hyperarcs (where hyperarcs ‘cut through’ nodes
   intermediate between first and last)
11




Graphical Elements: Basic Shapes (2)

 • Arrows for special arcs and hyperarcs
   – subsumes: Connects superclass, unlabeled,
     with subclass (arc, i.e. of length 2)
   – hasInstance: Connects class, as labelnode,
     with instance (hyperarc of length 1)
      • As in DRLHs, labelnodes can also be used
        (instead of labels) for hyperarcs of length > 1
   – Implies: Hyperarc from premise(s) to conclusion
12




    Graphical Elements: Line Styles
• Solid lines (boxes & links): Positive
• Dashed lines (boxes & links): Negative
• Dotted lines (boxes): Disjunctive

• Heavy single lines (unlabeled arrows): subsumes
• Light single lines (unlabeled arrows): hasInstance

• Heavy double lines (unlabeled arrows): Implies
• Light double lines (unlabeled undirected links): Equal
13




Graphical Elements: Hatching Patterns

 • No hatching (boxes): Constant
 • Hatching (atomic boxes): Variable
14



  Instances: Individual Constants
                            mapping
General:   Graph (node)               Logic (and POSL)
           instance                   instance

Examples: Graph                       Logic

           Warren Buffett             Warren Buffett

           General Electric           General Electric

           US$ 3 000 000 000          US$ 3 000 000 000
15



  Unknowns: Individual Variables
General:   Graph (hatched node) Logic (POSL uses “?” prefix)
           variable                  variable

Examples: Graph                      Logic

           X                         X

           Y                         Y

           A                         A
16



  Predicates: Binary Relations (1)
General:     Graph (labeled arc)            Logic
                         binrel
                 inst1            inst2     binrel(inst1, inst2)


Example: Graph                              Logic

                 Trust
Warren Buffett           General Electric   Trust(Warren Buffett,
                                                  General Electric
                                                  )
17



 Predicates: Binary Relations (2)
General:   Graph (labeled arc)     Logic
                   binrel
            var1            var2   binrel(var1, var2)


Example: Graph                     Logic

                Trust
            X           Y          Trust(X,Y)
18



   Equality Predicate: Distinguished
General:    Graph (unlabeled       Logic (with equality)
            undirected double arc)

                inst1           inst2      inst1 = inst2


Example: Graph                             Logic (with equality)

           GE           General Electric   GE = General Electric
19



Negated Predicates: Binary Relations
General:    Graph (dashed arc)            Logic
                         binrel
             inst1                inst2   ¬ binrel(inst1, inst2)


Example: Graph                            Logic

                 Trust
Joe Smallstock           General Electric ¬ Trust(
                                               Joe Smallstock,
                                               General Electric
                                                  )
20



  Inequality Predicate: Distinguished
General:    Graph (dashed             Logic (with equality)
            unlabeled undirected
            double arc)

             inst1         inst2      inst1 ≠ inst2


Example: Graph                        Logic (with equality)

Joe Smallstock       Warren Buffett   Joe Smallstock ≠
                                            Warren Buffett
21



    Predicates: n-ary Relations (n>1)
General:         Graph (hyperarc)            Logic
        rel
inst1         inst2      instn-1     instn   rel(inst1, inst2, ...,
                                                 instn-1, instn)

Example: Graph                               Logic
(n=3)
        Invest
WB                GE    US$ 3 ·109           Invest(WB,
                                                    GE,
                                                    US$ 3·109)
22



 Negated Predicates: n-ary Relations
General:         Graph (dashed: not)         Logic
        rel
inst1         inst2      instn-1     instn   ¬ rel(inst1, inst2, ...,
                                                   instn-1, instn)

Example: Graph                               Logic
(n=3)
        Invest
WB                GE    US$ 4 ·109           ¬ Invest(WB,
                                                      GE,
                                                   US$ 4·109)
23

Implicit Conjunction of Formula Graphs:
     Co-Occurrence on Top-Level
General:       Graph (m hyperarcs)          Logic
                                            rel1(inst1,1, inst1,2,
 inst1,1 rel1 inst1,2            inst1,n1
                                                 ..., inst1,n1) ∧
                 ...                            ...              ∧
 instm,1 relm instm,2            instm,nm   relm(instm,1, instm,2,
                                                 ...,instm,nm)

Example: Graph (2 hyperarcs)                Logic
                                            Invest(WB, GE,
 WB Invest     GE       US$ 3   ·109
                                                US$ 3·109) ∧
                                            Invest(JS, VW,
 JS   Invest   VW       US$ 2 ·104
                                                US$ 2·104)
24
Explicit Conjunction of Formula Graphs:
   Co-Occurrence in Complex Node
General:     Graph (m hyperarcs)        Logic

                                        (rel1(inst1,1, inst1,2,
  inst1,1 rel1 inst1,2       inst1,n1
                                             ..., inst1,n1) ∧
                 ...                        ...              ∧
  instm,1 relm instm,2       instm,nm    relm(instm,1, instm,2,
                                              ...,instm,nm))

Example: Graph (2 hyperarcs)            Logic
                                        (Invest(WB, GE,
  WB Invest      GE      US$ 3   ·109
                                            US$ 3·109) ∧
  JS             VW      US$ 2 ·104      Invest(JS, VW,
        Invest
                                             US$ 2·104))
25
   Disjunction of Formula Graphs:
  Co-Occurrence in Disjunctive Node
General:    Dotted Graph               Logic

                                       (rel1(inst1,1, inst1,2,
 inst1,1 rel1 inst1,2       inst1,n1
                                            ..., inst1,n1) ∨
                ...                        ...               ∨
 instm,1 relm instm,2       instm,nm    relm(instm,1, instm,2,
                                             ...,instm,nm) )

Example: Dotted Graph                  Logic
                                       (Invest(WB, GE,
  WB Invest     GE      US$ 3   ·109
                                           US$ 3·109) ∨
  JS            VW      US$ 2 ·104      Invest(JS, VW,
       Invest
                                            US$ 2·104))
26

        Predicates: Unary Relations
        (Classes, Concepts, Types)
General:       Graph (class applied   Logic
               to instance node)
                   class
 hasInstance                          class(inst1)
                    inst1

Example: Graph                        Logic
                  Billionaire
                                      Billionaire(
                                       Warren Buffett)
                Warren Buffett
27




Negated Predicates: Unary Relations
General:      Graph (class dash-applied   Logic
              to instance node)
                       class
 not hasInstance                          ¬ class(inst1)
                       inst1

Example: Graph                            Logic
                     Billionaire
                                          ¬ Billionaire(
                                           Joe Smallstock)
                   Joe Smallstock
28

   Class Hierarchies (Taxonomies):
          Subclass Relation
General:    Graph (two nodes)   (Description)
                 class2         Logic
 subsumes
                                class1        class2
                 class1

Example: Graph                  (Description)
                  Rich          Logic
                                Billionaire     Rich

                Billionaire
29

   Class Hierarchies (Taxonomies):
      Negated Subclass Relation
General:        Graph (two nodes)   (Description)
                     class2         Logic
 not subsumes
                                    class1        class2
                     class1

Example: Graph                      (Description)
                      Poor          Logic
                                    Billionaire     Poor

                    Billionaire
30

Class Hierarchies (Taxonomy Trees):
            Class Union
General:       Graph (blank node over n)            (Description)
                                                    Logic
 subsumes
                         ...                        class1
                                                    class2
                                                       ...
     class1     class2         ...   classn
                                                    classn
Example: Graph (blank node over 3)                  (Description)
                                                    Logic
                                                    Billionaire
                                                    Benefactor
Billionaire   Benefactor         Environmentalist   Environmentalist
31

Class Hierarchies (Taxonomy DAGs):
         Class Intersection
General:       Graph (blank node under n) (Description)
                                          Logic
     class1     class2         ...   classn
                         ...                        class1
                                                    class2
 subsumes                                              ...
                                                    classn
Example: Graph (blank node under 3) (Description)
                                    Logic
Billionaire   Benefactor         Environmentalist   Billionaire
                                                    Benefactor
                                                    Environmentalist
32

   Class Hierarchies (Taxonomies):
         Class Complement
General:    Graph                             (Description)
            (dashed node                      Logic
            contains node
            to be complemented)
           Arbitrary class   Atomic class
                             (abbreviation)


                  class          class        ¬ class

Example: Graph                                (Description)
                                              Logic
               Billionaire    Billionaire     ¬ Billionaire
33

Intensional Class Constructions (Ontologies):
Class-Property-Restricting TBox (Existential)
 General:    Graph                   (Description)
                                     Logic
            ∃binrel
                      class          ∃binrel . class


 Example: Graph                      (Description)
                                     Logic
            ∃ Substance
                          Physical   ∃Substance . Physical
34

Instance Assertions (Populated Ontologies):
   ABox for Restriction TBox (Existential)
General:       Graph                (Description)
                                    Logic
            ∃binrel
                      class         ∃binrel.class(inst1)
                                    class(inst2)
            binrel
   inst1              inst2         binrel(inst1, inst2)

Example: Graph                      (Description)
                                    Logic
           ∃ Substance
                         Physical   ∃Substance.Physical
                                                  (Socrates)
             Substance              Physical(P1)
 Socrates                P1
                                    Substance(Socrates,P1)
35

Intensional Class Constructions (Ontologies):
 Class-Property-Restricting TBox (Universal)
 General:    Graph                   (Description)
                                     Logic
            ∀binrel
                      class          ∀binrel . class


 Example: Graph                      (Description)
                                     Logic
            ∀ Substance
                          Physical   ∀Substance . Physical
36
Instance Assertions (Populated Ontologies):
    ABox for Restriction TBox (Universal)
General:       Graph                        (Description)
               ∀binrel                      Logic
                            class           ∀binrel.class(inst1)
                                            class(inst2)
                                            ...
               binrel             ...       class(instn)
                         inst2
      inst1     ...                         binrel(inst1, inst2)
                                    instn   ...
               binrel                       binrel(inst1, instn)

Example: Graph                              (Description)
                                            Logic
              ∀ Substance
                              Physical      ∀Substance.Physical
                                                         (Socrates)
             Substance
                         P1                 Physical(P1)
  Socrates                                  Physical(P2)
             Substance
                                  P2        Substance(Socrates, P1)
                                            Substance(Socrates, P2)
37


     Modally Embedded Propositions
General:       Graph                  (Modal) Logic
               (complex octagon node
                used to ‘quarantine’ what
                another agent believes, wants, etc.)
        believe
agent                 graph             believeagent(graph)


Example: Graph                          (Modal) Logic
     believe         Invest
GE              WB            GE     US$ 4 ·109

                                   believeGE(Invest(WB,
                                                    GE,
                                                    US$ 4 ·109))
38



Rules: Relations Imply Relations (1)
General:      Graph (ground)               Logic
           rel1
                                           rel1(inst1,1, inst1,2,
 inst1,1          inst1,2       inst1,n1
                                                ..., inst1,n1) ⇒

 inst2,1 rel2 inst2,2           inst2,n2   rel2(inst2,1, inst2,2,
                                                ...,inst2,n2)

Example: Graph                             Logic
       Invest                              Invest(WB, GE,
  WB               GE       US$ 3   ·109
                                               US$ 3·109) ⇒
  JS               GE       US$ 5 ·103     Invest(JS, GE,
       Invest
                                               US$ 5·103)
39



Rules: Relations Imply Relations (2)
General:      Graph (non-ground)          Logic
           rel1                           (∀vari,j)
 var1,1            var1,2       var1,n1    rel1(var1,1, var1,2,
                                               ..., var1,n1) ⇒
 var2,1 rel2 var2,2             var2,n2    rel2(var2,1, var2,2,
                                               ...,var2,n2)

Example: Graph                            Logic
          Invest
                                          (∀ X, Y, A, U, V, B)
  X                 Y       A
                                          Invest(X, Y, A) ⇒
  U       Invest    V       B             Invest(U, V, B)
40



Rules: Relations Imply Relations (3)
General:      Graph (inst/var terms)       Logic
           rel1                            (∀vari,j)
 term1,1          term1,2       term1,n1    rel1(term1,1, term1,2,
                                                ..., term1,n1) ⇒
 term2,1 rel2 term2,2           term2,n2    rel2(term2,1, term2,2,
                                                  ..., term2,n2)

Example: Graph                             Logic
       Invest
                                           (∀ Y, A)
  WB               Y        A
                                           Invest(WB,Y,A) ⇒
  JS               Y        US$ 5 ·103     Invest(JS, Y,
       Invest
                                               US$ 5·103)
41



Rules: Conjunctions Imply Relations
General:       Graph (inst/var terms)        Logic
            rel1                             (∀vari,j)
 term1,1            term1,2       term1,n1    rel1(term1,1, term1,2,
            rel2
                                                 ..., term1,n1) ∧
 term2,1 rel term2,2              term2,n2    rel2(term2,1, term2,2,
            3
                                                   ..., term2,n2) ⇒
 term3,1      term3,2             term3,n3    rel3(term3,1, term3,2,
                                                   ..., term3,n3)
Example: Graph                               Logic
           Invest                            (∀ Y, A)
  WB
           Trust
                        Y     A              Invest(WB,Y,A) ∧
  JS                    Y                    Trust(JS, Y)   ⇒
           Invest                            Invest(JS, Y,
  JS                    Y     US$ 5 ·103         US$ 5·103)
42



     Beliefs and Desires as
    Propositional Attitudes (1)
Propositional attitude: a mental state relating
a person to a proposition
“If George desires action A and believes
(the proposition) that originator O will cause A,
then George desires O.”
                     desire
Grailog:            George believe   A
                                         cause   O
                     desire
43



      Beliefs and Desires as
     Propositional Attitudes (2)
Example: “If John fears (state of affairs) X,
then John wants that not X.”
                                  fear
Grailog:             John                              X
                                  want



While variables A and O of the earlier example are bound to
an action and originator individual, variable X here is bound to
an entire proposition or an arbitrarily complex set of propositions
44



                 Conclusions (1)
• Refining/extending Grailog for the Rule Metalogic
• Comparing it with other graph formalisms
  – Conceptual Graphs: http://conceptualstructures.org
  – Unified Modeling Language: http://www.uml.org
• Use cases from philosophy to technology to business
  – E.g. “Logical Foundations of Cognitive Science”:
    http://www.ict.tuwien.ac.at/lva/Boley_LFCS/index.html
• Implementing tools
  –   Mapping between graphs, logic (as shown) & RuleML/XML
  –   Graph indexing & querying (cf. http://www.hypergraphdb.org)
  –   Graph-to-graph transformations (normal forms, merges, ...)
  –   Advanced graph-theoretical operations (e.g., path tracing)
• Submitting to standards body
45



            Conclusions (2)
• Proceeding from the 2-dimensional (planar)
  Grailog to a 3-dimensional (spatial) one
  – Exploiting advantages of crossing-free layout,
    spatial shortcuts, and analogical representation
    of 3D worlds
  – Mitigating disadvantages of occlusion and
    of harder spatial orientation and navigation
• Considering the 4th (temporal) dimension of
  animations to visualize logical inferences,
  graph processing, etc.
• See also: http://ruleml.org/#Grailog

More Related Content

PPT
Representing and Reasoning with Modular Ontologies (2007)
PDF
An Unorthodox View on Memetic Algorithms
PDF
Integration in Finite Terms
PPTX
Csr2011 june17 15_15_kaminski
PDF
Jarrar.lecture notes.aai.2012s.descriptionlogic
PPT
On the Semantics of Linking and Importing in Modular Ontologies
PDF
AN IMPLEMENTATION, EMPIRICAL EVALUATION AND PROPOSED IMPROVEMENT FOR BIDIRECT...
PDF
Graph-to-Text Generation and its Applications to Dialogue
Representing and Reasoning with Modular Ontologies (2007)
An Unorthodox View on Memetic Algorithms
Integration in Finite Terms
Csr2011 june17 15_15_kaminski
Jarrar.lecture notes.aai.2012s.descriptionlogic
On the Semantics of Linking and Importing in Modular Ontologies
AN IMPLEMENTATION, EMPIRICAL EVALUATION AND PROPOSED IMPROVEMENT FOR BIDIRECT...
Graph-to-Text Generation and its Applications to Dialogue

What's hot (20)

PDF
Ontology Engineering SSSC2009
PDF
Bq25399403
PDF
ICSM04 Poster.ppt
PDF
p138-jiang
PDF
Equivalence of Logics: the categorical proof theory perspective
PDF
OOPSLA04.ppt
PDF
Keyword proximity search in xml trees andrada astefanoaie - presentation
PPTX
Presentation1
PDF
Dialectica Comonads
PPT
Modular Ontologies - A Formal Investigation of Semantics and Expressivity
PDF
Object segmentation by alignment of poselet activations to image contours
PDF
Logics of Context and Modal Type Theories
PDF
Adaptation of Multilingual Transformer Encoder for Robust Enhanced Universal ...
PDF
Querying UML Class Diagrams - FoSSaCS 2012
PDF
Conference ECT 2010
PDF
Semi-Supervised Autoencoders for Predicting Sentiment Distributions(第 5 回 De...
PDF
On the Decidability of Role Mappings Between Modular Ontologies
PDF
AbstractKR on Pargram 2006
PDF
Dependent Types in Natural Language Semantics
PDF
The Graph Traversal Pattern
Ontology Engineering SSSC2009
Bq25399403
ICSM04 Poster.ppt
p138-jiang
Equivalence of Logics: the categorical proof theory perspective
OOPSLA04.ppt
Keyword proximity search in xml trees andrada astefanoaie - presentation
Presentation1
Dialectica Comonads
Modular Ontologies - A Formal Investigation of Semantics and Expressivity
Object segmentation by alignment of poselet activations to image contours
Logics of Context and Modal Type Theories
Adaptation of Multilingual Transformer Encoder for Robust Enhanced Universal ...
Querying UML Class Diagrams - FoSSaCS 2012
Conference ECT 2010
Semi-Supervised Autoencoders for Predicting Sentiment Distributions(第 5 回 De...
On the Decidability of Role Mappings Between Modular Ontologies
AbstractKR on Pargram 2006
Dependent Types in Natural Language Semantics
The Graph Traversal Pattern
Ad

Viewers also liked (20)

PDF
Selmer Bringsjord & Naveen Sundar G.: Given the Web, What is Intelligence, R...
PPTX
Michalis Vafopoulos: Initial thoughts about existence in the Web
PDF
Reuben Binns: Social Knowledge and the Web
PDF
RuleML 2015 Constraint Handling Rules - What Else?
PDF
RuleML 2015: When Processes Rule Events
PDF
Where do "ontologies" come from?
PPTX
Raffaela Giovagnoli: Autonomy, Scorekeeping and the Net
PDF
Filter Bubble and Enframing
PDF
From Linked Documentary Resources to Linked Computational Resources
PDF
PhiloWeb panel. "Philosophy" of the Web
PPT
"Ontologies" : De la sémantique à l'éthique
PPTX
A methodology for internal Web ethics
PDF
Optimization of process parameter for stir casted aluminium metal matrix comp...
PDF
Containing the Semantic Explosion
PPTX
Evaluation of Mechanical properties of Aluminium based MMC
PPTX
Freddy Limpens: From folksonomies to ontologies: a socio-technical solution.
PDF
Philosophy and the Social Web
PDF
EFFECT OF AL2O3 ON WEAR RESISTANCE IN ALUMINUM MATRIX COMPOSITE PRODUCED BY S...
PDF
Phy351 ch 7
PPTX
Study of hybrid composite beam using woven roving mat
Selmer Bringsjord & Naveen Sundar G.: Given the Web, What is Intelligence, R...
Michalis Vafopoulos: Initial thoughts about existence in the Web
Reuben Binns: Social Knowledge and the Web
RuleML 2015 Constraint Handling Rules - What Else?
RuleML 2015: When Processes Rule Events
Where do "ontologies" come from?
Raffaela Giovagnoli: Autonomy, Scorekeeping and the Net
Filter Bubble and Enframing
From Linked Documentary Resources to Linked Computational Resources
PhiloWeb panel. "Philosophy" of the Web
"Ontologies" : De la sémantique à l'éthique
A methodology for internal Web ethics
Optimization of process parameter for stir casted aluminium metal matrix comp...
Containing the Semantic Explosion
Evaluation of Mechanical properties of Aluminium based MMC
Freddy Limpens: From folksonomies to ontologies: a socio-technical solution.
Philosophy and the Social Web
EFFECT OF AL2O3 ON WEAR RESISTANCE IN ALUMINUM MATRIX COMPOSITE PRODUCED BY S...
Phy351 ch 7
Study of hybrid composite beam using woven roving mat
Ad

Similar to Harold Boley: RuleML/Grailog: The Rule Metalogic Visualized with Generalized Graphs (20)

PDF
From Data to Knowledge thru Grailog Visualization
PPTX
Knowledge Extraction
PDF
Meaning Extraction - IJCTE 2(1)
PPT
Chaps 1-3-ai-prolog
PDF
A Graph Syntax for Processes and Services @ Workshop WS-FM 2009
PDF
KR Workshop 1 - Ontologies
PDF
AI Lesson 11
PPT
Knowledge engg using & in fol
PDF
Induced Intentional Software Views
KEY
Verification with LoLA
DOC
Ch 6 final
PPTX
Prolog 7-Languages
PPTX
Fis2010 0823
PDF
Constructive Description Logics 2006
PPT
PPTX
aritficial intellegence
PDF
Adhoc frames conceptual graphs
PPT
Translating into Common Logic
PDF
Lesson 19
PDF
AI Lesson 19
From Data to Knowledge thru Grailog Visualization
Knowledge Extraction
Meaning Extraction - IJCTE 2(1)
Chaps 1-3-ai-prolog
A Graph Syntax for Processes and Services @ Workshop WS-FM 2009
KR Workshop 1 - Ontologies
AI Lesson 11
Knowledge engg using & in fol
Induced Intentional Software Views
Verification with LoLA
Ch 6 final
Prolog 7-Languages
Fis2010 0823
Constructive Description Logics 2006
aritficial intellegence
Adhoc frames conceptual graphs
Translating into Common Logic
Lesson 19
AI Lesson 19

More from PhiloWeb (17)

PDF
Philosophical Foundations for a Services Systems Approach
PDF
Le Web a-t-il besoin d'une logique ? Un point de vue aporétique.
PDF
Extending the Mind with Cognitive Prosthetics?
PDF
Michael Wheeler's presentation in Sorbonne, "Philosophy of the Web" seminar, ...
PDF
Common Logic: An Evolutionary Tale
PDF
Rethinking Realpolitik: The Afterglobalization Movement and Beyond
PDF
The Philosophy of Information and the Structure of Philosophical Revolutions
PPT
Web Metaphysics between Logic and Ontology
PDF
Meaning and the Semantic Web
PPTX
Henry Thompson : Are Uris really names?
PDF
Alexandre Monnin: W3C TPAC presentation of PhiloWeb
PDF
Alexandra Arapinis : From ontological structures to semantic lexical structur...
PDF
Henry Story: Philosophy and the Social Web
PPT
Harry Halpin: Artificial Intelligence versus Collective Intelligence
PPT
Yuk Hui: What is a digital object?
PPTX
Nicolas Delaforge: Modeling the Web resource, extracting the context: stakes ...
PPT
Pierre Livet: Ontologies, from entities to operations.
Philosophical Foundations for a Services Systems Approach
Le Web a-t-il besoin d'une logique ? Un point de vue aporétique.
Extending the Mind with Cognitive Prosthetics?
Michael Wheeler's presentation in Sorbonne, "Philosophy of the Web" seminar, ...
Common Logic: An Evolutionary Tale
Rethinking Realpolitik: The Afterglobalization Movement and Beyond
The Philosophy of Information and the Structure of Philosophical Revolutions
Web Metaphysics between Logic and Ontology
Meaning and the Semantic Web
Henry Thompson : Are Uris really names?
Alexandre Monnin: W3C TPAC presentation of PhiloWeb
Alexandra Arapinis : From ontological structures to semantic lexical structur...
Henry Story: Philosophy and the Social Web
Harry Halpin: Artificial Intelligence versus Collective Intelligence
Yuk Hui: What is a digital object?
Nicolas Delaforge: Modeling the Web resource, extracting the context: stakes ...
Pierre Livet: Ontologies, from entities to operations.

Recently uploaded (20)

PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
A Presentation on Artificial Intelligence
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
Cloud computing and distributed systems.
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
KodekX | Application Modernization Development
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Network Security Unit 5.pdf for BCA BBA.
A Presentation on Artificial Intelligence
Review of recent advances in non-invasive hemoglobin estimation
Advanced methodologies resolving dimensionality complications for autism neur...
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Dropbox Q2 2025 Financial Results & Investor Presentation
Building Integrated photovoltaic BIPV_UPV.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Understanding_Digital_Forensics_Presentation.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Cloud computing and distributed systems.
Spectral efficient network and resource selection model in 5G networks
Unlocking AI with Model Context Protocol (MCP)
Diabetes mellitus diagnosis method based random forest with bat algorithm
KodekX | Application Modernization Development

Harold Boley: RuleML/Grailog: The Rule Metalogic Visualized with Generalized Graphs

  • 1. RuleML/Grailog: The Rule Metalogic Visualized with Generalized Graphs Harold Boley NRC-IIT Fredericton Faculty of Computer Science University of New Brunswick Canada PhiloWeb 2011 Thessaloniki, Greece, 5 October 2011
  • 2. 1 Graph Visualization of Logic • Enrich logical knowledge specifications with a convenient 2-dimensional syntax for logic-as-graph visualization – Supports human in the loop in knowledge elicitation, validation, and processing • Complementary to the use of graphs for the efficient implementation of such specifications
  • 3. 2 Rule MetaLogic Provides Family of Language Standards for Web Knowledge Interchange • Developed on the Web: http://ruleml.org/metalogic • Principal (family-uniform) and variant semantics • Family-uniform syntaxes for humans and machines
  • 4. 3 Three RuleML Syntaxes (1) Syntax Visualization Symbolic Presentation Serialization RuleML/Grailog RuleML/POSL RuleML/XML
  • 5. 4 Three RuleML Syntaxes (2) Serialization = RuleML/XML: Specified in XML Schema and recently in Relax NG: http://ruleml.org Presentation = RuleML/POSL: Integrates Prolog and F-logic, and translates to RuleML/XML: http://ojs.academypublisher.com/index.php/jetwi/article/view/0204343353 Visualization = RuleML/Grailog: Based on Directed Recursive Labelnode Hypergraphs (DRLHs): http://www.dfki.uni-kl.de/~boley/drlhops.abs.html
  • 6. 5 Grailog Graph inscribed logic invokes imagery for logic Proposed cognitively adequate graph standard for visualized knowledge: Easy to learn and draw, read and remember, e.g. for eScience, eLearning, and eBusiness Permits logic-cognitive nets on the Semantic Web
  • 7. 6 Generalized Graphs for the Representation and Mapping of Logic Languages • We have used generalized graphs for representing various logic languages, where basically: – Graph nodes (vertices) represent individuals, classes, etc. – Graph arcs (edges) represent relations • Next slides: What are the principles of this representation and what graph generalizations are required? • Later slides: How are these graphs (invertibly) mapped to logic?
  • 8. 7 Grailog Principles • Graphs should make it easier for humans to read and write logic constructs by exploiting the 2-dimensional representation • Graphs should be natural extensions of Directed Labeled Graphs (DLGs), used to represent simple semantic nets, i.e. of atomic ground formulas in function-free binary predicate logic (cf. binary Datalog ground facts and RDF triples) • Graphs should allow stepwise refinements for all logic constructs, e.g. description logic TBoxes
  • 9. 8 Searle’s Chinese Room Argument Classes with relations subsumes understand hasInstance Language understand negation English Chinese lang lang lang lang lang haveLanguage to with for rules texts questions replies apply use with for Searle Wang Searle-replyi Wang-replyi distinguishable Instances with relations
  • 10. 9 Grailog Generalizations • Directed hypergraphs: For n-ary relations, directed (binary) arcs should be generalized to directed (n-ary) hyperarcs, e.g. representing relational tuples • Recursive (hierarchical) graphs: For nested terms and formulas, modal logics, and modularization, ‘flat’ graphs should be generalized to allow other graphs as complex nodes to any level of ‘depth’ • Labelnode graphs: For allowing hybrid logics describing both instances and predicates, arc labels should also become usable as nodes
  • 11. 10 Graphical Elements: Basic Shapes (1) • Boxes for atomic and complex nodes – Oval: Classes, as labelnodes, for unary relations – Rectangle: Atomic for instances. Complex for (‘passive’) instance-denoting constructor-function applications – Roundangle (Rounded rectangle): (‘active’) function, predicate, and connective applications – Octagon: Embedded propositions and modules • Labeled arrows (directed links) for arcs and hyperarcs (where hyperarcs ‘cut through’ nodes intermediate between first and last)
  • 12. 11 Graphical Elements: Basic Shapes (2) • Arrows for special arcs and hyperarcs – subsumes: Connects superclass, unlabeled, with subclass (arc, i.e. of length 2) – hasInstance: Connects class, as labelnode, with instance (hyperarc of length 1) • As in DRLHs, labelnodes can also be used (instead of labels) for hyperarcs of length > 1 – Implies: Hyperarc from premise(s) to conclusion
  • 13. 12 Graphical Elements: Line Styles • Solid lines (boxes & links): Positive • Dashed lines (boxes & links): Negative • Dotted lines (boxes): Disjunctive • Heavy single lines (unlabeled arrows): subsumes • Light single lines (unlabeled arrows): hasInstance • Heavy double lines (unlabeled arrows): Implies • Light double lines (unlabeled undirected links): Equal
  • 14. 13 Graphical Elements: Hatching Patterns • No hatching (boxes): Constant • Hatching (atomic boxes): Variable
  • 15. 14 Instances: Individual Constants mapping General: Graph (node) Logic (and POSL) instance instance Examples: Graph Logic Warren Buffett Warren Buffett General Electric General Electric US$ 3 000 000 000 US$ 3 000 000 000
  • 16. 15 Unknowns: Individual Variables General: Graph (hatched node) Logic (POSL uses “?” prefix) variable variable Examples: Graph Logic X X Y Y A A
  • 17. 16 Predicates: Binary Relations (1) General: Graph (labeled arc) Logic binrel inst1 inst2 binrel(inst1, inst2) Example: Graph Logic Trust Warren Buffett General Electric Trust(Warren Buffett, General Electric )
  • 18. 17 Predicates: Binary Relations (2) General: Graph (labeled arc) Logic binrel var1 var2 binrel(var1, var2) Example: Graph Logic Trust X Y Trust(X,Y)
  • 19. 18 Equality Predicate: Distinguished General: Graph (unlabeled Logic (with equality) undirected double arc) inst1 inst2 inst1 = inst2 Example: Graph Logic (with equality) GE General Electric GE = General Electric
  • 20. 19 Negated Predicates: Binary Relations General: Graph (dashed arc) Logic binrel inst1 inst2 ¬ binrel(inst1, inst2) Example: Graph Logic Trust Joe Smallstock General Electric ¬ Trust( Joe Smallstock, General Electric )
  • 21. 20 Inequality Predicate: Distinguished General: Graph (dashed Logic (with equality) unlabeled undirected double arc) inst1 inst2 inst1 ≠ inst2 Example: Graph Logic (with equality) Joe Smallstock Warren Buffett Joe Smallstock ≠ Warren Buffett
  • 22. 21 Predicates: n-ary Relations (n>1) General: Graph (hyperarc) Logic rel inst1 inst2 instn-1 instn rel(inst1, inst2, ..., instn-1, instn) Example: Graph Logic (n=3) Invest WB GE US$ 3 ·109 Invest(WB, GE, US$ 3·109)
  • 23. 22 Negated Predicates: n-ary Relations General: Graph (dashed: not) Logic rel inst1 inst2 instn-1 instn ¬ rel(inst1, inst2, ..., instn-1, instn) Example: Graph Logic (n=3) Invest WB GE US$ 4 ·109 ¬ Invest(WB, GE, US$ 4·109)
  • 24. 23 Implicit Conjunction of Formula Graphs: Co-Occurrence on Top-Level General: Graph (m hyperarcs) Logic rel1(inst1,1, inst1,2, inst1,1 rel1 inst1,2 inst1,n1 ..., inst1,n1) ∧ ... ... ∧ instm,1 relm instm,2 instm,nm relm(instm,1, instm,2, ...,instm,nm) Example: Graph (2 hyperarcs) Logic Invest(WB, GE, WB Invest GE US$ 3 ·109 US$ 3·109) ∧ Invest(JS, VW, JS Invest VW US$ 2 ·104 US$ 2·104)
  • 25. 24 Explicit Conjunction of Formula Graphs: Co-Occurrence in Complex Node General: Graph (m hyperarcs) Logic (rel1(inst1,1, inst1,2, inst1,1 rel1 inst1,2 inst1,n1 ..., inst1,n1) ∧ ... ... ∧ instm,1 relm instm,2 instm,nm relm(instm,1, instm,2, ...,instm,nm)) Example: Graph (2 hyperarcs) Logic (Invest(WB, GE, WB Invest GE US$ 3 ·109 US$ 3·109) ∧ JS VW US$ 2 ·104 Invest(JS, VW, Invest US$ 2·104))
  • 26. 25 Disjunction of Formula Graphs: Co-Occurrence in Disjunctive Node General: Dotted Graph Logic (rel1(inst1,1, inst1,2, inst1,1 rel1 inst1,2 inst1,n1 ..., inst1,n1) ∨ ... ... ∨ instm,1 relm instm,2 instm,nm relm(instm,1, instm,2, ...,instm,nm) ) Example: Dotted Graph Logic (Invest(WB, GE, WB Invest GE US$ 3 ·109 US$ 3·109) ∨ JS VW US$ 2 ·104 Invest(JS, VW, Invest US$ 2·104))
  • 27. 26 Predicates: Unary Relations (Classes, Concepts, Types) General: Graph (class applied Logic to instance node) class hasInstance class(inst1) inst1 Example: Graph Logic Billionaire Billionaire( Warren Buffett) Warren Buffett
  • 28. 27 Negated Predicates: Unary Relations General: Graph (class dash-applied Logic to instance node) class not hasInstance ¬ class(inst1) inst1 Example: Graph Logic Billionaire ¬ Billionaire( Joe Smallstock) Joe Smallstock
  • 29. 28 Class Hierarchies (Taxonomies): Subclass Relation General: Graph (two nodes) (Description) class2 Logic subsumes class1 class2 class1 Example: Graph (Description) Rich Logic Billionaire Rich Billionaire
  • 30. 29 Class Hierarchies (Taxonomies): Negated Subclass Relation General: Graph (two nodes) (Description) class2 Logic not subsumes class1 class2 class1 Example: Graph (Description) Poor Logic Billionaire Poor Billionaire
  • 31. 30 Class Hierarchies (Taxonomy Trees): Class Union General: Graph (blank node over n) (Description) Logic subsumes ... class1 class2 ... class1 class2 ... classn classn Example: Graph (blank node over 3) (Description) Logic Billionaire Benefactor Billionaire Benefactor Environmentalist Environmentalist
  • 32. 31 Class Hierarchies (Taxonomy DAGs): Class Intersection General: Graph (blank node under n) (Description) Logic class1 class2 ... classn ... class1 class2 subsumes ... classn Example: Graph (blank node under 3) (Description) Logic Billionaire Benefactor Environmentalist Billionaire Benefactor Environmentalist
  • 33. 32 Class Hierarchies (Taxonomies): Class Complement General: Graph (Description) (dashed node Logic contains node to be complemented) Arbitrary class Atomic class (abbreviation) class class ¬ class Example: Graph (Description) Logic Billionaire Billionaire ¬ Billionaire
  • 34. 33 Intensional Class Constructions (Ontologies): Class-Property-Restricting TBox (Existential) General: Graph (Description) Logic ∃binrel class ∃binrel . class Example: Graph (Description) Logic ∃ Substance Physical ∃Substance . Physical
  • 35. 34 Instance Assertions (Populated Ontologies): ABox for Restriction TBox (Existential) General: Graph (Description) Logic ∃binrel class ∃binrel.class(inst1) class(inst2) binrel inst1 inst2 binrel(inst1, inst2) Example: Graph (Description) Logic ∃ Substance Physical ∃Substance.Physical (Socrates) Substance Physical(P1) Socrates P1 Substance(Socrates,P1)
  • 36. 35 Intensional Class Constructions (Ontologies): Class-Property-Restricting TBox (Universal) General: Graph (Description) Logic ∀binrel class ∀binrel . class Example: Graph (Description) Logic ∀ Substance Physical ∀Substance . Physical
  • 37. 36 Instance Assertions (Populated Ontologies): ABox for Restriction TBox (Universal) General: Graph (Description) ∀binrel Logic class ∀binrel.class(inst1) class(inst2) ... binrel ... class(instn) inst2 inst1 ... binrel(inst1, inst2) instn ... binrel binrel(inst1, instn) Example: Graph (Description) Logic ∀ Substance Physical ∀Substance.Physical (Socrates) Substance P1 Physical(P1) Socrates Physical(P2) Substance P2 Substance(Socrates, P1) Substance(Socrates, P2)
  • 38. 37 Modally Embedded Propositions General: Graph (Modal) Logic (complex octagon node used to ‘quarantine’ what another agent believes, wants, etc.) believe agent graph believeagent(graph) Example: Graph (Modal) Logic believe Invest GE WB GE US$ 4 ·109 believeGE(Invest(WB, GE, US$ 4 ·109))
  • 39. 38 Rules: Relations Imply Relations (1) General: Graph (ground) Logic rel1 rel1(inst1,1, inst1,2, inst1,1 inst1,2 inst1,n1 ..., inst1,n1) ⇒ inst2,1 rel2 inst2,2 inst2,n2 rel2(inst2,1, inst2,2, ...,inst2,n2) Example: Graph Logic Invest Invest(WB, GE, WB GE US$ 3 ·109 US$ 3·109) ⇒ JS GE US$ 5 ·103 Invest(JS, GE, Invest US$ 5·103)
  • 40. 39 Rules: Relations Imply Relations (2) General: Graph (non-ground) Logic rel1 (∀vari,j) var1,1 var1,2 var1,n1 rel1(var1,1, var1,2, ..., var1,n1) ⇒ var2,1 rel2 var2,2 var2,n2 rel2(var2,1, var2,2, ...,var2,n2) Example: Graph Logic Invest (∀ X, Y, A, U, V, B) X Y A Invest(X, Y, A) ⇒ U Invest V B Invest(U, V, B)
  • 41. 40 Rules: Relations Imply Relations (3) General: Graph (inst/var terms) Logic rel1 (∀vari,j) term1,1 term1,2 term1,n1 rel1(term1,1, term1,2, ..., term1,n1) ⇒ term2,1 rel2 term2,2 term2,n2 rel2(term2,1, term2,2, ..., term2,n2) Example: Graph Logic Invest (∀ Y, A) WB Y A Invest(WB,Y,A) ⇒ JS Y US$ 5 ·103 Invest(JS, Y, Invest US$ 5·103)
  • 42. 41 Rules: Conjunctions Imply Relations General: Graph (inst/var terms) Logic rel1 (∀vari,j) term1,1 term1,2 term1,n1 rel1(term1,1, term1,2, rel2 ..., term1,n1) ∧ term2,1 rel term2,2 term2,n2 rel2(term2,1, term2,2, 3 ..., term2,n2) ⇒ term3,1 term3,2 term3,n3 rel3(term3,1, term3,2, ..., term3,n3) Example: Graph Logic Invest (∀ Y, A) WB Trust Y A Invest(WB,Y,A) ∧ JS Y Trust(JS, Y) ⇒ Invest Invest(JS, Y, JS Y US$ 5 ·103 US$ 5·103)
  • 43. 42 Beliefs and Desires as Propositional Attitudes (1) Propositional attitude: a mental state relating a person to a proposition “If George desires action A and believes (the proposition) that originator O will cause A, then George desires O.” desire Grailog: George believe A cause O desire
  • 44. 43 Beliefs and Desires as Propositional Attitudes (2) Example: “If John fears (state of affairs) X, then John wants that not X.” fear Grailog: John X want While variables A and O of the earlier example are bound to an action and originator individual, variable X here is bound to an entire proposition or an arbitrarily complex set of propositions
  • 45. 44 Conclusions (1) • Refining/extending Grailog for the Rule Metalogic • Comparing it with other graph formalisms – Conceptual Graphs: http://conceptualstructures.org – Unified Modeling Language: http://www.uml.org • Use cases from philosophy to technology to business – E.g. “Logical Foundations of Cognitive Science”: http://www.ict.tuwien.ac.at/lva/Boley_LFCS/index.html • Implementing tools – Mapping between graphs, logic (as shown) & RuleML/XML – Graph indexing & querying (cf. http://www.hypergraphdb.org) – Graph-to-graph transformations (normal forms, merges, ...) – Advanced graph-theoretical operations (e.g., path tracing) • Submitting to standards body
  • 46. 45 Conclusions (2) • Proceeding from the 2-dimensional (planar) Grailog to a 3-dimensional (spatial) one – Exploiting advantages of crossing-free layout, spatial shortcuts, and analogical representation of 3D worlds – Mitigating disadvantages of occlusion and of harder spatial orientation and navigation • Considering the 4th (temporal) dimension of animations to visualize logical inferences, graph processing, etc. • See also: http://ruleml.org/#Grailog