openownership / bodskit Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://bodskit.readthedocs.io/en/master/
License: BSD 3-Clause "New" or "Revised" License
Home Page: https://bodskit.readthedocs.io/en/master/
License: BSD 3-Clause "New" or "Revised" License
Range should indicate the number of values required by a field.
For example, looking at person-statement.json, when the mapping-sheet command is used one would expect that - of the top level fields - only statementID and statementType would have range 1..1 (i.e. a single value is required). But optional like birthDate and deathDate are also given a range of 1..1 .
(Requirements-wise, could we please indicate sub-property ranges with brackets around the range value. So, for example we would end up with:
,identifiers,Identifiers,"One or more official identifiers for this perrson. Where available, official registration numbers should be provided.",array,0..n,,,,
,identifiers,Identifier,An identifier that has been assigned to this entity. The scheme or list from which the identifier is drawn should be declared.,object,,,,,
identifiers,identifiers/id,ID,The identifier for this entity as provided in the declared scheme.,string,(0..1),,,,
identifiers,identifiers/scheme,Scheme,"For entity statements, the scheme should be a entry from the org-id.guide codelist. For person statements, recognised values include 'passport', 'internal' and 'id-card'.",string,(0..1),,http://www.org-id.guide,,
identifiers,identifiers/schemeName,Scheme name,,string,(0..1),,,,
identifiers,identifiers/uri,URI,Where this identifier has a canonical URI this may be included,string,(0..1),uri,https://en.wikipedia.org/wiki/Uniform_Resource_Identifier,,
)
I noticed there were only about six lines different, so I merged those changes into the next version of OCDS Kit, while making changes to support OC4IDS. The command also works with SEDL. We can try to just update one bit of code instead of copying repositories.
(Note: You need to use --order-by path
and --infer-required
to get the same output as the test fixture. Drop --infer-required
to fix #9.)
Similarly, ocdskit schema-report now also supports BODS with only stylistic changes in output, which can easily be changed if needed.
pip install csvkit
cd path/to/data-standard
csvstack --filenames -n codelist schema/codelists/* | sed s/\.csv// | in2csv -f csv
Produces the same file.
Note: | sed s/\.csv//
removes the .csv
extension from the first column. | in2csv -f csv
ensures all rows have the same number of columns. Neither is strictly necessary for the use case.
FYI, IATIKit links back to OCDSKit https://github.com/pwyf/iatikit
Would be good to have a bit of detail in the docs about the meaning of command outputs where it might not be obvious. For example on the mapping-sheet page, explain what each of the columns in the outputted CSV represents:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.