How would I create the database for this scenario in Prolog? -


the first image image of symantic net diagram , image of scenario college assignment wondering if able me trying work out how fix database in prolog program scenario , having trouble please in advance!

this diagram of scenario

diagram

this have tried far in terms of database

database

it of course depends on how structure database, relational databases store (no joke) relations, small example, 1 define 5 predicates:

  • isa/2;
  • owns/2;
  • ako/2;
  • made_of/2; and
  • colour/2.

your database like:

isa('pat',person). isa(herduvet,duvet).  ako(cover,duvet). ako(duvet,bedding).  owns('pat',herduvet).  made_of(ducksfeathers,herduvet).  colour(ducksfeathers,white). 

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -