// JSON DRD Schema Examples $Draft: 4.0 $ $date: Mon 13 Aug 2012 22:43 BST $
===============================================================================
Examples collected during construction of

JSON DRD Binding Schemas for IMS Access for All 3.0 Public Draft 1.0

Author: Andy Heath, Axelrod Access for All
        http://axelafa.com, andyheath@axelrod.plus.com

Date:   $DATE: 2012-08-13 22:43 $
===============================================================================

AfA 3.0 DRD Core VALID INSTANCES
================================

// empty instance is ok
// --------------------
{}


// instances can be valid without making sense
// -------------------------------------------
{
    "accessMode" : [ "textual" ],
    "accessModeAdapted" : [ "visual" ],
    "adaptationType" : [ "captions" ],
    "atInteroperable" : true ,
    "controlFlexibility" : [ "fullKeyboardControl" ],
    "displayTransformability" : [ "fontSize" ],
    "educationalComplexityOfAdaptation" : "enriched" ,
    "hasAdaptation" : [ "http://somewhereorother.com/someresource" ],
    "isAdaptationOf" : [ "mailto://someone@somewhere.com" ]
}

// This one is valid but may not be usefulby the conventions in the spec
// - AfA 3.0 public draft requires that each "accessMode"/"accessModeAdapted" is
// in a separate drd
// -------------------------------------
{
    "accessMode" : [ "textual", "auditory" ],
    "accessModeAdapted" : [ "visual", "textOnImage" ],
    "adaptationType" : [ "captions" ],
    "atInteroperable" : true,
    "controlFlexibility" : [ "fullKeyboardControl" ],
    "displayTransformability" : [ "fontSize" ],
    "educationalComplexityOfAdaptation" : "enriched",
    "hasAdaptation" : [ "http://somewhereorother.com/someresource" ],
    "isAdaptationOf" : [ "mailto://someone@somewhere.com" ],
    "hazard" : [ "flashing" ],
    "languageOfAdaptation" : [ "eng" ]
}

AfA 3.0 DRD Core INVALID INSTANCES AND CHECKS
=============================================
// must be an array even if only one value
// ---------------------------------------
{
"accessMode" : "visual" 
}

// bad vocabulary value
// --------------------
{
    "accessMode" : [ "visual1" ]
}

// bad property name "accessMode1" - no additional properties allowed
// ------------------------------------------------------------------
{
    "accessMode1" : [ "textual", "auditory" ],
    "accessModeAdapted" : [ "visual", "textOnImage" ],
    "adaptationType" : [ "captions" ],
    "atInteroperable" : true,
    "controlFlexibility" : [ "fullKeyboardControl" ],
    "displayTransformability" : [ "fontSize" ],
    "educationalComplexityOfAdaptation" : "enriched",
    "hasAdaptation" : [ "http://somewhereorother.com/someresource" ],
    "isAdaptationOf" : [ "mailto://someone@somewhere.com" ],
    "hazard" : [ "flashing" ],
    "languageOfAdaptation" : [ "eng" ]
}

AfA 3.0 DRD Full Model STRICT (no extensions allowed) VALID INSTANCES
=====================================================================
{
    "accessMode" : [ "textual" ],
    "accessModeAdapted" : [ "visual" ],
    "adaptationType" : [ "captions" ],
    "atInteroperable" : true ,
    "controlFlexibility" : [ "fullKeyboardControl" ],
    "displayTransformability" : [ "fontSize" ],
    "educationalComplexityOfAdaptation" : "enriched" ,
    "hasAdaptation" : [ "http://somewhereorother.com/someresource" ],
    "isAdaptationOf" : [ "http://someone@somewhere.com" ],
    "hazard" : [ "flashing" ],
    "isFullAdaptationOf" : [ "http://someone@somewhere.com" ],
    "isPartialAdaptationOf" : [ "http://someone@somewhere.com" ],
    "adaptationDetail" : [ "enhanced" ],
    "adaptationMediaType" : [ "EPUB3" ],
    "apiInteroperable" : [ "ARIAv1" ],
    "educationalLevelOfAdaptation" : [ "hard" ],
    "languageOfAdaptation" : [ "fr" ]
}

AfA 3.0 DRD Full Model STRICT (no extensions allowed) INVALID INSTANCES
=======================================================================

