Pharma intelligence

Competitive intelligence for a biotech program: the compounds, trials and deals around it, the program's own assumptions, and which signals contradict them.

Graph ID
pharma
Sample data
Viking Therapeutics' obesity program, from public sources · 113 nodes, 200 edges
Schema
15 node types · 38 edge types
Stored queries
70 reads · 35 writes
Updated
Nov 17, 2026

[Ontology]

Drag types to rearrange · pinch or ⌘-scroll to zoom

All 15 types as a list
  • Compound12 in sample

    slug · name · generic_name · brief · description · modality · phase · indication · moa_summary · route · first_in_human · createdAt · updatedAt

    TargetsMechanism → Mechanism · DevelopedByCompany → Company

  • Mechanism6 in sample

    slug · name · brief · description · target · pathway · validation · createdAt · updatedAt

  • Trial8 in sample

    slug · name · nct_id · phase · status · design · primary_endpoint · enrollment · readout_date · brief · createdAt · updatedAt

    InvestigatesCompound → Compound · SponsoredByCompany → Company

  • Company13 in sample

    slug · name · brief · ticker · type · hq · site

  • Deal3 in sample

    slug · name · type · brief · value_usd_m · upfront_usd_m · announced_date · createdAt · updatedAt

    DealLeadParty → Company · DealCounterParty → Company

  • RegulatoryAction4 in sample

    slug · name · agency · type · brief · description · action_date · createdAt · updatedAt

    TargetsCompound → Compound · TargetsMechanismReg → Mechanism

  • Signal18 in sample

    slug · name · brief · description · domain · stagingTimestamp · createdAt · updatedAt

    FormsPattern → Pattern · ContradictsPattern → Pattern · AboutCompound → Compound · AboutMechanism → Mechanism · AboutTrial → Trial · AboutRegulatoryAction → RegulatoryAction · AboutDeal → Deal · RelevantCompany → Company · SupportsAssumption → Assumption · ContradictsAssumption → Assumption · InformsQuestion → OpenQuestion · SpottedInArtifact → InformationArtifact · SourcedFromSource → SourceEntity

  • Pattern4 in sample

    slug · name · kind · brief · description · evolution · createdAt · updatedAt

    DrivesPattern → Pattern · ContradictsToPattern → Pattern

  • Insight3 in sample

    slug · name · brief · description · importance · createdAt · updatedAt

    HighlightsPattern → Pattern · ReliesOnCompound → Compound · ReliesOnMechanism → Mechanism

  • SourceEntity11 in sample

    slug · name · type · url

  • InformationArtifact18 in sample

    slug · name · artifactType · link · stagingTimestamp · createdAt · updatedAt

    PublishedBySource → SourceEntity

  • Program2 in sample

    slug · name · brief · description · phase · indication · createdAt · updatedAt

    ProgramDevelopsCompound → Compound · ProgramTargetsMechanism → Mechanism · ProgramOwnedByCompany → Company · ProgramCompetesInMechanism → Mechanism · ProgramDependsOnAssumption → Assumption

  • Assumption5 in sample

    slug · name · brief · statement · level · established_date · source_url · createdAt · updatedAt

  • Decision2 in sample

    slug · name · brief · description · decision_date · status · decider · outcome · createdAt · updatedAt

    DecisionRegardingProgram → Program · DecisionNeedsAnswer → OpenQuestion · DecisionBasedOnAssumption → Assumption

  • OpenQuestion4 in sample

    slug · name · brief · description · status · asked_by · createdAt · updatedAt

    QuestionRegardingProgram → Program · QuestionRegardingMechanism → Mechanism · QuestionRegardingCompound → Compound

[Questions it answers]

Each one is a stored query in the cookbook, written once and run by name from the CLI, the SDKs or an agent.

assumption_contradicting_signals

Which signals contradict an assumption the program relies on?

Show the query +
query assumption_contradicting_signals($slug: String) {
    match {
        $a: Assumption { slug: $slug }
        $s contradictsAssumption $a
    }
    return { $s.slug, $s.name, $s.brief, $s.stagingTimestamp }
    order { $s.stagingTimestamp desc }
}

decisions_upcoming

Which decisions are coming up?

Show the query +
query decisions_upcoming() {
    match {
        $d: Decision { status: "upcoming" }
    }
    return { $d.slug, $d.name, $d.decision_date, $d.decider, $d.brief }
    order { $d.decision_date }
}

