I have a problem about reasoning with transitive roles in Protégé.
I created a simple ontology that says:
"Any rod is part of some engine."
"Any engine is part of some car."
"PartOf relation is transitive."
I expected Protégé to recognise this DL…
I tried some basic example from a book and it makes "Out of local stack" error (I'll tell more after the code).
here is the code:
edge(a,b).
edge(a,e).
edge(b,d).
edge(b,c).
edge(c,a).
edge(e,b).
tedge(Node1,Node2) :-
edge(Node1,SomeNode),
…
I am having trouble with the following problem in Prolog, I have several facts in a knowledge base for example:
flight(rome,london,ba,1500,150,400).
flight(london,newyork,airfrance,600,60,200).
flight(rome,paris,airfrance,1200,120,500). …
I am trying to write a predicate that writes out all the ways from one node to another in a acyclic graph. If I example have these nodes/edges.
node(x,y).
node(x,z).
node(y,z).
And then I have tried something like:
predicate(X,Y):-
node(X,Y),
…
I'd like to create a set which has transitive pairs. My input will be of the form pair and I need a set which has all transitive pairs for the given inputs.
For example, if I have pairs {1, 2} {2, 1} {2, 3} {3,4} as inputs, then I need to…
let say
bigger(elephant,buffalo).
bigger(buffalo,dog).
bigger(dog,cat).
bigger(X,Y) :-
what do i write here to establish, elephant is bigger than buffalo, buffalo is bigger than dog etc?
What is the closure of these functional dependencies of a relation?
A -> DC
D -> B
Ans: A -> BC (using pseudo transitivity rule).
Am I correct or am I missing something?
i need help to solve the maze path. Thanks in advance
link(a,b).
link(b,c).
link(c,d).
link(f,c).
link(b,e).
link(d,e).
link(e,f).
Write a predicate that defines a route between any two adjacent points (X and Y for example) based on the fact…
I already have a skeleton of what I need for the program as far as the methods I was told I would need. However, other than that I am having trouble figuring out how to start coding this program. The details are as follows. I'm not asking to have…