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 KnowledgeNode ¶
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
Click to show internal directories.
Click to hide internal directories.