FFDQ JSON example

From Kurator
Jump to: navigation, search

Abbreviated JSON example

{
  "profile":[ 
     {
        "name":"DAY_POSSIBLE_FOR_MONTH_YEAR",
        "description":"Check if a value for day is consistent with a provided month and year.",
        "specification":"Check that the value of dwc:eventDate is consistent with the values for dwc:month and dwc:year. Requires valid values for month and year.",
        "label":"Day Consistent With Month\/Year",
        "type":"VALIDATION",
        "mechanism":"Kurator: Date Validator - DwCEventDQ"
     },
     {
        "name":"DAY_MONTH_TRANSPOSED",
        "description":"Check of month is out of range for months, but day is in range for months, and propose a transposition of the two if this is the case.",
        "specification":"If dwc:month and dwc:day are provided, propose a transposition if day is in range for months, and month is in range for days",
        "label":"Day Month Transposition",
        "type":"AMENDMENT",
        "mechanism":"Kurator: Date Validator - DwCEventDQ"
     }
  ],
  "report":[
     { 
        "recordId":null,
        "initialValues":{
           "dwc:decimalLatitude":"47.1384",
           "dwc:decimalLongitude":"-120.9263",
           "dwc:reproductiveCondition":"Flower:March;April;May;June;July;August",
           "dwc:country":"United States",
           "dwc:collectionCode":"FilteredPush",
           "dwc:locality":"Wenatchee National Forest. South Cle Elum Ridge.",
           "dwc:catalogNumber":"100001",
           "dwc:month":"6",
           "dwc:institutionCode":"DAV ",
           "dwc:recordedBy":"Megan A. Jensen",
           "dwc:year":"2007",
           "dwc:county":"Chelan",
           "dwc:geodeticDatum":"WGS84",
           "dwc:scientificNameAuthorship":"auct.",
           "dwc:fieldNumber":"126",
           "dwc:family":"Asteraceae  ",
           "Id":"926137834",
           "dwc:day":"29",
           "dwc:scientificName":"Taraxacum erythrospermum",
           "dwc:stateProvince":"Washington",
           "dwc:datasetName":"SPNHCDEMO"
        },
        "reportStatus":{
           "validationState":{
              "dwc:day":"COMPLIANT"
           }
        },
        "assertions":[
           {
              "stage":"PRE_ENHANCEMENT",
              "name":"DAY_POSSIBLE_FOR_MONTH_YEAR",
              "context":{
                 "fieldsConsulted":[
                    "dwc:year",
                    "dwc:month"
                 ],
                 "fieldsActedUpon":[
                    "dwc:day"
                 ]
              },
              "comment":"Provided value for year-month-day 2007-6-29 parses to a valid day.",
              "type":"VALIDATION",
              "status":"COMPLIANT"
           },
           {
              "result":{
              },
              "stage":"ENHANCEMENT",
              "name":"DAY_MONTH_TRANSPOSED",
              "context":{
                 "fieldsConsulted":[
                 ],
                 "fieldsActedUpon":[
                    "dwc:month",
                    "dwc:day"
                 ]
              },
              "comment":"",
              "type":"AMENDMENT",
              "status":"NO_CHANGE"
           },
           {
              "stage":"POST_ENHANCEMENT",
              "name":"DAY_POSSIBLE_FOR_MONTH_YEAR",
              "context":{
                 "fieldsConsulted":[
                    "dwc:year",
                    "dwc:month"
                 ],
                 "fieldsActedUpon":[
                    "dwc:day"
                 ]
              },
              "comment":"Provided value for year-month-day 2007-6-29 parses to a valid day.",
              "type":"VALIDATION",
              "status":"COMPLIANT"
           }
        ],
        "finalValues":{
           "dwc:decimalLatitude":"47.1384",
           "dwc:decimalLongitude":"-120.9263",
           "dwc:reproductiveCondition":"Flower:March;April;May;June;July;August",
           "dwc:country":"United States",
           "dwc:collectionCode":"FilteredPush",
           "dwc:locality":"Wenatchee National Forest. South Cle Elum Ridge.",
           "dwc:catalogNumber":"100001",
           "dwc:month":"6",
           "dwc:institutionCode":"DAV ",
           "dwc:recordedBy":"Megan A. Jensen",
           "dwc:year":"2007",
           "dwc:county":"Chelan",
           "dwc:geodeticDatum":"WGS84",
           "dwc:scientificNameAuthorship":"auct.",
           "dwc:fieldNumber":"126",
           "dwc:family":"Asteraceae  ",
           "Id":"926137834",
           "dwc:day":"29",
           "dwc:scientificName":"Taraxacum erythrospermum",
           "dwc:stateProvince":"Washington",
           "dwc:datasetName":"SPNHCDEMO"
        }
     }
  ]
}