-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core_vocab attr.exemplum added (see #14 (comment))
- Loading branch information
Showing
4 changed files
with
88 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# tests/hrecipe | ||
> The contents of this folder are strongly based on David Megginson work around | ||
the "JSON processing specs for HXL data". The drafted YAML usage is mostly | ||
an [Syntactic sugar](https://en.wikipedia.org/wiki/Syntactic_sugar). | ||
|
||
Quick links: | ||
- "JSON processing specs for HXL data, David Megginson, 2021-03-11" | ||
- https://docs.google.com/presentation/d/17vXOnq2atIDnrODGLs36P1EaUvT-vXPjsc2I1q1Qc50/edit#slide=id.p | ||
- JSON specs: | ||
- https://github.com/HXLStandard/hxl-proxy/wiki/JSON-processing-specs | ||
- Filter parameters: | ||
- https://github.com/HXLStandard/hxl-proxy/wiki/JSON-recipes | ||
- API endpoint: | ||
- https://github.com/HXLStandard/hxl-proxy/wiki/Process-JSON-spec | ||
- Test online | ||
- https://proxy.hxlstandard.org/api/from-spec.html |
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,19 @@ | ||
|
||
# cd tests/hrecipe | ||
# hdpcli --export-to-hxl-json-processing-specs hello-world.hrecipe.hdp.yml | ||
--- | ||
- hsilo: | ||
name: hello-world.hrecipe.hdp.yml | ||
hrecipe: | ||
- id: example-processing-with-a-JSON-spec | ||
recipe: | ||
- filter: count | ||
patterns: "adm1+name,adm1+code" | ||
aggregators: | ||
- "sum(population) as Population#population" | ||
- filter: clean_data | ||
number: "population" | ||
number_format: .0f | ||
iri_example: | ||
- iri: https://data.humdata.org/dataset/yemen-humanitarian-needs-overview | ||
sheet_index: 1 |
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,19 @@ | ||
|
||
# cd tests/hrecipe | ||
# hdpcli --export-to-hxl-json-processing-specs yemen-01.hrecipe.hdp.yml | ||
--- | ||
- hsilo: | ||
name: yemen-01.hrecipe.hdp.yml | ||
hrecipe: | ||
- id: example-processing-with-a-JSON-spec | ||
recipe: | ||
- filter: count | ||
patterns: "adm1+name,adm1+code" | ||
aggregators: | ||
- "sum(population) as Population#population" | ||
- filter: clean_data | ||
number: "population" | ||
number_format: .0f | ||
iri_example: | ||
- iri: https://data.humdata.org/dataset/yemen-humanitarian-needs-overview | ||
sheet_index: 1 |