program_competitors

Which compounds compete with the program?

Show the query +
query program_competitors($slug: String) {
    match {
        $p: Program { slug: $slug }
        $p programCompetesInMechanism $m
        $c targetsMechanism $m
    }
    return { $c.slug, $c.name, $c.phase, $c.route, $c.moa_summary }
    order { $c.phase }
}

compounds_by_mechanism

Which compounds target a mechanism?

Show the query +
query compounds_by_mechanism($mechanism: String) {
    match {
        $m: Mechanism { slug: $mechanism }
        $c targetsMechanism $m
    }
    return { $c.slug, $c.name, $c.phase, $c.route, $c.moa_summary }
    order { $c.phase }
}

[105 stored queries]

Reads answer questions; writes are the typed mutations agents and people use to change the graph, each one commit.

queries/compounds.gq12 queries+
  • get_compound
  • compounds_all
  • compounds_by_phase
  • compounds_by_mechanism
  • compound_sponsor
  • compound_trials
  • compound_signals
  • get_mechanism
  • mechanisms_all
  • mechanism_compounds
  • mechanism_signals
  • mechanism_signals_via_compoundAll signals about ANY compound targeting this mechanism — wider rollup than aboutMechanism alone.
queries/mutations.gq35 queries+
  • add_compoundwrite
  • add_mechanismwrite
  • add_trialwrite
  • add_companywrite
  • add_dealwrite
  • add_regulatorywrite
  • add_signalwrite
  • add_patternwrite
  • add_insightwrite
  • add_sourcewrite
  • add_artifactwrite
  • add_programwrite
  • add_assumptionwrite
  • add_decisionwrite
  • add_questionwrite
  • link_forms_patternwrite
  • link_contradicts_patternwrite
  • link_highlights_patternwrite
  • link_drives_patternwrite
  • link_about_compoundwrite
  • link_about_mechanismwrite
  • link_about_trialwrite
  • link_relevant_companywrite
  • link_compound_mechanismwrite
  • link_compound_companywrite
  • link_trial_compoundwrite
  • link_signal_supports_assumptionwrite
  • link_signal_contradicts_assumptionwrite
  • link_signal_informs_questionwrite
  • link_program_assumptionwrite
  • link_decision_programwrite
  • link_decision_questionwrite
  • link_decision_assumptionwrite
  • link_artifact_sourcewrite
  • link_signal_artifactwrite
queries/patterns.gq8 queries+
  • get_pattern
  • patterns_all
  • patterns_by_kind
  • pattern_signals
  • pattern_contradictions
  • pattern_drives
  • pattern_contradicts_patterns
  • pattern_insights
queries/pipeline.gq14 queries+
  • get_trial
  • trials_by_status
  • trial_sponsor
  • get_deal
  • deals_all
  • deal_parties
  • get_regulatory
  • regulatory_recent
  • regulatory_compound
  • get_company
  • company_compounds
  • get_insight
  • insights_all
  • insight_patterns
queries/programs.gq22 queries+
  • get_program
  • programs_all
  • program_compound
  • program_mechanism
  • program_assumptions
  • program_decisions
  • program_competitors
  • program_signalsSignals about the program's compound — "what just happened on my asset".
  • program_landscape_signalsSignals about ANY compound targeting the program's mechanism — competitive landscape feed.
  • get_assumption
  • assumptions_all
  • assumption_supporting_signals
  • assumption_contradicting_signals
  • get_decision
  • decisions_upcoming
  • decisions_all
  • decision_program
  • decision_questions
  • decision_assumptions
  • get_question
  • questions_open
  • question_signals
queries/signals.gq14 queries+
  • get_signal
  • recent_signals
  • search_signals
  • signals_by_domain
  • signal_patterns
  • signal_contradictions
  • signal_compound
  • signal_mechanism
  • signal_trial
  • signal_companies
  • signal_supports_assumptions
  • signal_contradicts_assumptions
  • signal_informs_questions
  • signal_artifacts

[Run it with your agent]

Paste this into a coding agent. It installs Omnigraph if it has to, creates the graph from this cookbook, loads the sample data and runs the queries above.

Paste into
  • Claude Code
  • Codex
  • Antigravity

Read https://www.omnigraph.dev/onboarding.md and set up Omnigraph for me with the Pharma intelligence cookbook: https://github.com/ModernRelay/omnigraph-cookbooks/tree/main/pharma-intel

[More use cases]