-
Notifications
You must be signed in to change notification settings - Fork 2
Web UI configuration
- File structure
alvisir-search
alternate-stylesheet
extra-css
display-params
logo-png-path
background-jgp-path
background-left-jgp-path
background-right-jgp-path
cheatsheet-html-path
title
copyright-owner
copyright-years
about-url
search-button-text
onto-names
subpaths-header
synonyms-header
title-field
title-url-prefix
title-url-field
doc-field_N-header
doc-field_N
outlink_N-image
outlink_N-hint
outlink_N-url-prefix
outlink_N-url-field
doc-score-header
resources
<alvisir-ui-config>
<alvisir-search filepath="SEARCH.xml" />
<alternate-stylesheet filepath="STYLE.xslt" />
<extra-css filepath="STYLE.css" />
<display-params>
<param name="..." value="..."/>
...
</display-params>
<resources>
<ontology name="..." filepath="ONTO.json" />
...
</resources>
</alvisir-ui-config>
Specify the Search configuration file.
If the value is a relative path, then it will be resolved from the directory where this Web UI configuration file was found.
Use the specified XSLT file as the stylesheet instead of the default one.
Use the specified CSS file as additional CSS rules.
Display parameters set display details.
The logo file. This file should be a 293x120 PNG image.
Middle background file. This file should be a 8x201 JPEG image.
Left background file. This file should be a 417x201 JPEG image.
Right background file. This file should be a 1181x201 JPEG image.
Cheat sheet contents.
This file must be an HTML file with a single div
element.
Page title of the search engine page.
Copyright owner.
Copyright years.
Copyright link URL.
Search button text.
Names of ontologies separated by commas.
Title of the explanation sub-paths list.
Title of the explanation synonyms list.
Field to extract for the response document title.
Prefix of the URL of the response document link.
Field to extract for the suffix of the URL of the response document link.
Header of the response document Nth field slot.
Field to extract for the response document Nth field slot.
The slots are presented as such:
- Authors
- Publication year
- Source (journal)
- Abstract or body
- Abstract or body
Icon for the Nth link of the response document.
Tool tip contents for the Nth link of the response document.
URL prefix for the Nth link of the response document.
Field to extract for the URL suffix for the Nth link of the response document.
Header for the response document relevance score.
<ontology
name="NAME"
filepath="ONTO.json"
/>
Declare an ontology displayed as NAME
whose classes are contained in ONTO.json
.
If the path is relative, the it will be resolved from the directory where this configuration file was found.
The JSON file contains the class hierarchy. Each class is represented as a node with the following properties:
{
"extid": "...",
"intid": "...",
"name": "...",
"syns": [
"...",
"...",
],
"descendantnb" : 42,
"sublevelnb" : 13,
"children": [
{ },
{ },
]
}
-
extid
andintid
are external and internal identifiers. They are usually the same. -
name
is the name of the class, its prefered label. -
syns
is an array containing all the alternate labels for the class. -
descendantnb
is the number of descendants of this class; a leaf class has a value equal to zero. -
sublevelnb
is the number of descendant levels, the maximum depth; a leaf class has a value equal to zero; the value must be one unit below the class parent's value. -
children
is an array containing the nodes representing each chlid (direct subclass) class.
If your initial ontology is expressed in OBO format, then you might use a dedicated script from the obo-utils repository:
obo2json.py --root ROOT_ID ONOT.obo >ONTO.json