Several configuration options are available, for AskOmics itself, and its various related containers (virtuoso, isqlapi, etc...)
Askomics configuration¶
There are two type of configuration options in Askomics:
- Options relevant to the web server itself (number of workers, timeouts, etc...)
- Options regarding the AskOmics application itself
Please see here for an env file example with both type of variables.
Web server configuration¶
The following environment variable are available to configure the web server:
NTASKS
: Maximum number of Celery (background: integration, queries...) tasks in parallel (default to 1).WORKERS
: Maximum number of web server workers (default to 1).TIMEOUT
: Web server worker timeout, in seconds (default to 300).
AskOmics application configuration¶
All AskOmics configuration is set in config/askomics.ini
files. When AskOmics is deployed with docker-compose
, configuration is set with environment variables. The environment variable should be prefixed with ASKO_
and have a format like ASKO_$SECTION_$KEY
. $SECTION and $KEY are case sensitive. E.g. property footer_message
in the askomics
section should be configured as ASKO_askomics_footer_message=Welcome to my AskOmics!
-
flask
secret_key
(string): AskOmics secret key for session.session_timeout
(int): timeout for the session cookie (in minutes)
-
celery
broker_url
(url): Redis or RabitMQ urlresult_backend
(url): Redis or RabitMQ url
-
askomics
debug
(true
orfalse
): Display debug log in consoledebug_ttl
(true
orfalse
): Keep converted rdf file. Set the to true can fill you disk, active only for debug purposereverse_proxy_path
(string): Proxy path if AskOmics is accessible under a subpathsubtitle
(string): Subtitle, displayed on the browser tabfooter_message
(string): Custom message displayed on the AskOmics footerfront_message
(string): Custom message displayed on the AskOmics main pagecontact_message
(string): Custom message displayed on the Contact pagedisplay_commit_hash
(true
orfalse
): diplay the commit hash of the current version in the AskOmics footerdata_directory
(path): Where AskOmics store the datadatabase_path
(path): Path to the sqlite databasedisable_account_creation
(true
orfalse
): disable the possibility to create new accountsnpreview
(int): Number of line displayed during integrationpassword_salt
(string): Password saltdisable_account_creation
(true
orfalse
): Disable new account creationdefault_locked_account
(true
orfalse
): Lock new accountdisable_integration
(true
orfalse
): Disable integration to non admin usersprotect_public
(true
orfalse
): Public datasets and queries are visible only for logged usersenable_sparql_console
(true
orfalse
): Allow non-admin logged users to use the sparql console. This is unsafe.quota
(size): Default quota for new users (can be customized individually later)github
(url): Github repository URLinstance_url
(url): Instance URL. Used to send link by email when user reset his passwordsmtp_host
(url): SMTP host urlsmtp_port
(int): SMTP portsmtp_user
(string): SMTP usersmtp_sender
(email): SMTP sendersmtp_password
(string): SMTP passwordsmtp_connection
(string): SMTP connectin (starttls or null)ldap_auth
(true
orfalse
): Use LDAP authenticationldap_host
(string):LDAP hostldap_port
(int): LDAP portldap_bind_dn
(string): LDAP bind DN stringldap_bind_password
(strig): LDAP passwordldap_search_base
(string): LDAP search baseldap_user_filter
(string): LDAP user filterldap_username_attribute
(string): Username attributeldap_first_name_attribute
(string): First name attributeldap_surname_attribute
(string): Surname attributeldap_mail_attribute
(string): Mail attributeldap_password_reset_link
(url): Link to manage the LDAP passwordldap_account_link
(url): Link to the LDAP account managerautocomplete_max_results
(int): Max results queries by autocompletionsingle_tenant
(bool): Enable single tenant modeanonymous_query
(bool): Enable anonymous query modeanonymous_query_cleanup
(int): Number of days before a successful anonymous job is deleted
-
virtuoso
triplestore
(string): Triplestore used. Can be virtuoso, fuseki or coreseendpoint
(url): Triplestore endpoint urlupdatepoint
(url): Triplestore updatepoint urlisqlapi
(url): isql-api url when AskOmics use isql-api to perform queries on virtuoso through isql. If not set, AskOmics will launch queries on the SPARQL endpointfuseki_upload_url
(url): If triplestore is fuseki, set the fuseki upload urlusername
(string): Triplestore credential: usernamepassword
(string): Triplestore credential: passwordload_url
(url): AskOmics url accessible from the triplestoreupload_method
(string): upload method fir virtuoso. Can be load or insertchunk_size
(int): Number of RDF triples to upload in one timeblock_size
(int): Size of location bocksize for positionable entitiesserialization_format
(string): RDF serialization format. Can bent
,turtle
orxml
default_graph
(string): Triplestore default graphusers_graph
(string): User base graphnamespace_data
(url): AskOmics namespace for data. Correspond to the:
prefix. You should change this to your instance url if you want your URIs to be resolved.namespace_internal
(url): AskOmics namespace for internal triples. Correspond to theaskomics:
prefix. You should change this to your instance url if you want your URIs to be resolved.preview_limit
(int): Number of line to be previewed in the results pageresult_set_max_rows
(int): Triplestore max row. Must be the same as SPARQL[ResultSetMaxRows] in virtuoso.ini config
-
federation
query_engine
(string): Query engine to use, can be corese or fedxendpoint
(url): Federated query engine endpoint urllocal_endpoint
(url): Triplestore url, accessible from the federated query engine
-
sentry
server_dsn
(url): Sentry url for the serverfrontend_dsn
(url): Sentry url for the frontend
Virtuoso configuration¶
Several environment variable are available to configure the Virtuoso instance. You can find an example of a configuration file here
The following parameters are related to virtuoso's performance. Please consult the documentation for more information.
VIRT_Parameters_NumberOfBuffers
VIRT_Parameters_MaxDirtyBuffers
VIRT_Parameters_TN_MAX_memory
VIRT_Parameters_TransactionAfterImageLimit
VIRT_SPARQL_ResultSetMaxRows
VIRT_SPARQL_MaxDataSourceSize
VIRT_SPARQL_MaxQueryCostEstimationTime
VIRT_SPARQL_MaxQueryExecutionTime
The following are also available:
DBA_PASSWORD
: Default 'dba' user password. Make sure it matches the AskOmics and isqlapi parametersSPARQL_UPDATE
: Allow any user to make 'load' queries. Should be set to False for security reasons.DEFAULT_GRAPH
: Default graph location
Isqlapi configuration¶
Isqlapi is a web application that helps speeding up data loading and querying. Several parameters are available for configuration:
WORKER_NUMBER
: Number of workers for the web serviceWORKER_TIMEOUT
: Worker timeout for queriesISQL_API_VIRTUOSO_DSN
: Virtuoso's dsnVIRTUOSO_HOST
: Virtuoso's instance host nameVIRTUOSO_ISQL_PORT
: Virtuoso's port for the ISQL protocolISQL_API_VIRTUOSO_USERNAME
: Username for the queriesISQL_API_VIRTUOSO_PASSWORD
: Password for the queries