What's new? | Help | Directory | Sign in
Google
python-dlp
A library of tools which aim to provide a coherent framework for DLP-based reasoning over RDF/N3 content
  
  
  
  
    
Search
for
Updated Nov 11, 2007 by chimezie
Labels: Featured, Phase-Design, Phase-Implementation
FuXiSemantics  
This page is a sketch of a semantics for FuXi based on Classic Logic Programming formalisms.

Introduction

FuXi adopts the semantics of Description Logic Programs [#1]. This combined KR is a unidirectional mapping from a restricted subset of Description Logic to a corresponding Horn ruleset (def-Horn) and a Logic Program (def-LP). FuXi uses Logic Programs [#2] as its operation semantics due to its superior lineage [#4] and time [#2] & space [#3] complexity. The restrictions adopted are those outlined in the Description Logic Programming Paper and listed below (known as f-weakenings):

The mapping between def-Horn and def-LP is sound and complete (for rules with only ground terms in the head/conclusion). In particular, LP's cannot express existentially quantified variables in the head of a rule (or a fact). Also, universally quantified variables that appear in the head of a rule, must appear somewhere in the body of the same rule.

Semantics

FuXi's semantics are comprised of a set of Description Logic Programs.

The combined semantics include f-weakenings [#1] of Description Horn Logic rulesets (generated from DL expressions via the algorithm presented by Grosof, B. et.al.). Description Horn Logic rulesets generated from DL expressions can be used in conjunction with rules expressed in their native dialect, as long as they adhere to DL-safety restrictions (see: http://code.google.com/p/owl1-1/wiki/SafeRules).

The semantics of a generated DLP, additional DL-safe def-LP rules, an initial, ground (possibly by skolemization [#4]) set of facts is a conclusion set, where each conclusion is a ground atom, i.e., fact, entailed by the LP. Formally, the semantics of the corresponding def-LP R is defined as follows. Let HB stand for the Herbrand base of R. The conclusion set C is the smallest (w.r.t. set inclusion) subset S of HB such that for any rule in the DLP, the conclusion set is a Herbrand Model [#2]

Details

Implementations

In FuXi's implementation, the conclusion set is calculated using a RETE-UL network. Other evaluation mechanism can be adopted for an operational semantics, including:

The Abstract Syntax and Mappings to SWRL/RIF/N3

The DLP abstract syntax is very expressive and can be serialized as any of:

RIF BLD: DLP

Concrete syntax

  CONDITION   ::= CONJUNCTION | DISJUNCTION | EXISTENTIAL | ATOMIC
  CONJUNCTION ::= 'And' '(' CONDITION* ')'
  DISJUNCTION ::= 'Or' '(' CONDITION* ')'
  EXISTENTIAL ::= 'Exists' Var+ '(' CONDITION ')'
  ATOMIC      ::= Uniterm
  Uniterm     ::= Const '(' TERM* ')'
  TERM        ::= Const | Var | Uniterm
  Const       ::= CONSTNAME | '"'CONSTNAME'"''^^'TYPENAME
  Var         ::= '?'VARNAME

  Ruleset  ::= RULE*
  RULE     ::= 'Forall' Var* CLAUSE
  CLAUSE   ::= Implies | ATOMIC
  Implies  ::= ATOMIC ':-' CONDITION
  CONSTNAME ::= CURIE | '<' IRI '>' | RDFLiteral

N3-Datalog

Start with "n3rules" and remove: existential and existential_s

Mapping def-LP to RETE-UL

A syntactic function is outlined which has a domain of a def-LP expression and a range of a corresponding RETE-UL [#3] network. See "Mapping Rete algorithm to FOL and then to RDF/N3" for a high-level overview.

Operational Semantics for Default Negation

See: NegatedConditions for RETE-UL support for (NAF)

Efficient Proof Generation

Use Magic sets [#5] for efficient forward-chained theorem proof generation

Correspondence with Full Notation 3

See: Notation 3 Logic . This would require extending the data log restriction with support for function symbols (thus making it no longer decidable [#2] - with the exception of if the functions are non-recursive), and negation as failure (making it only polynomial space complexity [#2] ).

Formulae & Named Graphs

Formal N3 Formulae are epistemological operators and thus not in the Herbrand universe of any Logic Program. However, they can be used to denote head and body atoms in a Horn clause. Kyle, G. introduces a notion of formula nodes into the RDF model theory with a partitions of formulaic (hypothetical) statements. This logic is outside the bounds of FOL with the possible exception of introducing non-deterministic function symbols (builtins) for scoped inference mechanics (log:includes, log:semantics, etc..).

Time Complexity: Polynomial

Space Complexity: Polynomial

Appendix

KR expressive classes / restrictions diagram:

References

  1. Description Logic Programs: Combining Logic Programs with Description Logic
  2. Complexity and expressive power of logic programming
  3. Production Matching for Large Learning Systems
  4. A Realistic Architecture for the Semantic Web
  5. Magic sets and other strange ways to implement logic programs (extended abstract)


Sign in to add a comment