0

Regarding the possible response patterns for the numeric interaction type, my understanding is that there are four possible combinations:

'2[:]4' // would mean a minimum of 2 and a maximum of 4 (response in the range of 2 to 4 would be correct)
'4' // (no delimiter) means there is a single correct answer of 4
'4[:]' // this means a minimum of 4 and no maximum (response in the range of 4 or above would be correct)
'[:]4' // would mean no minimum but a maximum of 4.

My question relates to the last example. Would an answer of 0 (zero), or some negative number, be acceptable? The standard does not seem to make any provision for such situations and I am unclear whether values of zero or less were within the contemplation of the drafters of the specification. Note that the response pattern '-2[:]4' works in the SCORM Cloud LRS but I am not sure whether other LRSs would accept negative range values.

4

1 回答 1

1

这实际上分为几个部分,哪些值符合哪些规范以及您的预期用例是什么,以及我们在市场上实际看到的内容。

1) xAPI 规范对这些数据非常松散。严格来说,出于严格(遵循 MUST)xAPI 目的,任何字符串值都可以作为数组中的一个result.response或项。如果他们想要更严格,correctResponsesPattern则由 LRS 的实施决定,请参阅:

LRS 在使用有效的交互类型时,可以验证为交互活动指定的剩余属性,如果剩余属性对交互活动无效,则可以返回 400 错误请求。

(参考:2.4.4.1 https://github.com/adlnet/xAPI-Spec/blob/master/xAPI-Data.md#requirements-4

SCORM Cloud 遵循严格模型,因此它只会验证这些属性是否为字符串,并且不会对这些字符串的内容采取进一步行动(此时)。其他 LRS 可能对上述值更严格,也可能不更严格。

这里的执行文本是:

这些交互类型最初基于 SCORM 2004 第 4 版运行时环境中“cmi.interactions.n.type”允许的交互类型。

(参考:https ://github.com/adlnet/xAPI-Spec/blob/master/xAPI-Data.md#interaction-types )

重要的短语最初是基于,换句话说,考虑到 LMS 供应商采用 CMI 数据模型的程度以及当时主导领域的相应内容,至少促进它们的使用是很重要的。 ,同时不干扰 xAPI 提供的扩展范围。

2) SCORM 2004 4th edition 更加严格。在 RTE 参考中,它指出:

交互需要学习者的数字响应。响应是一个带有可选小数点的简单数字。

后来它说:

如果字符串值是一个数值范围,它应该表现出以下格式,其中<min>和<max>都是real(10, 7)数据类型。

所以数值必须在集合中表示real(10, 7)。在其他地方引用为:

real(10,7) 数据类型表示精度为七位有效数字的实数。

(在此之后有一个关于如何使用 SQL 存储值的注释,并且该名称对应于 ISO 11404)

因此,如果您尝试捕获要与 SCORM 2004 信息模型一起使用的数据,那么您应该将您的使用限制在该值范围内。

3) 到目前为止,在市场上,我认为我们大多数人看到人们捕获他们需要合理捕获的内容,并且 cmi.interactions 被用于简单的情况,但除此之外没有太多。我不希望对字符串内容本身进行强有力的验证,因为 LRS 通常倾向于避免尝试从它们中获取含义,并且 LRS(从严格的规范角度来看)没有太多理由提供这种验证。下游系统(例如 LMS 和/或报告工具)最好处理他们认为合适的数据。

于 2017-02-22T15:44:46.940 回答