-
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.
SciDataLib-79 Code does not recognize ontological value
reworked the code to implement this (but not yet at all levels) - updated __addid - added __chkont function to update the key of name/value pair with trailing '#' if not already present - updated examples
- Loading branch information
Showing
4 changed files
with
110 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
""" testing functions """ | ||
from scidatalib.scidata import SciData | ||
import json | ||
|
||
|
||
def scidata_nums(): | ||
uid = 'ids' | ||
testy = SciData(uid) | ||
# add discipline and subdiscipline data | ||
src = { | ||
'citation': 'Example SciData JSON-LD file, Chalk Research Group', | ||
'url': 'https://stuchalk.github.io/scidata/examples/ph_min.jsonld', | ||
'stype': 'dataset', | ||
'otype#': 'sdo:dataset' | ||
} | ||
testy.sources([src]) | ||
print(json.dumps(testy.output, indent=4, ensure_ascii=False)) | ||
|
||
|
||
scidata_nums() |
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