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

Incorrect types #410

Open
cbizon opened this issue Jun 22, 2023 · 7 comments
Open

Incorrect types #410

cbizon opened this issue Jun 22, 2023 · 7 comments

Comments

@cbizon
Copy link
Contributor

cbizon commented Jun 22, 2023

Query:

{
  "edges": {
    "e00": {
      "object": "n01",
      "subject": "n00"
    }
  },
  "nodes": {
    "n00": {
      "constraints": [],
      "ids": [
        "PUBCHEM.COMPOUND:73441863"
      ],
    },
    "n01": {
      "constraints": [],
      "ids": [
        "UniProtKB:P49768"
      ],
    }
  }
}

Is returning a single edge from service provider. But the type on one of the nodes is just biolink:BiologicalEntity. It should have all of the super/subclasses including biolink:Gene. This produces TRAPI validation errors.

@maximusunc
Copy link
Collaborator

Could you provide the full original query please?

@cbizon
Copy link
Contributor Author

cbizon commented Jun 26, 2023

It's just what's above (with a "message": "query_graph": {} around it). Not a creative query or anything.

@maximusunc
Copy link
Collaborator

The edge doesn't have a predicate, so I was confused.

@cbizon
Copy link
Contributor Author

cbizon commented Jun 26, 2023

Yeah, I was trying to see what relationships existed between the two entities. It could also have a "biolink:related_to"

@maximusunc
Copy link
Collaborator

So Strider doesn't manipulate the categories. We use NodeNorm to find the preferred curie, but we don't do anything with the categories of the nodes. I think this goes back to Patrick era, but I think I remember this being a decision we made. I would say this is an issue for Service Provider.

@maximusunc
Copy link
Collaborator

I reran this today, and it looks like both Service Provider and Molepro respond with a single node category, and then Robokop and binding-db automats return the same edge but with all the category hierarchy. Strider then merges and returns the full category hierarchy. @cbizon what do you think? Should we open issues on those two KPs, or should we be replacing the categories with what we get from NN?

@cbizon
Copy link
Contributor Author

cbizon commented Sep 2, 2024

My opinion is that we should use the categories from NN. The one possibility that this creates is if a KP disagrees with NN about a category. So we ask for Chemical and they return X and we send NN to X and NN says it's a Gene, not a Chemical. Then what do we do? My opinion there is that we drop X.

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