Git Product home page Git Product logo

Comments (7)

cbizon avatar cbizon commented on June 8, 2024

As an example, once graph coalescence has run in the AnswerCoalesce notebook, I do this:
print( graph_result['knowledge_graph']['nodes'])

Most of the nodes are fine, but there are several that are not:

{'id': 'CHEBI:10545', 'type': 'named_thing'}, {'id': 'CHEBI:24431', 'type': 'named_thing'}, {'id': 'CHEBI:25585', 'type': 'named_thing'}, {'id': 'CHEBI:27594', 'type': 'named_thing'}, {'id': 'CHEBI:33250', 'type': 'named_thing'}, {'id': 'CHEBI:33306', 'type': 'named_thing'}, {'id': 'CHEBI:33318', 'type': 'named_thing'}, {'id': 'CHEBI:33560', 'type': 'named_thing'}, {'id': 'CHEBI:22221', 'type': 'named_thing'}, {'id': 'CHEBI:23004', 'type': 'named_thing'}, {'id': 'CHEBI:27207', 'type': 'named_thing'}, {'id': 'CHEBI:37838', 'type': 'named_thing'}, {'id': 'MEDDRA:10013710', 'type': 'named_thing'}, {'id': 'MEDDRA:10029328', 'type': 'named_thing'}, {'id': 'MONDO:0008889', 'type': 'named_thing'}, {'id': 'CHEBI:23019', 'type': 'named_thing'}, {'id': 'CHEBI:33246', 'type': 'named_thing'}, {'id': 'CHEBI:46629', 'type': 'named_thing'}, {'id': 'CHEBI:51422', 'type': 'named_thing'}, {'id': 'CHEBI:51446', 'type': 'named_thing'}, {'id': 'CHEBI:23367', 'type': 'named_thing'}, {'id': 'CHEBI:24835', 'type': 'named_thing'}, {'id': 'CHEBI:29235', 'type': 'named_thing'}, {'id': 'CHEBI:33249', 'type': 'named_thing'}, {'id': 'CHEBI:33559', 'type': 'named_thing'}, {'id': 'CHEBI:37527', 'type': 'named_thing'}, {'id': 'CHEBI:43176', 'type': 'named_thing'}, {'id': 'CHEBI:46883', 'type': 'named_thing'}, {'id': 'CHEBI:51447', 'type': 'named_thing'}, {'id': 'CHEBI:24433', 'type': 'named_thing'}, {'id': 'CHEBI:24473', 'type': 'named_thing'}, {'id': 'CHEBI:29311', 'type': 'named_thing'}, {'id': 'CHEBI:25555', 'type': 'named_thing'}, {'id': 'CHEBI:33300', 'type': 'named_thing'}, {'id': 'CHEBI:25805', 'type': 'named_thing'}, {'id': 'CHEBI:33247', 'type': 'named_thing'}, {'id': 'CHEBI:26833', 'type': 'named_thing'}

I put some of the chebis into node normalization and they came back fine. This might be a version problem though. Perhaps these didn't get properly normalized in the robokop grpah or some derivative that the service is using?

from answercoalesce.

PhillipsOwen avatar PhillipsOwen commented on June 8, 2024

are we talking a redo of the entire DB or just a targeted normalization sweep of the insufficient ones?

from answercoalesce.

cbizon avatar cbizon commented on June 8, 2024

First, we need to understand why this is happening, then we can make a decision on how to fix it. In other words, I can't answer your question, because I don't know what/where the problem actually is.

from answercoalesce.

PhillipsOwen avatar PhillipsOwen commented on June 8, 2024

do you know when this was loaded? perhaps there is an old graph backup we can restore to verify.

from answercoalesce.

cbizon avatar cbizon commented on June 8, 2024

Sorry, I don't know what you're referring to. There are at least 3 databases in play - the robokop graph, the sqlite dbs, and the redis backing nodenormalization. I don't know which, if any, are the reason for the bug.

The first thing to do, I think, is write a simple test verifying the behavior.

from answercoalesce.

cbizon avatar cbizon commented on June 8, 2024

This is also true of the ontology version.

from answercoalesce.

cbizon avatar cbizon commented on June 8, 2024

I think that the right idea here is to use node normalization on our output graphs before sending them back. We will soon have a TRAPI nodenorm interface which will simplify this, so once that's done, we'll implement.

from answercoalesce.

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.