Skip to main content

Sample installable XIA

Project description

OPENLXP-XIA

What is it?

OpenLXP XIA is a Python package that provides the validation functionality of extracted metadata from the source. In addition, it helps transform metadata into target metadata and further load it into indexing services. The OpenLXP XIA package does not include the metadata extraction process because extraction methods can be different for different sources. But once metadata gets extracted from the source, OpenLXP-XIA continues the V-T-V-L (Validate-Transform-Validate-Load) cycle.

The schema files used for validation can be placed on the schema server. Currently, OpenLXP-XIA uses AWS S3 buckets as a schema server.

Below are the workflow which are performed by the OpenLXP-XIA after package installation.

Workflows

The OpenLXP-XIA implements five core workflows after extracting metadata from the Specifiec source, as follows:

  1. Validate: Compares extracted learning experience metadata against the configured source metadata reference schema stored in the Experience Schema Service (XSS).

  2. Transform: Transforms extracted+validated source learning experience metadata to the configured target schema using the "XSR-to-Target" transformation map stored in the Experience Schema Service (XSS)

  3. Validate: Compares transformed learning experience metadata against the configured target metadata reference schema stored in the Experience Schema Service (XSS).

  4. Load: Pushes transformed and validated learning experience metadata to the target Experience Index Service (XIS) for further processing.

  5. Log: Records error, warning, informational, and debug events which can be reviewed and monitored.

Prerequisites

Python >=3.7 : Download and install python from here Python.

Installation

$ python -m pip install OpenLXP-XIA (use the latest package version)

Add OpenLXP-XIA in the setting.py in your project.

INSTALLED_APPS = [ ...

    'openlxp_xia',
    
    ....

]

Configuration

  1. On the Admin page, log in with the admin credentials

  2. Add xis configuration: Configure Experience Index Services (XIS):

    Xis metadata api endpoint: API endpoint for XIS where metadata will get stored.

    Example:
    Xis metadata api endpoint: http://localhost:8080/api/metadata/

    Xis supplemental api endpoint: API endpoint for XIS where supplemental metadata will get stored.

    Example:
    Xis supplemental api endpoint: http://openlxp-xis:8020/api/supplemental-data/

    (Note: Replace localhost with the XIS Host)

  3. Add xia configuration : Configure Experience Index Agents(XIA):

    Publisher: Agent Name

    Xss api: API endpoint for XSS where schemas will be retrieved from.

    Example:
    Xss api: https://localhost:8000/api/

    Source metadata schema: Schema iri or name for source metadata validation

    Target metadata schema: Schema iri or name for target metadata validation

    (Note: Please make sure to upload schema files in the Experience Schema Server (XSS). )

  4. Add metadata field overwrite: Here, we can add new fields and their values or overwrite values for existing fields.

    Field name: Add new or existing field Name

    Field type: Add date type of the field

    Field value: Add corresponding value

    Overwrite: Check the box if existing values need to be overwritten.

Running ETL Pipeline:

ETL or EVTVL (Extract-Transform-Load) Pipeline can be run through two ways:

  1. Through API Endpoint: To run ETL tasks run below API:

    http://localhost:8000/api/xia-workflow (Note: Change localhost with XIA host)

  2. Periodically through celery beat: On the admin page add periodic task and it's schedule. On selected time interval celery task will run.

Logs

To check the running of celery tasks, check the logs of application and celery container.

Documentation

Troubleshooting

License

This project uses the MIT license.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

openlxp_xia-1.7.1.tar.gz (38.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openlxp_xia-1.7.1-py3-none-any.whl (58.1 kB view details)

Uploaded Python 3

File details

Details for the file openlxp_xia-1.7.1.tar.gz.

File metadata

  • Download URL: openlxp_xia-1.7.1.tar.gz
  • Upload date:
  • Size: 38.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for openlxp_xia-1.7.1.tar.gz
Algorithm Hash digest
SHA256 11f2cd1699be31fa7b0061546a5205ff5740c2fe5adb236b7e5e34e12f3f4655
MD5 c16d844a387c57234c62b53d22298858
BLAKE2b-256 e92457b95f557e7f48abe61042dee32c24ee7c469c7229365cf8edbcd1ba4bd9

See more details on using hashes here.

File details

Details for the file openlxp_xia-1.7.1-py3-none-any.whl.

File metadata

  • Download URL: openlxp_xia-1.7.1-py3-none-any.whl
  • Upload date:
  • Size: 58.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for openlxp_xia-1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c36ffe2e7d9b76c93f1ad7f000a2c74412a28fd931d3982b380b764ed5c3f401
MD5 1d4405731565f1a5f311ded57ad74ae3
BLAKE2b-256 4fc70c24ef420622cc109dd8f9787ae929abf8ee9a585db326e1fde26c51a7de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page