Fetch Prefixes from Triplestore

This commit is contained in:
Tom Wiesing 2022-09-21 15:20:42 +02:00
parent a63e656f69
commit 6f2ba18227
No known key found for this signature in database
8 changed files with 209 additions and 23 deletions

View file

@ -17,6 +17,7 @@ type Info struct {
Running bool // is the instance running?
Pathbuilders map[string]string // list of pathbuilders
Prefixes []string // list of uri prefixes
}
// Info returns information about this WissKI instance.
@ -46,6 +47,10 @@ func (wisski *WissKI) Info(quick bool) (info Info, err error) {
info.LastRebuild, _ = wisski.LastRebuild()
return nil
})
group.Go(func() (err error) {
info.Prefixes, _ = wisski.Prefixes()
return nil
})
}
err = group.Wait()