I tried programming in prolog and read some introductionairy books. However, no book talks about how you would define more complex 'types' objects. How would you model the following domain in prolog:
Comment:
Attributes: text, points
User:
Attributes: name, emailAdress(as a struct of first part, domain, top-level-domain)
Admin(a special user):
additional Attributes: set of rights(can delete, can hide, can modify)
Finally, there is an n-1 assocation between Comment and User and I want to make some queries about this domain.
Comment: Attributes: text, points
User: Attributes: name, emailAdress(as a struct of first part, domain, top-level-domain)
Admin(a special user): additional Attributes: set of rights(can delete, can hide, can modify)
Finally, there is an n-1 assocation between Comment and User and I want to make some queries about this domain.