Skip to content

Commit 36fc5ba

Browse files
committed
fixed prolog script in record user cognitive test performance, now it correctly catches non existent test
1 parent 45b9c95 commit 36fc5ba

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

knowrob_common/prolog/knowrob_owl.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@
405405
cognitiveTestPerformed(B,Patient,Test,Time,Score,C,D):-
406406
rdf_has(Patient,rdf:type,C),
407407
rdf_instance_from_class(D,B),
408+
rdf_has(Test,knowrob:cognitiveTestSubType,L),
408409
rdf_assert(B,knowrob:cognitiveTestPerformedPatient,Patient),
409410
rdf_assert(B,knowrob:cognitiveTestPerformedTestType,Test),
410411
rdf_assert(B,knowrob:cognitiveTestPerformedTimestamp,literal(type(xsd:string,Time))),

knowrob_common/prolog/knowrob_owl.pl~

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ rdf_assert(B,knowrob:cognitiveTestSubType,F).
405405
cognitiveTestPerformed(B,Patient,Test,Time,Score,C,D):-
406406
rdf_has(Patient,rdf:type,C),
407407
rdf_instance_from_class(D,B),
408+
rdf_has(Test,knowrob:cognitiveTestSubType,something),
408409
rdf_assert(B,knowrob:cognitiveTestPerformedPatient,Patient),
409410
rdf_assert(B,knowrob:cognitiveTestPerformedTestType,Test),
410411
rdf_assert(B,knowrob:cognitiveTestPerformedTimestamp,literal(type(xsd:string,Time))),

0 commit comments

Comments
 (0)