// ARIAv2 not in apiInteroperable vocabulary
// -----------------------------------------
{
    "accessMode" : [ "textual" ],
    "accessModeAdapted" : [ "visual" ],
    "adaptationType" : [ "captions" ],
    "atInteroperable" : true ,
    "controlFlexibility" : [ "fullKeyboardControl" ],
    "displayTransformability" : [ "fontSize" ],
    "educationalComplexityOfAdaptation" : "enriched" ,
    "hasAdaptation" : [ "http://somewhereorother.com/someresource" ],
    "isAdaptationOf" : [ "http://someone@somewhere.com" ],
    "hazard" : [ "flashing" ],
    "isFullAdaptationOf" : [ "http://someone@somewhere.com" ],
    "isPartialAdaptationOf" : [ "http://someone@somewhere.com" ],
    "adaptationDetail" : [ "enhanced" ],
    "adaptationMediaType" : [ "EPUB3" ],
    "apiInteroperable" : [ "ARIAv2" ],
    "educationalLevelOfAdaptation" : [ "hard" ],
    "languageOfAdaptation" : [ "fr" ]
}

AfA 3.0 DRD Full Model RELAXED (extensions allowed) VALID INSTANCES
===================================================================
// extended value of "accessModeAdapted"
// extended property
// -------------------------------------
{
     "accessMode" : [ "textual"] ,
     "accessModeAdapted" : [ "ext:extraSensoryPerception"] ,
     "adaptationType" : [ "captions"] ,
     "atInteroperable" : true ,
     "controlFlexibility" : [ "fullKeyboardControl" ],
     "displayTransformability" : [ "fontSize" ],
     "educationalComplexityOfAdaptation" : "enriched" ,
     "hasAdaptation" : [ "isbn:0-486-27557-4" ],
     "isAdaptationOf" : [ "http://someone@somewhere.com" ],
     "hazard" : [ "flashing" ],
     "isFullAdaptationOf" : [ "http://someone@somewhere.com" ],
     "isPartialAdaptationOf" : [ "http://someone@somewhere.com" ],
     "adaptationDetail" : [ "enhanced" ],
     "adaptationMediaType" : [ "EPUB3" ],
     "apiInteroperable" : [ "ARIAv1" ],
     "educationalLevelOfAdaptation" : [ "hard" ],
     "languageOfAdaptation" : [ "fr" ],
     "smartyPants:semanticDensity" : 5 
}


AfA 3.0 DRD Full Model RELAXED (extensions allowed) INVALID INSTANCES
=====================================================================
// two colons in extended property
// -------------------------------
{
     "accessMode" : [ "textual"] ,
     "accessModeAdapted" : [ "ext:extraSensoryPerception"] ,
     "adaptationType" : [ "captions"] ,
     "atInteroperable" : true ,
     "controlFlexibility" : [ "fullKeyboardControl" ],
     "displayTransformability" : [ "fontSize" ],
     "educationalComplexityOfAdaptation" : "enriched" ,
     "hasAdaptation" : [ "isbn:0-486-27557-4" ],
     "isAdaptationOf" : [ "http://someone@somewhere.com" ],
     "hazard" : [ "flashing" ],
     "isFullAdaptationOf" : [ "http://someone@somewhere.com" ],
     "isPartialAdaptationOf" : [ "http://someone@somewhere.com" ],
     "adaptationDetail" : [ "enhanced" ],
     "adaptationMediaType" : [ "EPUB3" ],
     "apiInteroperable" : [ "ARIAv1" ],
     "educationalLevelOfAdaptation" : [ "hard" ],
     "languageOfAdaptation" : [ "fr" ],
     "smartyPants:semantic:Density" : 5 
}

// bad URI - hasAdaptation
// -----------------------
{
     "accessMode" : [ "textual"] ,
     "accessModeAdapted" : [ "ext:extraSensoryPerception"] ,
     "adaptationType" : [ "captions"] ,
     "atInteroperable" : true ,
     "controlFlexibility" : [ "fullKeyboardControl" ],
     "displayTransformability" : [ "fontSize" ],
     "educationalComplexityOfAdaptation" : "enriched" ,
     "hasAdaptation" : [ "isbn 0-486-27557-4" ],
     "isAdaptationOf" : [ "http://someone@somewhere.com" ],
     "hazard" : [ "flashing" ],
     "isFullAdaptationOf" : [ "http://someone@somewhere.com" ],
     "isPartialAdaptationOf" : [ "http://someone@somewhere.com" ],
     "adaptationDetail" : [ "enhanced" ],
     "adaptationMediaType" : [ "EPUB3" ],
     "apiInteroperable" : [ "ARIAv1" ],
     "educationalLevelOfAdaptation" : [ "hard" ],
     "languageOfAdaptation" : [ "fr" ],
     "smartyPants:semanticDensity" : 5 
}

