Documentation
¶
Index ¶
- func BuildKnowledgeGraphReport(graph ProjectKnowledgeGraph) string
- func ShortestPathIDs(graph ProjectKnowledgeGraph, fromID, toID string) ([]string, bool)
- type CitationEdge
- type GraphAnalysis
- type GraphCommunity
- type GraphNodeMetric
- type KnowledgeEdge
- type KnowledgeNode
- type ProjectGraphInput
- type ProjectKnowledgeGraph
- func BuildProjectKnowledgeGraph(input ProjectGraphInput) ProjectKnowledgeGraph
- func BuildProjectKnowledgeGraphFromProject(projectPath string) (ProjectKnowledgeGraph, error)
- func LoadProjectKnowledgeGraphFromProject(projectPath string) (ProjectKnowledgeGraph, error)
- func QueryProjectKnowledgeGraph(graph ProjectKnowledgeGraph, term string) ProjectKnowledgeGraph
- func ReadProjectKnowledgeGraphArtifact(projectPath string) (ProjectKnowledgeGraph, error)
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 GraphNodeMetric ¶ added in v0.1.10
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 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
Click to show internal directories.
Click to hide internal directories.