Connection


HTTP
golem.ai:3004/http

HTTPS
golem.ai:3005/http

Web Socket
golem.ai:3004/ws

Web Socket Sécurisé (WSS)
golem.ai:3005/ws

TCP
golem.ai:3003

Archetype

Structure

An archetype is composed of two files. A "dictionnary" part and a "regexp" part.
In both cases, each line corresponds to an element to research.

In the dictionnary part, several elements can be put on the same list, separed by semicolons. By default the ID will be the first on the list.
It is possible to indicate an ID for each line, by using the following tag at the beginning of the file "#FIRST_COL_IS_ID".
In such a case, the first element of the list will not be interpreted but considered as the ID.
To indicate that the dictionnary is composed of invariable element (a list of cities for example) we can also indicate the tag "#INVARIABLE" at the beginning of the file.

In the case of regexps, by default, they do not have an ID. Similarly, it is possible to indicate an IF for each line, by using the following tag at the beginning of the file "#FIRST_COL_IS_ID".
In such a case, must be preceded the regular expression of the ID, followed by a semicolon.

Multilingual

2 files (dictionnary + regexp) for an archetype in a given language.


Exemple - Dictionnary

context
#FIRST_COL_IS_ID
#INVARIABLE
1;Abbeville
2;Ablon-sur-Seine
3;Abscon
4;Achères
5;Achicourt

Exemple regexp

context
#FIRST_COL_IS_ID
hexa;#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}
cmyk;((?P[0-9][0-9]?|100)\%)(( )?\,( )?)((?P[0-9][0-9]?|100)\%)(( )?\,( )?)((?P[0-9][0-9]?|100)\%)(( )?\,( )?)((?P[0-9][0-9]?|100)\%)
rgb;(rgb)?\(?(?P[01]?\d\d?|2[0-4]\d|25[0-5])(\W+)(?P[01]?\d\d?|2[0-4]\d|25[0-5])(\W+)(?P25[0-5]|2[0-4]\d|[01]?\d\d?)(\)?)

Note:

In console mode, the tags are replaced by checkboxes in the interface.


Do you have a question that has not been answered here ?
tech@golem.ai