Last active
August 29, 2015 14:06
-
-
Save idasim/9190573898960ec0f61b to your computer and use it in GitHub Desktop.
Examples of Headers, using body-weight and sleep-duration schemas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"header": { | |
"id": "123e4567-e89b-12d3-a456-426655440000", | |
"creation_time": "2013-02-05T07:25:00Z", | |
"schema": { | |
"namespace": "omh", | |
"name": "calories_burned", | |
"version": "1.1.RC1" | |
}, | |
"acquisition_provenance": { | |
"source": "RunKeeper", | |
"source_creation_timestamp": "2013-02-05T07:25:00Z", | |
"modality": "sensed, self-reported" // new suggestion | |
"location":gps-coordinates //new suggestion, probably defer | |
}, | |
"processing_delivery_provenance": { | |
// defer, processing may occur as part of delivery (e.g., whatever Validic does to clean up) so don't split it | |
//add indirection to provenance, which includes source model and version | |
"source_data_points": [ "235345", "2342423", "12312312"] | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"header": { | |
"id": "123e4567-e89b-12d3-a456-426655440000", | |
"creation_time": "2013-02-05T07:25:00Z", //July 15, 2014 | |
"schema": { | |
"namespace": "omh", | |
"name": "sleep-duration-(notimestamp)", | |
"version": "1.1.RC1" | |
}, | |
"acquisition_provenance": { | |
"origin": "Jawbone", | |
"acquisition_timestamp": // jawbone's "time-created" and "time-completed"? | |
"modality": "sensed" //new | |
"location":gps-coordinates //new suggestion, probably defer | |
}, | |
"processing_delivery_provenance": { | |
// defer | |
} | |
} | |
{ | |
"sleep-duration": { | |
"value": 27900, | |
"unit": "s" | |
}, | |
"effective-time-frame": { | |
"start-time" : "2013-02-05T21:00:00Z", //jawbone's asleep-time | |
"end-time" : "2013-02-05T21:00:00Z", //jawbone's awake-time | |
} | |
"effective-time-frame": { | |
"date-time" : "2013-02-05T21:00:00Z", //jawbone's date | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"header": { | |
"id": "123e4567-e89b-12d3-a456-426655440000", | |
"creation_time": "2013-02-05T07:25:00Z", //July 15, 2014 | |
"schema": { | |
"namespace": "omh", | |
"name": "body-weight", | |
"version": "1.1.RC1" | |
}, | |
"acquisition_provenance": { | |
"origin": "RunKeeper", | |
"acquisition_timestamp": instantiate from update-time (?) in Withings API //July 10, 2014 | |
"modality": "self-reported" | |
"location":gps-coordinates //new suggestion, probably defer | |
}, | |
"processing_delivery_provenance": { | |
// defer | |
} | |
} | |
{ | |
"body-weight": { | |
"value": 50, | |
"unit": "kg" | |
}, | |
"effective-time-frame": { | |
"date-time": instantiate from "timestamp" field of runkeeper api //e.g., July 9, 2015 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"header": { | |
"id": "123e4567-e89b-12d3-a456-426655440000", | |
"creation_time": "2013-02-05T07:25:00Z", //July 15, 2014 | |
"schema": { | |
"namespace": "omh", | |
"name": "body-weight", | |
"version": "1.1.RC1" | |
}, | |
"acquisition_provenance": { | |
"origin": "Withings", | |
"acquisition_timestamp": instantiate from update-time (?) in Withings API //July 10, 2014 | |
"modality": "sensed" //new | |
"location":gps-coordinates //new suggestion, probably defer | |
}, | |
"processing_delivery_provenance": { | |
// defer | |
} | |
} | |
{ | |
"body-weight": { | |
"value": 50, | |
"unit": "kg" | |
}, | |
"effective-time-frame": { | |
"date-time": instantiate from "date" field of withings api //e.g., July 9, 2015 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment