(自訂) 自我練習學習服務

  • 學生回答自我練習題目 (嵌入在影片中)

    customizedAnsweredVideoPracticeQuestions(actor, verb, object, result, context, authority, timestamp);

  • 學生回答自我練習題目 (嵌入在電子書頁面中)

    customizedAnsweredEBookPracticeQuestions(actor, verb, object, result, context, authority, timestamp);

  • 學生閱讀嵌入在影片中的題目的補充資訊或提示

    customizedReadVideoHints(actor, verb, object, result, context, authority, timestamp);

  • 學生閱讀嵌入在電子書中的題目的補充資訊或提示

    customizedReadEBookHints(actor, verb, object, result, context, authority, timestamp);

函式說明

customizedAnsweredVideoPracticeQuestions()

  • 作用:學生回答自我練習題目 (嵌入在影片中)
  • 參數:表A
名稱 屬性 說明 必要性
actor Agent Object 主詞。此語句的擁有者,物件格式請參考表1 必要
verb Object 動詞。學生或學習小組之動作,物件格式請參考表2 必要
object Object 對象。可以為活動、動作者或者為另一個語句物件。預設為活動物件,物件格式請參考表3 必要
result Object 此語句之結果。可依照對應的動詞取得對應結果。物件格式請參考表6 必要
context Object 描繪此語句之情境,物件格式請參考表4 必要
authority Object 語句擁有者,物件格式請參考表5 選填
timestamp ISO 8601 String 時間戳記 選填
Example
var actor = visca.setActorByMbox("Crystal","mailto:crystal@visca.com");
var verbDisplay = visca.setDisplay("zh-TW","回答");
var verb = visca.setVerb("http://adlnet.gov/expapi/verbs/answered",verbDisplay);
var objectID = "http://visca.com/question/id/1";
var defName = visca.setName("zh-TW","1");
var defDescription = visca.setDescription("zh-TW","1,_,3,_,5");
var defType = "http://adlnet.gov/expapi/activities/cmi.interaction";
var alignment = visca.setExtension("alignment",["社4-4-2-4","語1-1-1-2"]);
var bloomsLevel = visca.setExtension("blooms-level","Applying");
var defExtensions = visca.setExtensions(alignment,bloomsLevel);
var defInteractionType = "fill-in";
var defCorrectResponsesPattern = visca.setCorrectResponsesPattern("2[,]4");
var objectDef = visca.setDefinition(defName,defDescription,defType,defExtensions,defInteractionType,defCorrectResponsesPattern,null);
var object = visca.setObject(objectID,objectDef);
var reDuration = "PT20S";
var start = visca.setExtension("starting-point","2016-05-13T05:45:10Z");
var end = visca.setExtension("ending-point","2016-05-13T05:45:30Z");
var reExtensions = visca.setExtensions(start,end);
var reResponse = "2[,]6";
var reScore = visca.setScore(0,0,10);
var reSuccess = false;
var result = visca.setResult(reDuration,reExtensions,reResponse,reScore,reSuccess);
var instructor = visca.setInstructorByMbox("Teacher","mailto:teacher@visca.com");
var platform = "http://visca.com/platform/assessing";
var language = "zh-TW";
var parentID = "https://www.youtube.com/watch?v=sQcwRGTW5mw";
var pName = visca.setName("zh-TW","Future Learning");
var pType = "https://w3id.org/xapi/acrossx/activities/video";
var pExtensions = visca.setExtension("duration","PT12M47S");
var parentDefinition = visca.setDefinition(pName,null,pType,pExtensions,null,null,null);
var parent = visca.setParent(parentID,parentDef);
var category = visca.setCategory("https://w3id.org/xapi/acrossx/profile/practice","https://w3id.org/xapi/acrossx/profile/video");
var contextActivities = visca.setContextActivities(parent,null,category);
var browserInfo = visca.setExtension("browser-info");
var time = visca.setExtension("time","PT1M");
var contextExtensions = visca.setExtensions(browserInfo,time);
var context = visca.setContext(instructor,language,contextActivities,platform,contextExtensions);
var authority = visca.setAuthorityByMbox("Crystal","mailto:crystal@visca.com");
var timestamp = visca.setTimestamp();

visca.customizedAnsweredVideoPracticeQuestions(actor,verb,object,result,context,authority,timestamp);

customizedAnsweredEBookPracticeQuestions()

  • 作用:學生回答自我練習題目 (嵌入在電子書頁面中)
  • 參數:表A
