action monarchinitiative_get_edge_resource { label: "Returns edges emanating from a given node" provider: monarchinitiative method: GET path: "/graph/edges/from/{id}" encoding: json input: { type: "object" properties: { depth: { type: "integer" } direction: { type: "string" enum: ["INCOMING", "OUTGOING", "BOTH"] } entail: { type: "boolean" } graph: { type: "string" enum: ["data", "ontology"] } relationship_type: { type: "array" items: { type: "string" } } } additionalProperties: false } output: { type: "array" items: { type: "object" properties: { edges: { type: "array" description: "All edges in graph" items: { type: "object" properties: { meta: { type: "object" description: "metadata about the Edge" } obj: { type: "string" description: "Object (target) Node ID" } pred: { type: "string" description: "Predicate (relation) ID" } sub: { type: "string" description: "Subject (source) Node ID" } } } } nodes: { type: "array" description: "All nodes in graph" items: { type: "object" required: ["id"] properties: { id: { type: "string" description: "ID or CURIE e.g. MGI:1201606" } label: { type: "string" description: "RDFS Label" } } } } } } } }