humanbrainproject / openminds_generator Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
@type
requirement for embedded schemas is missing in the json-schemasI've noted that there is a _deprecated property appearing in the JSON-Schema.
This seems to be build incorrectly, since it seems to be set to True for currently in use schemas...
@olinux we should have a closer look again at the target JSON-Schemas
First @olinux thanks for setting up the HTMLs for the documentation so quickly ๐
I had now the time to go over the layout and wrote down some feedback:
What do you think? Are these good ideas? Are they feasible?
Only syntax error, just wanted to give you a headsup. Example on the github pages lists v2.0.0.
Error report:
File "C:\Users\eier\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 2, in
mycollection = helper.create_collection()
File "C:\Users\eier\Anaconda3\lib\site-packages\openMINDS_init_.py", line 41, in create_collection
signature, func = openMINDS.MetaSchemaCollection.build_generator(self.core.schemas[schema])
File "C:\Users\eier\Anaconda3\lib\site-packages\openMINDS\MetaSchemaCollection.py", line 73, in build_generator
d = {}
File "", line 1
def core_v2.0.0_affiliation(self, organization, ):
^
SyntaxError: invalid syntax
It seems that the pipeline is not extending the schemas properly in the cases where the concept schema is located in a different openMINDS repo.
Example:
https://github.com/HumanBrainProject/openMINDS_core/blob/v4/schemas/products/device.schema.tpl.json
-> this is the concept schema for all devices, but the Electrode (device) schema:
https://github.com/HumanBrainProject/openMINDS/blob/documentation/v3/ephys/v1/device/electrode.schema.json
-> does not actually extend the core/device concept schema as it should according to the syntax definitions:
https://github.com/HumanBrainProject/openMINDS_ephys/blob/v1/schemas/device/electrode.schema.tpl.json
@olinux @skoehnen @apdavison Did we miss anything? is this a version reference issue?
For openMINDS users that have no or only very little programming experience it would be beneficial to provide spreadsheet templates for the openMINDS schemas as it was done before for MINDS.
Before we implement something like this I would like to discuss, though, if would like to stick to the same format as we did before (all instances in one huge spreadsheet table) or if we would like to handle openMINDS spreadsheets the same way as we handle the openMINDS JSON-LDs (each instance is getting it's own spreadsheet/table).
What do you think?
Besides "_linkedCategories", we need to add "_embeddedCategories" into the pipeline for complementing schemas. @olinux / @apdavison could you have a look at this?
On save set:
https://openminds.ebrains.eu/<schema-name>
https://localhost/<schema-name>/<random-id>
As it is easily done with core schemas through the command mycollection.add_core_protocol
for example, I am missing the functionality to do the same with controlledTerms schemas, something such as mycollection.add_controlledTerms_species
. There are some core schemas that require as argument a controlledTerms schema.
Going through the vocab (properties.json) I realized some weird things in the vocab extraction:
"deprecated": true
but it should have been false"deprecated": "description of the property"
+ "description": null
I will have a look at the script and see if I can find where such errors may occur from.
If I find something I'll provide more details.
The code:
import openMINDS
import openMINDS.version_manager
openMINDS.version_manager.init()
The error:
Target directory will created
Cloning openMINDS to target directory
Traceback (most recent call last):
File "test.py", line 38, in <module>
main()
File "test.py", line 9, in main
openMINDS.version_manager.init()
File "/home/maciek/anaconda3/lib/python3.7/site-packages/openMINDS/version_manager.py", line 116, in init
update_openMINDS(target_dir)
File "/home/maciek/anaconda3/lib/python3.7/site-packages/openMINDS/version_manager.py", line 48, in update_openMINDS
repo = git.Repo.clone_from(REPO_URL, target_directory, branch='documentation')
File "/home/maciek/anaconda3/lib/python3.7/site-packages/git/repo/base.py", line 1148, in clone_from
return cls._clone(git, url, to_path, GitCmdObjectDB, progress, multi_options, **kwargs)
File "/home/maciek/anaconda3/lib/python3.7/site-packages/git/repo/base.py", line 1086, in _clone
finalize_process(proc, stderr=stderr)
File "/home/maciek/anaconda3/lib/python3.7/site-packages/git/util.py", line 386, in finalize_process
proc.wait(**kwargs)
File "/home/maciek/anaconda3/lib/python3.7/site-packages/git/cmd.py", line 501, in wait
raise GitCommandError(remove_password_if_present(self.args), status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git clone -v --branch=documentation https://github.com/HumanBrainProject/openMINDS/ /home/maciek/.openMINDS_python
stderr: 'Cloning into '/home/maciek/.openMINDS_python'...
POST git-upload-pack (477 bytes)
error: RPC failed; curl 16 Error in the HTTP2 framing layer
fatal: the remote end hung up unexpectedly
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.