-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(CBOR): added experimental support for CBOR data format
We've added very early support for the CBOR file format. Lots to come on this subject, but if you have CBOR data lying around, try adding it! TFW updating the qri repo to add CBOR involes only documentation & test changes.
- Loading branch information
Showing
8 changed files
with
148 additions
and
9 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Binary file added
BIN
+1.74 KB
repo/test/testdata/flourinated_compounds_in_fast_food_packaging/data.cbor
Binary file not shown.
61 changes: 61 additions & 0 deletions
61
repo/test/testdata/flourinated_compounds_in_fast_food_packaging/input.dataset.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"commit" : { | ||
"qri" : "cm:0", | ||
"title" : "initial commit", | ||
"timestamp": "2017-05-01T01:00:00.000Z" | ||
}, | ||
"meta" : { | ||
"title" : "Fluorinated Compounds in U.S. Fast Food Packaging", | ||
"description" : "Paper samples, paper extracts (known), paper extracts (unknown). \n\nThis dataset is associated with the following publication:\nSchaider, L., S. Balan, A. Blum, D. Andrews, M. Strynar, M. Dickinson, D. Lunderberg, J. Lang, and G. Peaslee. Fluorinated Compounds in U.S. Fast Food Packaging. Environmental Science \u0026amp; Technology Letters. American Chemical Society, Washington, DC, USA, 4(3): 105\u0026ndash;111, (2017)." | ||
}, | ||
"structure": { | ||
"qri": "st:0", | ||
"format": "cbor", | ||
"schema": { | ||
"type": "array", | ||
"items": { | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"type": "string", | ||
"title": "sample" | ||
}, | ||
{ | ||
"type": "string", | ||
"title": "comments" | ||
}, | ||
{ | ||
"type": "integer", | ||
"title": "length_cm", | ||
"description": "length of sample in cm" | ||
}, | ||
{ | ||
"type": "integer", | ||
"title": "width_cm", | ||
"description": "width of sample in cm" | ||
}, | ||
{ | ||
"type": "integer", | ||
"title": "area_cm", | ||
"description": "area of sample in cm2" | ||
}, | ||
{ | ||
"type": "number", | ||
"title": "vial_tare_g", | ||
"description": "vial tare in grams" | ||
}, | ||
{ | ||
"type": "number", | ||
"title": "vial_with_paper_g", | ||
"description": "mass of vial tare with paper in grams" | ||
}, | ||
{ | ||
"type": "number", | ||
"title": "mass_g", | ||
"description": "mass of paper in grams" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |