Skip to main content

APIS core package. Includes entities, relations, vocabularies, labels and the helper scripts for RDF parsing.

Project description


The APIS_ project intents to semantically annotate the Austrian Bibliography Lexicon (ÖBL_). To achieve this goal
we develop(ed) this web-app. It is based on a 5 entities (person, place, institution, event, work) data model.
All 5 entities are connected to each other. Entities, as well as relations between them, can be typed with vocabularies
similar to the Simple Knowledge Organization System (SKOS_).

APIS comes with a built in system of autocompletes that allows researchers to import meta-data of entities with just a
single click. Out of the box APIS supports Stanbol_ as a backend for the autocompletes, but the system is rather easy to
adapt to any Restfull API. APIS also supports the parsing of RDFs_ describing entities into an entity. The parsing is
configured in a settings file.

APIS comes also with a built in highlighter. The highlighter is configured via the built in admin backend and allows
to annotate texts with entities and/or relations between entities.

For a demo of the application please refer to apisdev_.


The installation process is described in the apis-core docs_.


All code unless otherwise noted is licensed under the terms of the MIT License (MIT). Please refer to the file LICENSE in the root directory of this repository.

All documentation and images unless otherwise noted are licensed under the terms of Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit

.. _APIS:
.. _apisdev:
.. _ÖBL:
.. _SKOS:
.. _Stanbol:
.. _RDFs:
.. _docs:

Install the package

things which needs to be added to the project's settings and urls files

# mandatory:

## add apis-apps to `INSTALLED_APPS`


## add apis specific context_processors

'context_processors': [



configure the default columns for entitiy list views

'table_fields': [
'name', 'lat', 'lng'

configure which columns users can add to the default list view

'additional_cols': [
'lat', 'lng', 'part_of'

## Filter configuration for Relation Views

Filters for list views for apis relations are generated by `apis_core.apis_relations.rel_filters.get_filters` and can be configured via specific settings parameters in the project's settings file. You can provide a list `APIS_RELATIONS_FILTER_EXCLUDE` with (sub)strings of field names which should be excluded from the filter.

The list below provides a reasonable default:

'user', '__id',

Additionally you can exclude fields on class level:

'PersonPlace': {
'exclude': ['name']

# optional:


In case you set this parameter to `False` then `apis_core.apis_metainfo.TempEntityClass.get_prev_url()` and `apis_core.apis_metainfo.TempEntityClass.get_next_url()` methods return `False`. Set this param to deactivate the prev/next browsing function in the entitie's detail view. Default (if not set) is `True`


This parameter is used to construct URIs for Apis Entities in case no external URIs (like geonames or gnd) are provided, defaults to ``

e.g. `APIS_BASE_URI = 'https://myprocect/objects/'` will create a URI like `https://myprocect/objects/1234`

## log-in-restrictions
If theese settings are missing or set to `False` not logged in users will be redirected to log-in page


## Override the entities' list view template:

Change the template name in the project's settings file by adding the following variable

`APIS_LIST_VIEW_TEMPLATE = "browsing/generic_list.html"`
`APIS_DELETE_VIEW_TEMPLATE = "webpage/confirm_delete.html"`

## TEI

In case you store TEI encoded XML in you TEXT objects, you can display those with Therefore you'll need to list the values of `` in a settings parameter.
Let's say that all TEI texts are stored in Text fields with kind "xml/tei transcription":

`APIS_TEI_TEXTS = ['xml/tei transcription']`

You'll also need to set define the locations for the CETEICEAN specific static files via dedicated paramters:



In case you want to dipslay images served via IIIF protocoll add the following params to your settings files

APIS_IIIF_ENT_IIIF_REL = "has iiif image"

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
apis_core-0.9.23-py3-none-any.whl (212.4 kB) Copy SHA256 hash SHA256 Wheel py3
apis-core-0.9.23.tar.gz (129.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page