Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #451 +/- ##
==========================================
+ Coverage 84.04% 84.84% +0.79%
==========================================
Files 30 30
Lines 4186 4565 +379
==========================================
+ Hits 3518 3873 +355
- Misses 668 692 +24 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| """Load YAML file with keyword definitions. | ||
|
|
||
| Arguments: | ||
| yamlfile: Path of URL to a YAML file to load. | ||
| timeout: Timeout when accessing remote files. |
There was a problem hiding this comment.
This goes into the documentation. Make a link to an example.
| Arguments: | ||
| yamlfile: File to save keyword definitions to. | ||
| keywords: Sequence of keywords to include. | ||
| classes: Include keywords that have these classes in their domain. | ||
| themes: Include keywords for these themes. |
| """Load keywords from a csv file. | ||
|
|
||
| Arguments: | ||
| filename: File to load. | ||
| format: File format. Unused. Only csv is currently supported. | ||
| prefixes: Dict with additional prefixes used by `dicts`. | ||
| theme: Theme defined by `dicts`. | ||
| basedOn: Theme(s) that `dicts` are based on. | ||
| kwargs: Keyword arguments passed on to TableDoc.parse_csv(). |
tripper/datadoc/keywords.py
Outdated
| - list of keywords missing `ts` | ||
| - list of keywords existing `ts` |
There was a problem hiding this comment.
I see there is a typo. Apart from that, what doesn't make sense?
francescalb
left a comment
There was a problem hiding this comment.
Probably fine. Since you write that it is impossible to review I won't do a proper review. Documentation needs to be improved so that people can see examples of inputs.
Tests are failing.
Co-authored-by: Francesca L. Bleken <48128015+francescalb@users.noreply.github.com>
Co-authored-by: Francesca L. Bleken <48128015+francescalb@users.noreply.github.com>
tripper/datadoc/keywords.py
Outdated
| - list of keywords missing `ts` | ||
| - list of keywords existing `ts` |
There was a problem hiding this comment.
I see there is a typo. Apart from that, what doesn't make sense?
Description
Added new functionality to load and save keywords in several different representations. The the Keywords class has now the following set of methods:
load_yaml()|save_yaml(): The original keywords.yaml representation.load_rdf()|save_rdf(): RDF representation, e.g. turtle format.load_table()|save_table(): Tabular representation, e.g. csv format.save_context(): Save as JSON-LD context.save_markdown(): Save as markdown table (for documentation).Especially loading from ontologies and tables makes it much easier to define new keywords (rdf properties).
The PR includes many other bug-fixes and improvements making it almost impossible to review.
Things that could be interesting for a reviewer to look at are: