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

Knowledge Graph Comparison Features #1

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open

Knowledge Graph Comparison Features #1

wants to merge 25 commits into from

Conversation

tekrajchhetri
Copy link
Collaborator

@tekrajchhetri tekrajchhetri commented Feb 7, 2025

Pull Request: Add Knowledge Graph Comparison Features

Major Features Added

  1. Compare Two KG Files – Allows users to compare two Knowledge Graph (KG) files.
  2. Compare Two KG String Inputs – Enables direct comparison of two KG representations provided as strings.
  3. Compare KGs in a File – Supports comparing multiple KGs stored within a single file.

Output

  • Returns the comparison results as a dictionary.

Additional Resources

  • An example Jupyter notebook demonstrating usage is available in the example directory.

Note

I am not using github actions atm.

]
```

### 2️⃣ Compare Two Knowledge Graph Files

Choose a reason for hiding this comment

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

how specific to "KG" such comparison would be? or could also be applied to PROV graphs?

Thinking of https://github.com/bids-standard/BEP028_BIDSprov/ and their slightly assisted rendering of graphs into pretty images like https://github.com/bids-standard/BEP028_BIDSprov/tree/master/examples/clinica_pipelines . I think it might have been sensible in some cases to provide "Comparison diff" rendering where common nodes would remain gray, added - green, removed - red, and modified - some yet another color ;-)

I wish something like https://ontopea.com/ (random search find) was opensource to tune up for above

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@yarikoptic Thanks for the pointer. I checked (https://github.com/bids-standard/BEP028_BIDSprov/tree/master/examples/clinica_pipelines) graph. I can definitely highlight the changes with color when I integrate it with the UI. I will also have a look at those other links in detail.

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.

2 participants