ArticleslgStudy

science

F-logic

F-logic is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand F-logic rather than just read about it. In short: F-logic (Frame logic) is a knowledge representation and ontology language. It combines the advantages of conceptual modeling with object-oriented, frame-based languages, and offers a declarative, compact and simple syntax, and the well-defined semantics of a logic programming language.

Key takeaways

  • F-logic belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect F-logic to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of F-logic from memory before moving on to harder problems.

Reference excerpt

F-logic (Frame logic) is a knowledge representation and ontology language. It combines the advantages of conceptual modeling with object-oriented, frame-based languages, and offers a declarative, compact and simple syntax, and the well-defined semantics of a logic programming language. Features include, among others, object identity, complex objects, inheritance, polymorphism, query methods, encapsulation. F-logic stands in the same relationship to object-oriented programming as classical relational calculus stands to relational database programming.

Overview F-logic was developed by Michael Kifer at Stony Brook University and Georg Lausen at the University of Mannheim. F-logic was originally developed for deductive databases, but is now used most often for semantic technologies, especially the semantic web. F-logic is considered as one of the formalisms for ontologies, but description logic (DL) is more popular and accepted, as is the DL-based Web Ontology Language (OWL). A development environment for F-logic was developed in the NeOn project and is also used in a range of applications for information integration, question answering and semantic search. Before version 4 of Protégé ontology editor, F-Logic is supported as one of the two kinds of ontology. The frame syntax of the Rule Interchange Format Basic Logic Dialect (RIF BLD) standardized by the World Wide Web Consortium is based on F-logic; RIF BLD however omits non-monotonic reasoning features of F-logic. In contrast to description logic based ontology formalism, the semantics of F-logic are normally that of a closed world assumption in contrast to DL's open world assumption. Also, F-logic is generally undecidable, whereas the SHOIN description logic that Web Ontology Language (OWL) DL is based on is decidable. However, it is possible to represent more expressive statements in F-logic than are possible with description logics. The most comprehensive description of F-logic was published in 1995. The preliminary paper from 1989 won the 1999 Test of Time Award from ACM SIGMOD. A follow-up paper from 1992 won the 2002 Test of Time Award from ACM SIGMOD.

F-logic syntax Classes and individuals may be defined in F-logic as follows:

man::person. woman::person. brad:man. angelina:woman.

This states, that "men and women are persons" and that "Brad is a man", and "Angelina is a woman". Statements about classes and individuals may be made as follows:

person[hasSon=>man]. brad[hasSon->{maddox,pax}]. married(brad,angelina).

This defines that "the son of a person is a man", "Maddox and Pax are the sons of Brad" and "Brad and Angelina are married". In addition it is possible to represent axioms in F-logic in the following manner:

These mean "X is a man if X is a person but not a woman" and "if X is the son of Y then X is a person and Y is the father of X". (Note: the latter inference is not factual, because in addition to fathers, sons also have mothers. The gender of X is determined by the premise, but the gender of Y is not.) The Flora-2 system introduced a number of changes to the syntax of F-logic, making it more suitable for a knowledge representation and reasoning system as opposed to just a theoretical logic. In particular, variables became prefixed with a ?-mark, the distinction between functional and multi-valued properties was dropped and replaced by cardinality constraints, plus other important changes. For instance, the above pair of sentences look like this in Flora-2:

Here \naf is default negation ("naf" stands for Negation as failure, based on the well-founded semantics); Flora-2 also supports so-called explicit negation, which is closer to negation in classical logic.

F-logic based languages Flora-2 is an extension of F-logic with HiLog, transaction logic, and defeasible reasoning. Ergo is a commercial system based on F-logic, which extends Flora-2. PathLP is a full logic programming language based on F-logic. FLORID (F-LOgic Reasoning In Databases) is a C++ — based implementation Web Services Modeling Language (WSML) Archived 2007-05-02 at the Wayback Machine Semantic Web Services Language (SWSL) ObjectLogic language is based on F-logic; OntoStudio is an ObjectLogic implementation by semafora systems GmbH (formerly Ontoprise GmbH). OO-logic is a successor of F-logic; SemReasoner and Ontology Management System (OSM) are implementations of OO-logic by adesso SE.

References

Worked examples

Example 1 — a first encounter with F-logic

Start with the simplest possible case. Write down what F-logic claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to F-logic before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about F-logic ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of F-logic

In research
F-logic appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses F-logic in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
F-logic is common in secondary-school and first-year university syllabi. It links to neighbouring topics Declarative programming languages, Knowledge representation, Logic programming languages, so understanding it makes those chapters shorter.
In everyday life
Look for F-logic outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “F-logic” →

How to study F-logic in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what F-logic means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain F-logic out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is F-logic in simple terms?

F-logic (Frame logic) is a knowledge representation and ontology language. It combines the advantages of conceptual modeling with object-oriented, frame-based languages, and offers a declarative, compact and simple syntax, and the well-defined semantics of a logic programming language.

Why does F-logic matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study F-logic?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on F-logic.

Tags

  • Declarative programming languages
  • Knowledge representation
  • Logic programming languages
  • Semantic Web

Keep exploring