|
42 | 42 | valueToAttribute_withCheck/3, |
43 | 43 | userCognitiveTestPerformance/8, |
44 | 44 | cognitiveTestsOfType/6, |
45 | | - createCognitiveTest/6, |
| 45 | + createCognitiveTest/5, |
46 | 46 | cognitiveTestPerformed/7 |
47 | 47 | ]). |
48 | 48 |
|
|
70 | 70 | valueToAttribute_withCheck(r,r,r), |
71 | 71 | userCognitiveTestPerformance(r,r,r,r,r,r,r,r), |
72 | 72 | cognitiveTestsOfType(r,r,r,r,r,r), |
73 | | - createCognitiveTest(r,r,r,r,r,r), |
| 73 | + createCognitiveTest(r,r,r,r,r), |
74 | 74 | cognitiveTestPerformed(r,r,r,r,r,r,r), |
75 | 75 | create_timepoint(+,r), |
76 | 76 | get_timepoint(r), |
@@ -382,30 +382,28 @@ userCognitiveTestPerformance(A,C,B,Var,Dif,Timestamp,SC,P):- |
382 | 382 | rdf_has(P,knowrob:cognitiveTestPerformedPatient,A), |
383 | 383 | rdf_has(P,knowrob:cognitiveTestPerformedTestType,B), |
384 | 384 | rdf_has(B,rdf:type,C), |
385 | | -rdf_has(B,knowrob:cognitiveTestVariation,literal(type(_, Var))), |
386 | 385 | rdf_has(B,knowrob:cognitiveTestDifficulty,literal(type(_, Dif))), |
387 | 386 | rdf_has(P,knowrob:cognitiveTestPerformedTimestamp,literal(type(_, Timestamp))), |
388 | 387 | rdf_has(P,knowrob:cognitiveTestPerformedScore,literal(type(_, SC))). |
389 | 388 |
|
390 | | -cognitiveTestsOfType(A,B,Var,Path,Dif,Sub):- |
| 389 | +cognitiveTestsOfType(A,B,Path,Dif,Sub,Language):- |
391 | 390 | rdf_has(B,rdf:type,A), |
392 | | -rdf_has(B,knowrob:cognitiveTestVariation,literal(type(_, Var))), |
| 391 | +rdf_has(B,knowrob:supportedLanguages,Language), |
393 | 392 | rdf_has(B,knowrob:cognitiveTestFilePath,literal(type(_, Path))), |
394 | 393 | rdf_has(B,knowrob:cognitiveTestDifficulty,literal(type(_, Dif))), |
395 | 394 | rdf_has(B,knowrob:cognitiveTestSubType,Sub). |
396 | 395 |
|
397 | | -createCognitiveTest(A,B,C,D,E,F):- |
| 396 | +createCognitiveTest(A,B,D,E,F):- |
398 | 397 | owl_subclass_of(F,A), |
399 | 398 | rdf_instance_from_class(A,B), |
400 | | -rdf_assert(B,knowrob:cognitiveTestVariation,literal(type(xsd:string,C))), |
401 | 399 | rdf_assert(B,knowrob:cognitiveTestDifficulty,literal(type(xsd:string,D))), |
402 | 400 | rdf_assert(B,knowrob:cognitiveTestFilePath,literal(type(xsd:string,E))), |
403 | 401 | rdf_assert(B,knowrob:cognitiveTestSubType,F). |
404 | 402 |
|
405 | 403 | cognitiveTestPerformed(B,Patient,Test,Time,Score,C,D):- |
406 | 404 | rdf_has(Patient,rdf:type,C), |
407 | 405 | rdf_instance_from_class(D,B), |
408 | | -rdf_has(Test,knowrob:cognitiveTestSubType,something), |
| 406 | +rdf_has(Test,knowrob:cognitiveTestSubType,L), |
409 | 407 | rdf_assert(B,knowrob:cognitiveTestPerformedPatient,Patient), |
410 | 408 | rdf_assert(B,knowrob:cognitiveTestPerformedTestType,Test), |
411 | 409 | rdf_assert(B,knowrob:cognitiveTestPerformedTimestamp,literal(type(xsd:string,Time))), |
|
0 commit comments