-
Notifications
You must be signed in to change notification settings - Fork 11
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
phase 1: add qualifier info from x-bte operations to /meta_knowledge_graph
responses
#595
Comments
Update notes: opening post was last updated 4/4 evening
|
/meta_knowledge_graph
responses
/meta_knowledge_graph
responses /meta_knowledge_graph
responses
Note: I wasn't sure what to do with the operations from |
@rjawesome That's a question for @tokebe.... |
And regarding
We may ask the TRAPI team for guidance (and they may change the spec)... The squashing of qualifier-sets introduces ambiguity for those who ingest this infoI explain more in the "keep in mind" note of #597 (comment), copied below
And the example TRAPI-MetaEdge given is confusing because it includes the |
I have asked the TRAPI team about the "potential complications" in my opening post and post above (internal Translator Slack link). We haven't gotten a response yet. I've advised Jackson: if the current PR code turns each unique operation (based on subject-type / predicate / qualifier-set / object-type) into a TRAPI-MetaEdge, I'm fine with that for now even though it doesn't meet the requirements in the opening post. We're waiting for their response... |
@rjawesome's implementation looks good so far, based on conversation in the Translator Slack I'm going to wait until after the Architecture meeting to give any additional feedback -- It's looking like we might need to have qualifier set merging. |
Copying over the questions we've posed in Slack My initial ask: has 3 questionsQ1: What does it mean for a MetaEdge to be considered "unique"? And in the
Q2: We have feedback, which is that the MetaQualifiers spec introduces ambiguities for us because it doesn't specify the exact qualifier-sets in the edge data. If we (as an ARA) get the MetaEdge in the attached file from a TRAPI KP...
Q3: we're confused by the example JSON because Jackson's restating of Q2To summarize:
Our questions:
Colleen's restating of Q1 (removed from Slack)I think Q1 gets at more fundamental expectations, so I'd like to know if it has concrete answers or if it still needs discussion. I'll try restating Q1:
And with TRAPI 1.4, 1 S-P-O combo may also have variety in...
|
Other references:
|
@rjawesome It looks like the consortium requires that edges are not unique by qualifiers -- in other words, if subject-predicate-object are the same, merge all the qualifiers. |
I believe that was done already in the last couple commits on the bte pr |
Sorry, you're right. |
Now (after deploying TRAPI 1.4.0 code to ITRB prod): based on a quick look at Closing this issue. |
From bullet 4 of the changelog:
With TRAPI 1.4, tools can specify qualifiers in their
/meta_knowledge_graph
endpoint responses (edges
section). We'll want to use this format to advertise the qualifier info in some of our x-bte operations. This applies to all 3 kinds of/meta_knowledge_graph
endpoints: the api-specific (v1/smartapi
), team-specific (v1/team
) and general-ARA (v1
)example of expected output
BTE should take the DGIdb x-bte operations listed below (yaml here) and create something like this in in the
/meta_knowledge_graph
output (v1/smartapi
for dgidb,v1/team
for Service Provider, andv1
):Other notes:
/meta_knowledge_graph
endpoints and qualifier info: here and replysubject
-node-category /predicate
/object
-node-category (meta-triple)? Or can there be multiple MetaEdges with the same "meta-triple" that represent different qualifier sets (individual x-bte operations)?The text was updated successfully, but these errors were encountered: