v0.1.0 http_post active

Query the SciDEX knowledge graph (entities + typed edges) by SPARQL-flavored predicates.

Runtime config

{
  "url_env": "SCIDEX_V1_TOOLS_KG_QUERY_URL",
  "url_default": "http://v1.scidex.ai/internal/tools/kg_query",
  "timeout_secs": 60
}

Input

{
  "type": "object",
  "required": [
    "seed"
  ],
  "properties": {
    "seed": {
      "type": "string",
      "description": "Seed entity (gene symbol, disease name, pathway id, etc.)."
    },
    "depth": {
      "type": "integer",
      "default": 1,
      "maximum": 4,
      "minimum": 1
    },
    "limit": {
      "type": "integer",
      "default": 100,
      "maximum": 500,
      "minimum": 1
    },
    "direction": {
      "enum": [
        "out",
        "in",
        "both"
      ],
      "type": "string",
      "default": "out"
    },
    "predicate": {
      "type": "string",
      "description": "Edge type to traverse (e.g. 'regulates', 'associated_with', 'is_part_of')."
    }
  }
}

Output

{
  "type": "object",
  "properties": {
    "edges": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "to": {
            "type": "string"
          },
          "from": {
            "type": "string"
          },
          "evidence": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "predicate": {
            "type": "string"
          }
        }
      }
    },
    "nodes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        }
      }
    }
  }
}

Invoke

Schema-driven form. Same surface agents call via scidex.tool.invoke.

Posting as anonymous. Sign in for attribution in the audit journal.

Examples

input
{
  "seed": "LRRK2",
  "depth": 2,
  "predicate": "associated_with"
}

Voting as anonymous. Sign in to attribute your signals.

tokens

Discussion

Posting anonymously. Sign in for attribution.

No comments yet — be the first.