SlideShare a Scribd company logo
1 of 2
Download to read offline
PSOATransRunInvitedDemoRuleML2012 - RuleML Wiki                                    http://wiki.ruleml.org/index.php?title=PSOATransRunInvitedDemoRule...




         From RuleML Wiki

         PSOATransRun: Translating and Running PSOA RuleML
                       via the TPTP Interchange Language for Theorem Provers

         Gen Zou[1] Reuben Peter-Paul[1] Harold Boley[1,2] Alexandre Riazanov[3]

         [1]Faculty of Computer Science,
            University of New Brunswick, Fredericton, Canada

         [2]National Research Council Canada,
            Information and Communications Technologies

         [3]Department of Computer Science & Applied Statistics
            University of New Brunswick, Saint John, Canada




         Also see documentation, implementation, and sources:

         PSOA RuleML Wiki Page:        http://wiki.ruleml.org/index.php/PSOA_RuleML
         PSOATransRun Online System:   http://198.164.40.211:8082/psoa2tptp-trans/index.html
         Project Repository:           http://psoa2tptp.googlecode.com



         For the online demo of the above PSOATransRun:

         We give examples of PSOA RuleML Rulebases and Queries,
         shown in PSOA Presentation Syntax and Controlled English




         Example 1:

         Input Rulebase:

         Document(
           Group(
             _Amy # _person([_married] [_bcs _mcs _phd] _job->_engineer)
             _f1 # _family(_Mike _Amy _child->_Fred _child->_Jane)
           )
         )



         Controlled English explaining Fact 1:

         _Amy # _person([_married] [_bcs _mcs _phd] _job->_engineer)

         (1) The entity with OID _Amy is of type _person;
         (2) _Amy is described by:
                    a 1-tuple [_married]                representing her marital status
                    a 3-tuple [_bcs _mcs _phd]          representing the degrees she obtained
                    a _job slot with value _engineer    representing her profession



         Controlled English explaining Fact 2:

         _f1 # _family(_Mike _Amy _child->_Fred _child->_Jane)

         (1) The entity with OID _f1 is of type _family;
         (2) _f1 is described by:
                    a 2-tuple [_Mike _Amy]               representing the couple of the family
                    a _child slot with value _Fred       representing a child of the family
                    a _child slot with value _Jane       representing another child of the family



         Query 1 with controlled English:

         _Amy # _person(_job->_engineer)

         Is _Amy of type _person and has a _job slot with value _engineer?



         Query 2 with controlled English:

         _Amy # _person(_job->?Job)

         Is _Amy of type _person and has a _job slot with value ?Job
         (show any bindings for ?Job) ?




