Artificial Intelligence knowledge base in java

Hi guys:) i have a project(university homework) which tell us to make a knowledge base ( Artificial Intelligence ) and extract logic conclusions in the form of logic sentences.Up to theory i'm ok but i don't have any good idea how i suppose to express(logic sentences) this in java:confused:.can you give me a piece of advice or any example??:)thanks a lot! :D

Having not done you're specific your question is a little unclear. You may wish to give a couple of examples of what you mean by "A logical sencence" as I've seen this refer to a few different things in AI.

I'm going to assume that logical sentences include both facts...:a is trueb is true

...and inferences:
if a is true and b is true then c is true.

Needles to say you need to be able to represent a fact. This could be as simple a String, or more complex if you need to store a variety if different types of facts.

An inference (such as the sentence above) could be an object containing a Fact object and a Rule object (see below).

You will need to break a rule down (not try to swallow it whole), so a rule could at any point be many things:

A required fact (if a ... would have a rule simply: requires {a} ).

A logical operator such as "and". This will need to contain two further rules for the left and right side (if a and b ... would have a rule: and{requires{a}, requires{b}}).

you're right,i'm sorry that i was unclear before.for example i have a knowledge base : a => b , b => c and from this i want to end up to a => c.i'm a little bit confused about how i'm gonna make this in java.any advice ( like you did before ) would help . thanks a lot.