knowledge

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CitationEdge

type CitationEdge struct{ Source, Target string }

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 QueryProjectKnowledgeGraph

func QueryProjectKnowledgeGraph(graph ProjectKnowledgeGraph, term string) ProjectKnowledgeGraph

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