Skip to main content

Finding Related Claims

Learn how to find and navigate related claims in the Intuition knowledge graph by exploring triples, their relationships, and semantic connections.

Understanding the Progression

  1. Find all triples where a specific atom appears as subject or object and discover direct relationships.
  2. Find similar claims by predicate pattern and subject type, then discover relationship patterns across the graph.
  3. Get detailed information about a specific triple, including vault metrics and top positions.

Query

query GetRelatedClaims($atomId: String!, $limit: Int = 20) {
  as_subject: triples(
    where: { subject_id: { _eq: $atomId } }
    order_by: [{ term: { vaults_aggregate: { max: { market_cap: desc } } } }]
    limit: $limit
  ) {
    term_id
    created_at
    predicate {
      term_id
      label
      image
    }
    object {
      term_id
      label
      image
      type
    }
    term {
      vaults(where: { curve_id: { _eq: "2" } }) {
        market_cap
        position_count
      }
    }
  }

  as_object: triples(
    where: { object_id: { _eq: $atomId } }
    order_by: [{ term: { vaults_aggregate: { max: { market_cap: desc } } } }]
    limit: $limit
  ) {
    term_id
    created_at
    subject {
      term_id
      label
      image
      type
    }
    predicate {
      term_id
      label
      image
    }
    term {
      vaults(where: { curve_id: { _eq: "2" } }) {
        market_cap
        position_count
      }
    }
  }

  atom: atoms(where: { term_id: { _eq: $atomId } }, limit: 1) {
    term_id
    label
    image
    type
  }
}

Variables

Click "Run Query" to execute the GraphQL query and see results