|
FuXiSemantics
This page is a sketch of a semantics for FuXi based on Classic Logic Programming formalisms.
IntroductionFuXi 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). need explanation of semantics of BNodes in the head 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. SemanticsFuXi'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 DetailsImplementationsIn 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/N3The DLP abstract syntax is very expressive and can be serialized as any of:
RIF BLD: DLPConcrete 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 '>' | RDFLiteralN3-DatalogStart with "n3rules" and remove: existential and existential_s Mapping def-LP to RETE-ULA 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 NegationSee: NegatedConditions for RETE-UL support for (NAF) Efficient Proof GenerationUse Magic sets #5 for efficient forward-chained theorem proof generation Correspondence with Full Notation 3See: 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 GraphsFormal 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: PolynomialSpace Complexity: PolynomialAppendixKR expressive classes / restrictions diagram: References
|
Sign in to add a comment