Example
var actor = visca.setActorByMbox("Crystal","maito:crystal@visca.com");
var verbDisplay = visca.setDisplay("zh-TW","回答");
var verb = visca.setVerb("http://adlnet.gov/expapi/verbs/answered",verbDisplay);
var objectID = "http://visca.com/question/id/2";
var defName = visca.setName("zh-TW","2");
var defDescription = visca.setDescription("zh-TW","太陽是恆星?");
var defType = "http://adlnet.gov/expapi/activities/cmi.interaction";
var alignment = visca.setExtension("alignment",["社4-4-2-4","語1-1-1-2"]);
var bloomsLevel = visca.setExtension("blooms-level","Applying");
var defExtensions = visca.setExtensions(alignment,bloomsLevel);
var defInteractionType = "true-false";
var defCorrectResponsesPattern = visca.setCorrectResponsesPattern("false");
var objDefinition = visca.setDefinition(defName,defDescription,defType,defExtensions,defInteractionType,defCorrectResponsesPattern,null);
var object = visca.setObject(objectID,objectDef);
var reDuration = "PT20S";
var start = visca.setExtension("starting-point","2015-09-21T05:45:10Z");
var end = visca.setExtension("ending-point","2015-09-21T05:45:30Z");
var reExtensions = visca.setExtensions(start,end);
var reResponse = "false";
var reScore = visca.setScore(0,10,10);
var reSuccess = true;
var result = visca.setResult(reDuration,reExtensions,reResponse,reScore,reSuccess);
var instructor = visca.setInstructorByMbox("Teacher","mailto:teacher@visca.com");
var platform = "http://visca.com/platform/assessing";
var language = "zh-TW";
var parentID = "http://visca.com/book/id/1";
var pName = visca.setName("zh-TW","《老人與海》");
var pType = "https://w3id.org/xapi/acrossx/activities/e-book";
var parentDef = visca.setDefinition(pName,null,pType,null,null,null,null);
var parent = visca.setParent(parentID,parentDef);
var category = visca.setCategory("https://w3id.org/xapi/acrossx/profile/practice","https://w3id.org/xapi/acrossx/profile/ebook");
var contextActivities = visca.setContextActivities(parent,null,category);
var browserInfo = visca.setExtension("browser-info");
var page = visca.setExtension("page",8);
var contextExtensions = visca.setExtensions(browserInfo,page);
var context = visca.setContext(instructor,language,contextActivities,platform,contextExtensions);
var authority = visca.setAuthorityByMbox("Crystal","mailto:crystal@visca.com");
var timestamp = visca.setTimestamp();

visca.customizedAnsweredEBookPracticeQuestions(actor,verb,object,result,context,authority,timestamp);

customizedReadVideoHints()

  • 作用:學生閱讀嵌入在影片中的題目的補充資訊或提示
  • 參數:表A
Example
var actor = visca.setActorByMbox("Crystal","mailto:crystal@visca.com");
var verbDisplay = visca.setDisplay("zh-TW","閱讀");
var verb = visca.setVerb("http://w3id.org/xapi/adb/verbs/read", verbDisplay);
var objectID = "http://visca.com/question/id/1";
var defName = visca.setName("zh-TW","第一題");
var defDescription = visca.setDescription("zh-TW","哪一個人最帥?");
var defType = "http://adlnet.gov/expapi/activities/cmi.interaction";
var defInteractionType = "choice";
var defCorrectResponsesPattern = visca.setCorrectResponsesPattern("king");
var alignment = visca.setExtension("alignment",["社4-4-2-4","語1-1-2-2"]);
var bloomsLevel = visca.setExtension("blooms-level","Applying");
var supplementalInfo = visca.setExtension("supplemental-info","your hint!");
var defExtensions = visca.setExtensions(alignment,bloomsLevel,supplementalInfo);
var objectDef = visca.setDefinition(defName,defDescription,defType,defExtensions,defInteractionType,defCorrectResponsesPattern,null);
var object = visca.setObject(objectID,objectDef);
var reDuration = "PT1M10S";
var result = visca.setResult(reDuration,null,null,null,null);
var instructor = visca.setInstructorByMbox("Teacher","mailto:teacher@visca.com");
var parentID = "https://www.youtube.com/watch?v=sQcwRGTW5mw";
var pName = visca.setName("zh-TW","Future Learning");
var pType = "https://w3id.org/xapi/acrossx/activities/video";
var pExtensions = visca.setExtension("duration","PT12M47S");
var parentDef = visca.setDefinition(pName,null,pType,pExtensions,null,null,null);
var parent = visca.setParent(parentID,parentDef);
var category = visca.setCategory("https://w3id.org/xapi/acrossx/profile/video","https://w3id.org/xapi/acrossx/profile/practice");
var contextActivities = visca.setContextActivities(parent,null,category);
var contextExtensions = visca.setExtension("browser-info");
var context = visca.setContext(instructor,null,contextActivities,null,contextExtensions);
var authority = visca.setAuthorityByMbox("Crystal","mailto:crystal@visca.com");
var timestamp = visca.setTimestamp();

