Skip to content

Modification problem #17

@hmqq

Description

@hmqq

I have an ontology, where i have a role "headOfDepartment" with a domain "HOD". I want to add additional fact in ontology like

instr("headOfDepartment","P2","Dep2").
delta(qalt,addop("ont:headOfDepartment",A,B)) :- instr("headOfDepartment",A,B).

instc("Department",X) :- &dlCroonto,"ont:Department".
instr("headOfDepartment",Y,X) :- &dlOProonto,"ont:headOfDepartment".
instc("HOD",Y) :- &dlCroonto,"ont:HOD".

modifications(qalt).

result(Y,X) :- instc("Department",X),instr("headOfDepartment",Y,X),instc("HOD",Y).

#show result/2.

and I want to retrieve all the objects in HOD, who are head of some department. But this program show me only the objects from ontology and does not show instr("headOfDepartment","P2","P1").

How can I retrieve the facts from hex-file along with the ontology assertions?

ontologyfile.txt
rulefile.txt
WA-meta.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions