Versions in this module Expand all Collapse all v0 v0.0.2 Jul 28, 2026 Changes in this version type KnowledgeBase + func (kb *KnowledgeBase) AddProjectWithStatus(name, description, status string) (int64, error) + func (kb *KnowledgeBase) SetProjectStatus(name, status string) error v0.0.1 Jul 27, 2026 Changes in this version + const DefaultRetractionWatchURL + const LicenseText + const ReleaseDate + const ReleaseHash + const Version + var ValidObservationKinds = []string + func CheckDOIRetraction(doi, apiURL string) (retracted bool, note string, err error) + func DefaultPath(root string) string + func FmtHelp(src string, appName string, version string, releaseDate string, ...) string + func IsValidKind(kind string) bool + func ReconcileCollisions(bPath string, collisions []NameCollision) error + type Concept struct + Description string + ID int64 + IdentifierType string + IdentifierValue string + Name string + type KBSearchResult struct + Kind string + Label string + Snippet string + type KnowledgeBase struct + func Open(dbPath string) (*KnowledgeBase, error) + func (kb *KnowledgeBase) AddConcept(name, description string) (int64, error) + func (kb *KnowledgeBase) AddConceptWithIdentifier(name, description, identifierType, identifierValue string) (int64, error) + func (kb *KnowledgeBase) AddObservation(projectID int64, kind, body string) (int64, error) + func (kb *KnowledgeBase) AddObservationWithSource(projectID int64, kind, body, sourceDOI string) (int64, error) + func (kb *KnowledgeBase) AddProject(name, description string) (int64, error) + func (kb *KnowledgeBase) AddSource(s Source) (int64, error) + func (kb *KnowledgeBase) CheckRetractions(checker func(doi string) (retracted bool, note string, err error), ...) (checked, updated int, err error) + func (kb *KnowledgeBase) Close() error + func (kb *KnowledgeBase) Concepts() ([]Concept, error) + func (kb *KnowledgeBase) FindOrCreateSource(title, identifierType, identifierValue string) (int64, error) + func (kb *KnowledgeBase) FormatMarkdown(projectID int64) (string, error) + func (kb *KnowledgeBase) LinkObservationConcept(observationID, conceptID int64) error + func (kb *KnowledgeBase) LinkObservationSource(observationID, sourceID int64, relationship string) error + func (kb *KnowledgeBase) LinkProjectConcept(projectID, conceptID int64) error + func (kb *KnowledgeBase) ListSources() ([]Source, error) + func (kb *KnowledgeBase) ObservationByID(id int64) (*Observation, error) + func (kb *KnowledgeBase) ObservationSources(observationID int64) ([]Source, error) + func (kb *KnowledgeBase) Observations(projectID int64) ([]Observation, error) + func (kb *KnowledgeBase) Path() string + func (kb *KnowledgeBase) ProjectByName(name string) (*Project, error) + func (kb *KnowledgeBase) ProjectConcepts(projectID int64) ([]Concept, error) + func (kb *KnowledgeBase) Projects() ([]Project, error) + func (kb *KnowledgeBase) RemoveSource(id int64) error + func (kb *KnowledgeBase) RetractSource(id int64, note string) error + func (kb *KnowledgeBase) Search(term string) ([]KBSearchResult, error) + func (kb *KnowledgeBase) ShowSource(id int64) (*Source, error) + func (kb *KnowledgeBase) Summary() (string, error) + type MergeTableSummary struct + FromA int + FromB int + Merged int + Table string + func MergeKnowledgeBases(aPath, bPath, mergedPath string) ([]MergeTableSummary, error) + type NameCollision struct + Name string + Table string + UUIDA string + UUIDB string + func CollisionReport(aPath, bPath string) ([]NameCollision, error) + type Observation struct + Body string + CreatedAt time.Time + ID int64 + Kind string + ProjectID int64 + SourceDOI string + type Project struct + CreatedAt time.Time + Description string + ID int64 + Name string + Status string + type Source struct + Authors string + ID int64 + IdentifierType string + IdentifierValue string + PublishedDate string + Publisher string + Retracted bool + RetractionNote string + Rights string + Title string + Version string