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

setting node ontologies #41

Open
johneisai opened this issue Jun 13, 2023 · 2 comments
Open

setting node ontologies #41

johneisai opened this issue Jun 13, 2023 · 2 comments

Comments

@johneisai
Copy link

Hi,

I see references to node ontologies and predicted node ontologies in the code, and as a result of GraphVisualizer.fit_and_plot_all. Is there a way to set ontological categories or other node attributes after reading in a graph so they'd show up when plot_node_ontologies is called, or something similar? If these are predicted, how is that done?

Thanks! Hope it's not too obvious a question to answer.

@LucaCappelletti94
Copy link
Member

Hi! They are obtained from an extensive set of heuristics I wrote based primarily on the curie prefixes. They have primarily two goals:

  1. Making it possible to provide URLs in the graph report that link to the source of the nodes.
  2. Showing in the graph visualization whether the separation observed in eventual node types is just a proxy of the topological separation of the ontologies. If the node types are well separated solely because the ontologies are well separated, likely you don't have the KG you would hope for.

The ontologies are derived from the curie node names. If you want the ontologies to be shown in the visualizations/report, standardize your node names using the curie name of the source ontologies.

@johneisai
Copy link
Author

johneisai commented Jun 14, 2023 via email

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

No branches or pull requests

2 participants