[assign]
path = value
value = fix(_.deburr(String(self.value).replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/\s]/g, '').toLowerCase()))
path = loterreID
value = env('loterreID')
path = primer
value = env('primer')
# Check if the file is already download
[load]
location = env('location')
domain = fix('loterre-vocabulaires').append('-loaded')
path = loterreID
target = isAlreadyDownload
# if not download, do it and save it
[swing]
test = get('isAlreadyDownload').isEmpty()
[swing/save]
location = env('location')
domain = fix('loterre-vocabulaires').append('-loaded')
path = loterreID
# Download the vocabulary from URL
[swing/singleton]
file = ./v1/download.ini
# Build un reverse index from the dowload vocabulary
[swing/singleton]
file = ./v1/compile.ini
[swing/exchange]
value = self().pick(['id', 'value', 'state'])
# Search concept in the reverse index file
[debug]
path = value
text = SEARCH
[load]
location = env('location')
domain = env('loterreID').prepend('loterre-').append('indexes')
path = value
target = value
[debug]
path = value2
text = FOUND?
# Transcribe URI and its internal links (broader, narrower)
[expand]
path = value
file = ./v1/transcribe.ini