GithubHelp home page GithubHelp logo

generate edge ids? about kgx HOT 3 CLOSED

biolink avatar biolink commented on August 16, 2024
generate edge ids?

from kgx.

Comments (3)

deepakunni3 avatar deepakunni3 commented on August 16, 2024

Would it make sense to just generate a UUID for every edge added into the networkx MultiDiGraph?

I did play around with assigning unique edge IDs, when not available, in NeoTransformer. Not sure if there is more to the specification.

from kgx.

deepakunni3 avatar deepakunni3 commented on August 16, 2024

Currently KGX has edge IDs via a key of subject-predicate-object. Of course this is less than ideal.

The most accommodating would be to have a UUID for each edge. The disadvantage here is that there will be no merging of edges since each edge is treated as unique. Perhaps this is not a problem at all.

from kgx.

deepakunni3 avatar deepakunni3 commented on August 16, 2024

IDs for edges can be seen as serving two purposes:

  • uniquely locating an edge
  • merging edges between graphs

We now generate UUIDs for edges. Addressed as part of #214

But we still merge edges based on a criteria of SPO. This criteria can be made configurable in future iterations.

from kgx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.