visca.customizedReadVideoHints(actor,verb,object,result,context,authority,timestamp);

customizedReadEBookHints()

  • 作用:學生閱讀嵌入在電子書中的題目的補充資訊或提示
  • 參數:表A
Example
var actor = visca.setActorByMbox("Crystal","mailto:crystal@visca.com");
var verbDisplay = visca.setDisplay("zh-TW","閱讀");
var verb = visca.setVerb("https://w3id.org/xapi/adb/verbs/read",verbDisplay);
var objectID = "http://visca.com/question/id/3";
var defName = visca.setName("zh-TW","3");
var defDescription = visca.setDescription("zh-TW","哪一個人最帥?");
var defType = "http://adlnet.gov/expapi/activities/cmi.interaction";
var alignment = visca.setExtension("alignment",["社4-4-2-4","語1-1-1-2"]);
var bloomsLevel = visca.setExtension("blooms-level","Applying");
var supplementalInfo = visca.setExtension("supplemental-info","your hint!");
var defExtensions = visca.setExtensions(alignment,bloomsLevel,supplementalInfo);
var defInteractionType = "choice";
var defCorrectResponsesPattern = visca.setCorrectResponsesPattern("king");
var objectDef = visca.setDefinition(defName,defDescription,defType,defExtensions,defInteractionType,defCorrectResponsesPattern,null);
var object = visca.setObject(objectID,objectDef);
var reDuration = "PT1M10S";
var result = visca.setResult(reDuration,null,null,null,null);
var instructor = visca.setInstructorByMbox("Teacher","mailto:teacher@visca.com");
var platform = "http://visca.com/platform/assessing";
var language = "zh-TW";
var parentID = "http://visca.com/book/id/1";
var pName = visca.setName("zh-TW","《老人與海》");
var pDescription = visca.setDescription("zh-TW","作者是海明威");
var pType = "https://w3id.org/xapi/acrossx/activities/e-book";
var parentDef = visca.setDefinition(pName,pDescription,pType,null,null,null,null);
var parent = visca.setParent(parentID,parentDef);
var category = visca.setCategory("https://w3id.org/xapi/acrossx/profile/practice","https://w3id.org/xapi/acrossx/profile/ebook");
var contextActivities = visca.setContextActivities(parent,null,category);
var browserInfo = visca.setExtension("browser-info");
var page = visca.setExtension("page",8);
var contextExtensions = visca.setExtensions(browserInfo,page);
var context = visca.setContext(instructor,language,contextActivities,platform,contextExtensions);    
var authority = visca.setAuthorityByMbox("Crystal","mailto:crystal@visca.com");
var timestamp = visca.setTimestamp();

visca.customizedReadEBookHints(actor,verb,object,result,context,authority,timestamp);

表1

  • 物件名稱:actor
  • 組成元素:
名稱 屬性 說明 必要性
objectType String "Agent" 必要
name String 腳色之全名 必要
mbox mailto IRI 腳色的電子郵件,格式為 "mailto: 電子郵件" 必要

表2

  • 物件名稱:verb
  • 組成元素:
名稱 屬性 說明 必要性
id URL 使用的動作 必要
display Object 使用動作的多語言之表示,物件格式請參考表2-1 選填

表2-1

  • 物件名稱:display
  • 組成元素:
名稱 屬性 說明 必要性
zh-TW String 繁體中文的動作名稱 選填
en-US String 英文的動作名稱 選填

表3

  • 物件名稱:object
  • 組成元素:
名稱 屬性 說明 必要性
objectType String "Activity" 必要
id URL 問題的連結 必要
definition Object 元數據 (Metadata),物件格式請參考表3-1 必要

表3-1

  • 物件名稱:definition
  • 組成元素:
名稱 屬性 說明 必要性
name Object 該活動之名稱,物件格式請參考表3-1-1 建議
description Object 此活動之描述,物件格式請參考表3-1-2 除了回答自我練習題目(電子書)是建議外,其他皆選填
type URL 活動的類型是一種 cmi.interaction 必要
extensions Object 根據需要使用其他屬物件,物件格式請參考表3-1-3 必要:閱讀提示
建議:回答自我練習題目
interactionType String 問題類型,參考 Interaction Activities 必要
correctResponsesPattern Array of Strings 正確答案 建議
choices Array of Objects 選項 選填:閱讀提示

表3-1-1

  • 物件名稱:name
  • 組成元素:
