Skip to content

Knowledge Graph Comparison Features#1

Open
tekrajchhetri wants to merge 25 commits intomainfrom
dev
Open

Knowledge Graph Comparison Features#1
tekrajchhetri wants to merge 25 commits intomainfrom
dev

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.

@tekrajchhetri tekrajchhetri requested review from aaronkanzer and removed request for aaronkanzer February 18, 2025 16:24
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