Documentation
¶
Index ¶
- func AccessibleGraphMarkdown(view AccessibleGraphView) string
- func GraphReportMarkdown(report GraphReport) string
- type AccessibleDomainTopicRow
- type AccessibleEdgeRow
- type AccessibleGraphOptions
- type AccessibleGraphView
- type AccessibleNodeRow
- type BibliographicCouplingPair
- type BibliographyEdge
- type BibliographyImportReport
- type CitationGraphLink
- type CitationSpanLink
- type CoCitationCluster
- type Degree
- type DomainMapArtifact
- type DomainMapModelSettings
- type DomainMapOptions
- type DomainTopic
- type EvidenceLink
- type Graph
- func (g *Graph) AddCitation(citingPaperID, referencedPaperID string)
- func (g *Graph) Backward(paperID string) []string
- func (g *Graph) BibliographicCoupling() []BibliographicCouplingPair
- func (g *Graph) CoCitationClusters() []CoCitationCluster
- func (g *Graph) ExportJSON() ([]byte, error)
- func (g *Graph) Forward(paperID string) []string
- type GraphAccessibleSummary
- type GraphReport
- type RepresentativePaper
- type RepresentativePassage
- type ResearchLineageViewModel
- type TopicHistoryEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessibleGraphMarkdown ¶
func AccessibleGraphMarkdown(view AccessibleGraphView) string
func GraphReportMarkdown ¶
func GraphReportMarkdown(report GraphReport) string
GraphReportMarkdown renders a citation graph report as Markdown.
Types ¶
type AccessibleEdgeRow ¶
type AccessibleGraphOptions ¶
type AccessibleGraphOptions struct {
Filter string
}
type AccessibleGraphView ¶
type AccessibleGraphView struct {
SchemaVersion string `json:"schemaVersion"`
Filter string `json:"filter,omitempty"`
Summary GraphAccessibleSummary `json:"summary"`
Report GraphReport `json:"report"`
NodeRows []AccessibleNodeRow `json:"nodeRows"`
EdgeRows []AccessibleEdgeRow `json:"edgeRows"`
DomainTopicRows []AccessibleDomainTopicRow `json:"domainTopicRows,omitempty"`
}
func BuildAccessibleGraphView ¶
func BuildAccessibleGraphView(graphData []byte, domain DomainMapArtifact, opts AccessibleGraphOptions) (AccessibleGraphView, error)
type AccessibleNodeRow ¶
type BibliographicCouplingPair ¶
BibliographicCouplingPair groups papers sharing a reference.
type BibliographyEdge ¶
type BibliographyImportReport ¶
type BibliographyImportReport struct {
SchemaVersion string `json:"schemaVersion"`
PaperID string `json:"paperId,omitempty"`
DocumentReports []BibliographyImportReport `json:"documentReports,omitempty"`
EdgeCount int `json:"edgeCount"`
Edges []BibliographyEdge `json:"edges"`
CitationSpanLinks []CitationSpanLink `json:"citationSpanLinks"`
EvidenceLinks []EvidenceLink `json:"evidenceLinks"`
Graph *Graph `json:"-"`
}
func ImportParsedBibliographies ¶
func ImportParsedBibliographies(docs []parsing.ParsedDocument, items []evidence.EvidenceItem) BibliographyImportReport
func ImportParsedBibliography ¶
func ImportParsedBibliography(doc parsing.ParsedDocument, items []evidence.EvidenceItem) BibliographyImportReport
type CitationGraphLink ¶
type CitationSpanLink ¶
type CoCitationCluster ¶
CoCitationCluster groups papers citing the same reference.
type DomainMapArtifact ¶
type DomainMapArtifact struct {
SchemaVersion string `json:"schemaVersion"`
QuerySetChecksum string `json:"querySetChecksum"`
ModelSettings DomainMapModelSettings `json:"modelSettings"`
Topics []DomainTopic `json:"topics"`
MergeSplitHistory []TopicHistoryEvent `json:"mergeSplitHistory,omitempty"`
}
func BuildDomainMapArtifact ¶
func BuildDomainMapArtifact(docs []parsing.ParsedDocument, graphData []byte, opts DomainMapOptions) (DomainMapArtifact, error)
type DomainMapModelSettings ¶
type DomainMapOptions ¶
type DomainMapOptions struct {
ReviewerLabels map[string]string
MergeSplitHistory []TopicHistoryEvent
ModelSettings DomainMapModelSettings
}
type DomainTopic ¶
type DomainTopic struct {
TopicID string `json:"topicId"`
Label string `json:"label"`
ReviewerEditedLabel bool `json:"reviewerEditedLabel"`
RepresentativePapers []RepresentativePaper `json:"representativePapers"`
RepresentativePassages []RepresentativePassage `json:"representativePassages"`
CitationGraphLinks []CitationGraphLink `json:"citationGraphLinks,omitempty"`
}
type EvidenceLink ¶
type EvidenceLink struct {
PaperID string `json:"paperId"`
EvidenceIndex int `json:"evidenceIndex"`
EvidenceSupportRef string `json:"evidenceSupportRef"`
CitationSpanID string `json:"citationSpanId"`
CitationTargetID string `json:"citationTargetId"`
CitationReferenceID int `json:"citationReferenceIndex"`
}
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
Graph stores citation relationships as citing paper -> referenced paper.
func (*Graph) AddCitation ¶
AddCitation records that citingPaperID cites referencedPaperID.
func (*Graph) BibliographicCoupling ¶
func (g *Graph) BibliographicCoupling() []BibliographicCouplingPair
BibliographicCoupling returns simple shared-reference pairs.
func (*Graph) CoCitationClusters ¶
func (g *Graph) CoCitationClusters() []CoCitationCluster
CoCitationClusters returns simple same-reference clusters.
func (*Graph) ExportJSON ¶
ExportJSON writes a stable node/edge JSON graph.
type GraphAccessibleSummary ¶
type GraphReport ¶
type GraphReport struct {
NodeCount int `json:"nodeCount"`
EdgeCount int `json:"edgeCount"`
TopCited []Degree `json:"topCited"`
TopCiting []Degree `json:"topCiting"`
CoCitations int `json:"coCitations"`
CouplingPairs int `json:"couplingPairs"`
}
GraphReport is a deterministic summary of a citation graph artifact.
func BuildGraphReport ¶
func BuildGraphReport(data []byte) (GraphReport, error)
BuildGraphReport summarizes exported node/edge citation graph JSON.
type RepresentativePaper ¶
type RepresentativePassage ¶
type ResearchLineageViewModel ¶
ResearchLineageViewModel is a UI-ready citation lineage summary.
func NewResearchLineageViewModel ¶
func NewResearchLineageViewModel(graph *Graph, paperID string) ResearchLineageViewModel
NewResearchLineageViewModel summarizes backward and forward citation links for a paper.