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
this have tried far in terms of 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
; andcolour/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
Post a Comment