名稱 屬性 說明 必要性
zh-TW String 題目ID/title/編號 建議

表3-1-2

  • 物件名稱:description
  • 組成元素:
名稱 屬性 說明 必要性
zh-TW String 題幹 除了回答自我練習題目(電子書)是建議外,其他皆選填

表3-1-3

  • 物件名稱:extensions
  • 組成元素: (object.definition.extensions)
    名稱 屬性 說明 必要性
    https://w3id.org/xapi/acrossx/extensions/alignment Array of String 對齊的課綱、能力、知識節點或其他指標 建議
    https://w3id.org/xapi/acrossx/extensions/blooms-level String Blooms Level:
    • Remembering
    • Understanding
    • Applying
    • Analyzing
    • Evaluating
    • Creating
    建議
    https://w3id.org/xapi/acrossX/extensions/supplemental-info String/Activity Object/URL Hint or feedback revealed 必要:閱讀提示

(context.extensions)

名稱 屬性 說明 必要性
http://id.tincanapi.com/extension/browser-info Navigator Object 使用的瀏覽器資訊 建議
http://id.tincanapi.com/extension/time ISO 8601 String 問題所在的影片時間點 必要
https://w3id.org/xapi/acrossx/activities/page Integer 問題所在的電子書的頁碼 必要

(result.extensions)

名稱 屬性 說明 必要性
result.extensions.http://id.tincanapi.com/extension/starting-point ISO 8601 String 開始答題的時間戳記 建議
result.extensions.http://id.tincanapi.com/extension/ending-point ISO 8601 String 結束答題的時間戳記 建議

表4

  • 物件名稱:context
  • 組成元素:
名稱 屬性 說明 必要性
instructor Object 教師,物件格式請參考表4-1 建議
language String 此情境中使用之語言 建議:回答自我練習題目
選填:閱讀提示
contextActivities Object 學習活動情境之各類型資訊。有效的類型:parent、grouping、category、other,物件格式請參考表4-2 必要
platform String 此筆活動紀錄之使用平台 建議
extensions Object 其他的特殊情境元素,物件格式請參考表3-1-3 必要:回答自我練習題目
建議:閱讀提示

表4-1

  • 物件名稱:instructor
  • 組成元素:
名稱 屬性 說明 必要性
objectType String "Agent" 建議
name String 全名 建議
mbox mailto IRI 電子郵件,格式為 "mailto: 電子郵件" 建議

表4-2

  • 物件名稱:contextActivities
  • 組成元素:
名稱 屬性 說明 必要性
parent[0] Activity Object 所屬的母活動,物件格式請參考表4-2-1 必要
category[0] Activity Object 回答自我練習題目:自我練習的 Profile ID Activity
閱讀提示(影片):影片的 Profile ID Activity
閱讀提示(電子書):電子書的 Profile ID Activity
物件格式請參考表4-2-2
必要
category[1] Activity Object 回答自我練習題目(影片):影片的 Profile ID Activity
回答自我練習題目(電子書):電子書的 Profile ID Activity
閱讀提示:自我練習的 Profile ID Activity
物件格式請參考表4-2-2
必要

表4-2-1

  • 物件名稱:parent[0]
  • 組成元素:
名稱 屬性 說明 必要性
objectType Strin “Activity” 必要
id URL 一個唯一的 Activity ID 必要
definition Object 元數據,物件格式請參考表3-1? 必要

表4-2-2

  • 物件名稱:category[0]、category[1]
  • 組成元素:
名稱 屬性 說明 必要性
objectType String “Activity” 必要
id URL 一個唯一的 Activity ID 必要

表5

  • 物件名稱:authority
  • 組成元素:
名稱 屬性 說明 必要性
objectType String “Agent” 選填
name String 語句擁有者之全名 選填
mbox mailto IRI 語句擁有者的電子郵件,格式為 “mailto: 電子郵件” 選填

表6

  • 物件名稱:result
  • 組成元素:
名稱 屬性 說明 必要性
duration ISO 8601 Duration 表示此活動之持續時間 必要:回答自我練習題目
建議:閱讀提示
extensions Object 對應其他欲表達之元素,物件格式請參考表3-1-3 建議:回答自我練習題目
response String 回答內容 必要:回答自我練習題目
score Object 分數,物件格式請參考表6-1 建議:回答自我練習題目
success Boolean 答對與否 必要:回答自我練習題目

表6-1

  • 物件名稱:score
  • 組成元素:
名稱 屬性 說明 必要性
min Decimal number less than max 最低分 建議
raw Decimal number between min and max 得分 建議
max Decimal number greater than min 最高分 建議

results matching ""

    No results matching ""