Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KGCL prototype library and webapp #9

Merged
merged 28 commits into from
Aug 2, 2021

Conversation

ckindermann
Copy link
Collaborator

@ckindermann ckindermann commented Jul 17, 2021

This is just a bare-bones Flask application that shows how I instantiate classes in the KGCL data model for testing purposes.

https://kgcl.ontodev.com/

@jamesaoverton jamesaoverton changed the title Initialise web app KGCL prototype library and webapp Jul 29, 2021
parser/parser.py Outdated
command = tree.data
#print("Command: " + command)

if(command == "rename"):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: can we write this as more idiomatic python. @jamesaoverton do you have a preferred linter - flake8, black, ..?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flake8 and black are good for different things, so Knocean usually uses both. @ckindermann please follow https://github.com/knocean/practises/tree/master/python#style and ask me if you have any questions.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jamesaoverton will do!

parser/parser.py Outdated
if(replacement_id_list):
t = next(replacement_id)
replacement_token = next(get_tokens(t))
return python.kgcl.NodeObsoletion(id=id, about_node=label_token, has_direct_replacement=replacement_token)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: we should fix imports, should be either

from kgcl import NodeObsoletion, ...

...

return NodeObsoletion(...

or perhaps

import kgcl
...

return kgcl.NodeObsoletion(...

@ckindermann ckindermann marked this pull request as ready for review July 29, 2021 19:11
@jamesaoverton jamesaoverton merged commit 7c63429 into INCATools:master Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants