knowledge

package
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildKnowledgeGraphReport added in v0.1.10

func BuildKnowledgeGraphReport(graph ProjectKnowledgeGraph) string

func ShortestPathIDs added in v0.1.10

func ShortestPathIDs(graph ProjectKnowledgeGraph, fromID, toID string) ([]string, bool)

Types

type CitationEdge

type CitationEdge struct{ Source, Target string }

type GraphAnalysis added in v0.1.10

type GraphAnalysis struct {
	NodeCount    int
	EdgeCount    int
	CentralNodes []GraphNodeMetric
	Communities  []GraphCommunity
}

func AnalyzeProjectKnowledgeGraph added in v0.1.10

func AnalyzeProjectKnowledgeGraph(graph ProjectKnowledgeGraph) GraphAnalysis

type GraphCommunity added in v0.1.10

type GraphCommunity struct {
	ID      int
	NodeIDs []string
}

type GraphNodeMetric added in v0.1.10

type GraphNodeMetric struct {
	ID               string
	Label            string
	Kind             string
	Degree           int
	DegreeCentrality float64
	Betweenness      float64
}

type KnowledgeEdge

type KnowledgeEdge struct {
	ID     string `json:"id"`
	Source string `json:"source"`
	Target string `json:"target"`
	Kind   string `json:"kind"`
}

type KnowledgeNode

type KnowledgeNode struct {
	ID         string            `json:"id"`
	Kind       string            `json:"kind"`
	Label      string            `json:"label"`
	Properties map[string]string `json:"properties,omitempty"`
}

type ProjectGraphInput

type ProjectGraphInput struct {
	LibraryRecords   []library.PaperRecord
	CitationEdges    []CitationEdge
	ParsedDocuments  []parsing.ParsedDocument
	EvidenceItems    []evidence.EvidenceItem
	ScreeningEvents  []screening.DecisionEvent
	AnalysisRuns     []analysis.AnalysisRun
	ReportTrace      report.CitationEvidenceTraceView
	ProvenanceEvents []provenance.Event
}

type ProjectKnowledgeGraph

type ProjectKnowledgeGraph struct {
	SchemaVersion string          `json:"schemaVersion"`
	Nodes         []KnowledgeNode `json:"nodes"`
	Edges         []KnowledgeEdge `json:"edges"`
}

func BuildProjectKnowledgeGraph

func BuildProjectKnowledgeGraph(input ProjectGraphInput) ProjectKnowledgeGraph

func BuildProjectKnowledgeGraphFromProject

func BuildProjectKnowledgeGraphFromProject(projectPath string) (ProjectKnowledgeGraph, error)

func LoadProjectKnowledgeGraphFromProject added in v0.1.10

func LoadProjectKnowledgeGraphFromProject(projectPath string) (ProjectKnowledgeGraph, error)

func QueryProjectKnowledgeGraph

func QueryProjectKnowledgeGraph(graph ProjectKnowledgeGraph, term string) ProjectKnowledgeGraph

func ReadProjectKnowledgeGraphArtifact added in v0.1.10

func ReadProjectKnowledgeGraphArtifact(projectPath string) (ProjectKnowledgeGraph, error)

func (ProjectKnowledgeGraph) HasEdge

func (g ProjectKnowledgeGraph) HasEdge(source, target, kind string) bool

func (ProjectKnowledgeGraph) HasNode

func (g ProjectKnowledgeGraph) HasNode(id string) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL