You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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
The text was updated successfully, but these errors were encountered: