Fetch Prefixes from Triplestore
This commit is contained in:
parent
a63e656f69
commit
6f2ba18227
8 changed files with 209 additions and 23 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue