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

Introduce a special property to make "negation" of edges more visible in a TRAPI message #407

Open
wants to merge 4 commits into
base: 1.4
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions TranslatorReasonerAPI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,12 @@ components:
$ref: '#/components/schemas/BiolinkPredicate'
minItems: 1
nullable: true
negated:
type: boolean
description: >-
If set to true, then the query seeks assertions that are
explictly negated. i.e. evidence of absence is required, rather
than absence of evidence.
subject:
type: string
example: https://omim.org/entry/603903
Expand Down Expand Up @@ -1056,6 +1062,13 @@ components:
oneOf:
- $ref: '#/components/schemas/BiolinkPredicate'
nullable: false
negated:
type: boolean
description: >-
If set to true, then the assertion is explictly negated with
evidence of absence, rather than absence of evidence.
nullable: false
default: false
subject:
description: >-
Corresponds to the map key CURIE of the
Expand Down Expand Up @@ -1268,6 +1281,16 @@ components:
description: >-
Object node category of this relationship edge.
example: biolink:Protein
can_be_negated:
type: boolean
description: >-
Indicates that this edge can be negated in the data source
presenting the edge. The edge property is different here from the
negated property in the Edge object in order to reuse the same edge
in the meta knowledge graph to represent both positive and negated
edges of this type.
example: false
default: false
knowledge_types:
description: >-
A list of knowledge_types that are supported by the service.
Expand Down