|
41 | 41 | direct_superclassesOf_withCheck/2, |
42 | 42 | valueToAttribute_withCheck/3, |
43 | 43 | userCognitiveTestPerformance/8, |
44 | | - cognitiveTestsOfType/6, |
45 | | - createCognitiveTest/5, |
| 44 | + cognitiveTestsOfType/7, |
| 45 | + createCognitiveTest/6, |
46 | 46 | cognitiveTestPerformed/7, |
47 | | - createObjectAndRegisterImage/5 |
| 47 | + createObjectAndRegisterImage/6 |
48 | 48 | ]). |
49 | 49 |
|
50 | 50 | :- use_module(library('crypt')). |
|
70 | 70 | direct_superclassesOf_withCheck(r,r), |
71 | 71 | valueToAttribute_withCheck(r,r,r), |
72 | 72 | userCognitiveTestPerformance(r,r,r,r,r,r,r,r), |
73 | | - cognitiveTestsOfType(r,r,r,r,r,r), |
74 | | - createCognitiveTest(r,r,r,r,r), |
| 73 | + cognitiveTestsOfType(r,r,r,r,r,r,r), |
| 74 | + createCognitiveTest(r,r,r,r,r,r), |
75 | 75 | cognitiveTestPerformed(r,r,r,r,r,r,r), |
76 | | - createObjectAndRegisterImage(r,r,r,r,r), |
| 76 | + createObjectAndRegisterImage(r,r,r,r,r,r), |
77 | 77 | create_timepoint(+,r), |
78 | 78 | get_timepoint(r), |
79 | 79 | get_timepoint(+,r), |
@@ -389,19 +389,21 @@ rdf_has(B,knowrob:cognitiveTestDifficulty,literal(type(_, Dif))), |
389 | 389 | rdf_has(P,knowrob:cognitiveTestPerformedTimestamp,literal(type(_, Timestamp))), |
390 | 390 | rdf_has(P,knowrob:cognitiveTestPerformedScore,literal(type(_, SC))). |
391 | 391 |
|
392 | | -cognitiveTestsOfType(A,B,Path,Dif,Sub,Language):- |
| 392 | +cognitiveTestsOfType(A,B,Path,Dif,Sub,Language,Id):- |
393 | 393 | rdf_has(B,rdf:type,A), |
394 | 394 | rdf_has(B,knowrob:supportedLanguages,Language), |
395 | 395 | rdf_has(B,knowrob:cognitiveTestFilePath,literal(type(_, Path))), |
396 | 396 | rdf_has(B,knowrob:cognitiveTestDifficulty,literal(type(_, Dif))), |
397 | | -rdf_has(B,knowrob:cognitiveTestSubType,Sub). |
| 397 | +rdf_has(B,knowrob:cognitiveTestSubType,Sub), |
| 398 | +rdf_has(B,knowrob:cognitiveTestId,literal(type(_, Id))). |
398 | 399 |
|
399 | | -createCognitiveTest(A,B,D,E,F):- |
| 400 | +createCognitiveTest(A,B,D,E,F,G):- |
400 | 401 | owl_subclass_of(F,A), |
401 | 402 | rdf_instance_from_class(A,B), |
402 | 403 | rdf_assert(B,knowrob:cognitiveTestDifficulty,literal(type(xsd:string,D))), |
403 | 404 | rdf_assert(B,knowrob:cognitiveTestFilePath,literal(type(xsd:string,E))), |
404 | | -rdf_assert(B,knowrob:cognitiveTestSubType,F). |
| 405 | +rdf_assert(B,knowrob:cognitiveTestSubType,F), |
| 406 | +rdf_assert(B,knowrob:cognitiveTestId,literal(type(xsd:string,G))). |
405 | 407 |
|
406 | 408 | cognitiveTestPerformed(B,Patient,Test,Time,Score,C,D):- |
407 | 409 | rdf_has(Patient,rdf:type,C), |
|
0 commit comments