1 of 2                                                                                                                               9/21/2012 5:32 PM
PSOATransRunInvitedDemoRuleML2012 - RuleML Wiki                                    http://wiki.ruleml.org/index.php?title=PSOATransRunInvitedDemoRule...



         Example 2:

         Input Rulebase:

         Document (
           Group (
             Forall ?X ?Y (
               ?X # _person(_descendent->?Y) :- ?X # _person(_child->?Y)
             )
             Forall ?X ?Y ?Z (
               ?X # _person(_descendent->?Z) :-
                 And(?X # _person(_child->?Y) ?Y # _person(_descendent->?Z))
             )
             _Tom # _person(_male _child->_Amy _job->_professor)
             _Eva # _person(_female _child->_Amy)
             _Amy # _person([_female] [_bcs _mcs _phd] _child->_Fred)
             _Fred # _person(_school->_UNB)
           )
         )



         Controlled English explaining Rule 1:

         Forall ?X ?Y (
               ?X # _person(_descendent->?Y) :-
                     ?X # _person(_child->?Y)
         )

               A _person ?X has a _descendent slot with value ?Y if
                 the _person ?X has a _child slot with value ?Y



         Controlled English explaining Rule 2:

         Forall ?X ?Y ?Z (
               ?X # _person(_descendent->?Z) :-
                 And(?X # _person(_child->?Y)
                         ?Y # _person(_descendent->?Z))
         )

               A person ?X has a _descendent ?Z if
                     the _person ?X has a _child ?Y
                         and the _person ?Y has a _descendent ?Z



         Query 1 with controlled English:

         ?Ancestor # _person(_descendent->?Who)

         Is ?Ancestor of type _person and has a _descendent slot with value ?Who
         (show any bindings for ?Ancestor and ?Who) ?



         Query 2 with controlled English:

         And (?Ancestor1 # _person(_male _descendent->_Fred)
              ?Ancestor2 # _person(_female _descendent->_Fred))

         Is ?Ancestor1 of type _person and has a 1-tuple [_male]    and a _descendent slot with value _Fred,
         and ?Ancestor2 of type _person and has a 1-tuple [_female] and a _descendent slot with value _Fred
         (show any bindings for ?Ancestor1 and ?Ancestor2) ?



         Query 3 with controlled English:

         And (?Ancestor1 # _person(_male _descendent->?Who)
              ?Ancestor2 # _person(_female _descendent->?Who))

         Is ?Ancestor1 of type _person and has a 1-tuple [_male]    and a _descendent slot with value ?Who,
         and ?Ancestor2 of type _person and has a 1-tuple [_female] and a _descendent slot with value ?Who
         (show any bindings for ?Ancestor1, ?Ancestor2, and ?Who) ?


         Retrieved from "http://wiki.ruleml.org/index.php/PSOATransRunInvitedDemoRuleML2012"

              This page was last modified on 21 September 2012, at 20:31.




2 of 2                                                                                                                               9/21/2012 5:32 PM

More Related Content

Similar to PSOATransRun: Translating and Running PSOA RuleML via the TPTP Interchange Language for Theorem Provers

Question Answering with Lydia
Question Answering with LydiaQuestion Answering with Lydia
Question Answering with Lydia
Jae Hong Kil
 

Similar to PSOATransRun: Translating and Running PSOA RuleML via the TPTP Interchange Language for Theorem Provers (7)

Question Answering with Lydia
Question Answering with LydiaQuestion Answering with Lydia
Question Answering with Lydia
 
Modeling Ontologies with Natural Language
Modeling Ontologies with Natural LanguageModeling Ontologies with Natural Language
Modeling Ontologies with Natural Language
 
RuleML2015: PSOA2Prolog: Object-Relational Rule Interoperation and Implementa...
RuleML2015: PSOA2Prolog: Object-Relational Rule Interoperation and Implementa...RuleML2015: PSOA2Prolog: Object-Relational Rule Interoperation and Implementa...
RuleML2015: PSOA2Prolog: Object-Relational Rule Interoperation and Implementa...
 
Resolving the semantics of vietnamese questions in v news qaict system
Resolving the semantics of vietnamese questions in v news qaict systemResolving the semantics of vietnamese questions in v news qaict system
Resolving the semantics of vietnamese questions in v news qaict system
 
Talking to your Data: Natural Language Interfaces for a schema-less world (Ke...
Talking to your Data: Natural Language Interfaces for a schema-less world (Ke...Talking to your Data: Natural Language Interfaces for a schema-less world (Ke...
Talking to your Data: Natural Language Interfaces for a schema-less world (Ke...
 
Distributed Natural Language Processing Systems in Python
Distributed Natural Language Processing Systems in PythonDistributed Natural Language Processing Systems in Python
Distributed Natural Language Processing Systems in Python
 
Some Information Retrieval Models and Our Experiments for TREC KBA
Some Information Retrieval Models and Our Experiments for TREC KBASome Information Retrieval Models and Our Experiments for TREC KBA
Some Information Retrieval Models and Our Experiments for TREC KBA
 

More from RuleML

A software agent controlling 2 robot arms in co-operating concurrent tasks
A software agent controlling 2 robot arms in co-operating concurrent tasksA software agent controlling 2 robot arms in co-operating concurrent tasks
A software agent controlling 2 robot arms in co-operating concurrent tasks
RuleML
 

More from RuleML (20)

Aggregates in Recursion: Issues and Solutions
Aggregates in Recursion: Issues and SolutionsAggregates in Recursion: Issues and Solutions
Aggregates in Recursion: Issues and Solutions
 
A software agent controlling 2 robot arms in co-operating concurrent tasks
A software agent controlling 2 robot arms in co-operating concurrent tasksA software agent controlling 2 robot arms in co-operating concurrent tasks
A software agent controlling 2 robot arms in co-operating concurrent tasks
 
Port Clearance Rules in PSOA RuleML: From Controlled-English Regulation to Ob...
Port Clearance Rules in PSOA RuleML: From Controlled-English Regulation to Ob...Port Clearance Rules in PSOA RuleML: From Controlled-English Regulation to Ob...
Port Clearance Rules in PSOA RuleML: From Controlled-English Regulation to Ob...
 
RuleML 2015: When Processes Rule Events
RuleML 2015: When Processes Rule EventsRuleML 2015: When Processes Rule Events
RuleML 2015: When Processes Rule Events
 
RuleML 2015: Ontology Reasoning using Rules in an eHealth Context
RuleML 2015: Ontology Reasoning using Rules in an eHealth ContextRuleML 2015: Ontology Reasoning using Rules in an eHealth Context
RuleML 2015: Ontology Reasoning using Rules in an eHealth Context
 
RuleML 2015: Semantics of Notation3 Logic: A Solution for Implicit Quantifica...
RuleML 2015: Semantics of Notation3 Logic: A Solution for Implicit Quantifica...RuleML 2015: Semantics of Notation3 Logic: A Solution for Implicit Quantifica...
RuleML 2015: Semantics of Notation3 Logic: A Solution for Implicit Quantifica...
 
Challenge@RuleML2015 Developing Situation-Aware Applications for Disaster Man...
Challenge@RuleML2015 Developing Situation-Aware Applications for Disaster Man...Challenge@RuleML2015 Developing Situation-Aware Applications for Disaster Man...
Challenge@RuleML2015 Developing Situation-Aware Applications for Disaster Man...
 
Rule Generalization Strategies in Incremental Learning of Disjunctive Concepts
Rule Generalization Strategies in Incremental Learning of Disjunctive ConceptsRule Generalization Strategies in Incremental Learning of Disjunctive Concepts
Rule Generalization Strategies in Incremental Learning of Disjunctive Concepts
 
RuleML 2015 Constraint Handling Rules - What Else?
RuleML 2015 Constraint Handling Rules - What Else?RuleML 2015 Constraint Handling Rules - What Else?
RuleML 2015 Constraint Handling Rules - What Else?
 
RuleML2015 The Herbrand Manifesto - Thinking Inside the Box
RuleML2015 The Herbrand Manifesto - Thinking Inside the Box RuleML2015 The Herbrand Manifesto - Thinking Inside the Box
RuleML2015 The Herbrand Manifesto - Thinking Inside the Box
 
RuleML2015 PSOA RuleML: Integrated Object-Relational Data and Rules
RuleML2015 PSOA RuleML: Integrated Object-Relational Data and RulesRuleML2015 PSOA RuleML: Integrated Object-Relational Data and Rules
RuleML2015 PSOA RuleML: Integrated Object-Relational Data and Rules
 
Industry@RuleML2015: Norwegian State of Estate A Reporting Service for the St...
Industry@RuleML2015: Norwegian State of Estate A Reporting Service for the St...Industry@RuleML2015: Norwegian State of Estate A Reporting Service for the St...
Industry@RuleML2015: Norwegian State of Estate A Reporting Service for the St...
 
A Service for Improving the Assignments of Common Agriculture Policy Funds to...
A Service for Improving the Assignments of Common Agriculture Policy Funds to...A Service for Improving the Assignments of Common Agriculture Policy Funds to...
A Service for Improving the Assignments of Common Agriculture Policy Funds to...
 
Datalog+-Track Introduction & Reasoning on UML Class Diagrams via Datalog+-
Datalog+-Track Introduction & Reasoning on UML Class Diagrams via Datalog+-Datalog+-Track Introduction & Reasoning on UML Class Diagrams via Datalog+-
Datalog+-Track Introduction & Reasoning on UML Class Diagrams via Datalog+-
 
RuleML2015: Binary Frontier-guarded ASP with Function Symbols
RuleML2015: Binary Frontier-guarded ASP with Function SymbolsRuleML2015: Binary Frontier-guarded ASP with Function Symbols
RuleML2015: Binary Frontier-guarded ASP with Function Symbols
 
RuleML2015: API4KP Metamodel: A Meta-API for Heterogeneous Knowledge Platforms
RuleML2015: API4KP Metamodel: A Meta-API for Heterogeneous Knowledge PlatformsRuleML2015: API4KP Metamodel: A Meta-API for Heterogeneous Knowledge Platforms
RuleML2015: API4KP Metamodel: A Meta-API for Heterogeneous Knowledge Platforms
 
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
 
RuleML2015: Compact representation of conditional probability for rule-based...
RuleML2015:  Compact representation of conditional probability for rule-based...RuleML2015:  Compact representation of conditional probability for rule-based...
RuleML2015: Compact representation of conditional probability for rule-based...
 
RuleML2015: Learning Characteristic Rules in Geographic Information Systems
RuleML2015: Learning Characteristic Rules in Geographic Information SystemsRuleML2015: Learning Characteristic Rules in Geographic Information Systems
RuleML2015: Learning Characteristic Rules in Geographic Information Systems
 
RuleML2015: User Extensible System to Identify Problems in OWL Ontologies and...
RuleML2015: User Extensible System to Identify Problems in OWL Ontologies and...RuleML2015: User Extensible System to Identify Problems in OWL Ontologies and...
RuleML2015: User Extensible System to Identify Problems in OWL Ontologies and...
 

PSOATransRun: Translating and Running PSOA RuleML via the TPTP Interchange Language for Theorem Provers

  • 1. PSOATransRunInvitedDemoRuleML2012 - RuleML Wiki http://wiki.ruleml.org/index.php?title=PSOATransRunInvitedDemoRule... From RuleML Wiki PSOATransRun: Translating and Running PSOA RuleML via the TPTP Interchange Language for Theorem Provers Gen Zou[1] Reuben Peter-Paul[1] Harold Boley[1,2] Alexandre Riazanov[3] [1]Faculty of Computer Science, University of New Brunswick, Fredericton, Canada [2]National Research Council Canada, Information and Communications Technologies [3]Department of Computer Science & Applied Statistics University of New Brunswick, Saint John, Canada Also see documentation, implementation, and sources: PSOA RuleML Wiki Page: http://wiki.ruleml.org/index.php/PSOA_RuleML PSOATransRun Online System: http://198.164.40.211:8082/psoa2tptp-trans/index.html Project Repository: http://psoa2tptp.googlecode.com For the online demo of the above PSOATransRun: We give examples of PSOA RuleML Rulebases and Queries, shown in PSOA Presentation Syntax and Controlled English Example 1: Input Rulebase: Document( Group( _Amy # _person([_married] [_bcs _mcs _phd] _job->_engineer) _f1 # _family(_Mike _Amy _child->_Fred _child->_Jane) ) ) Controlled English explaining Fact 1: _Amy # _person([_married] [_bcs _mcs _phd] _job->_engineer) (1) The entity with OID _Amy is of type _person; (2) _Amy is described by: a 1-tuple [_married] representing her marital status a 3-tuple [_bcs _mcs _phd] representing the degrees she obtained a _job slot with value _engineer representing her profession Controlled English explaining Fact 2: _f1 # _family(_Mike _Amy _child->_Fred _child->_Jane) (1) The entity with OID _f1 is of type _family; (2) _f1 is described by: a 2-tuple [_Mike _Amy] representing the couple of the family a _child slot with value _Fred representing a child of the family a _child slot with value _Jane representing another child of the family Query 1 with controlled English: _Amy # _person(_job->_engineer) Is _Amy of type _person and has a _job slot with value _engineer? Query 2 with controlled English: _Amy # _person(_job->?Job) Is _Amy of type _person and has a _job slot with value ?Job (show any bindings for ?Job) ? 1 of 2 9/21/2012 5:32 PM
  • 2. PSOATransRunInvitedDemoRuleML2012 - RuleML Wiki http://wiki.ruleml.org/index.php?title=PSOATransRunInvitedDemoRule... Example 2: Input Rulebase: Document ( Group ( Forall ?X ?Y ( ?X # _person(_descendent->?Y) :- ?X # _person(_child->?Y) ) Forall ?X ?Y ?Z ( ?X # _person(_descendent->?Z) :- And(?X # _person(_child->?Y) ?Y # _person(_descendent->?Z)) ) _Tom # _person(_male _child->_Amy _job->_professor) _Eva # _person(_female _child->_Amy) _Amy # _person([_female] [_bcs _mcs _phd] _child->_Fred) _Fred # _person(_school->_UNB) ) ) Controlled English explaining Rule 1: Forall ?X ?Y ( ?X # _person(_descendent->?Y) :- ?X # _person(_child->?Y) ) A _person ?X has a _descendent slot with value ?Y if the _person ?X has a _child slot with value ?Y Controlled English explaining Rule 2: Forall ?X ?Y ?Z ( ?X # _person(_descendent->?Z) :- And(?X # _person(_child->?Y) ?Y # _person(_descendent->?Z)) ) A person ?X has a _descendent ?Z if the _person ?X has a _child ?Y and the _person ?Y has a _descendent ?Z Query 1 with controlled English: ?Ancestor # _person(_descendent->?Who) Is ?Ancestor of type _person and has a _descendent slot with value ?Who (show any bindings for ?Ancestor and ?Who) ? Query 2 with controlled English: And (?Ancestor1 # _person(_male _descendent->_Fred) ?Ancestor2 # _person(_female _descendent->_Fred)) Is ?Ancestor1 of type _person and has a 1-tuple [_male] and a _descendent slot with value _Fred, and ?Ancestor2 of type _person and has a 1-tuple [_female] and a _descendent slot with value _Fred (show any bindings for ?Ancestor1 and ?Ancestor2) ? Query 3 with controlled English: And (?Ancestor1 # _person(_male _descendent->?Who) ?Ancestor2 # _person(_female _descendent->?Who)) Is ?Ancestor1 of type _person and has a 1-tuple [_male] and a _descendent slot with value ?Who, and ?Ancestor2 of type _person and has a 1-tuple [_female] and a _descendent slot with value ?Who (show any bindings for ?Ancestor1, ?Ancestor2, and ?Who) ? Retrieved from "http://wiki.ruleml.org/index.php/PSOATransRunInvitedDemoRuleML2012" This page was last modified on 21 September 2012, at 20:31. 2 of 2 9/21/2012 5:32 PM