fork download
  1. isa(canary, bird).
  2.  
  3. isa(ostrich, bird).
  4.  
  5. isa(bird, animal).
  6.  
  7. isa(opus, penguin).
  8.  
  9. hasprop(tweety, color, white).
  10.  
  11. hasprop(canary, color, yellow).
  12.  
  13. hasprop(bird, travel, fly).
  14.  
  15. hasprop(ostrich, travel, walk).
  16.  
  17. hasprop(robin, sound, sing).
  18.  
  19. hasprop(bird, cover, feathers).
  20.  
  21. isa (robin, bird), isa(penguin, bird), isa(fish, animal). isa(tweety, canary). hasprop(robin, color, red), hasprop(penguin, color, brown) hasprop(fish, travel, swim). hasprop(penguin, travel, walk) hasprop(canary, sound, sing), hasprop(animal, cover, skin).
  22.  
  23.  
  24. hasproperty(Object, Property, Value):-
  25.  
  26. hasprop(Object, Property, Value), hasproperty(Object, Property, Value) :-
  27.  
  28. isa(Object, Parent),
  29.  
  30. hasproperty(Parent, Property, Value).
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
hasproperty(penguin,walk,X).
compilation info
prog.pl:21:5: syntax error: . or operator expected after expression
prog.pl:21: warning: discontiguous predicate isa/2 - clause ignored
prog.pl:21:139: syntax error: . or operator expected after expression
prog.pl:21:199: syntax error: . or operator expected after expression
prog.pl:26:72: syntax error: . or operator expected after expression
	4 error(s)
compilation failed
stdout
Standard output is empty