Skip to main content

RDF data production monitoring (RODOLF)

Project description

RDF data production monitoring (RODOLF)

Installation

Open the project in a terminal and run:

pip install -e .

This will install the cube in your active virtual environment as cubicweb-rodolf.

The following sections indicate additional steps when you install this cube as a dependency or as an instance.

As a dependency

If you plan to use this cube as a dependency for your own cube, add it to your __pkginfo__.py as follows:

__depends__ = {
    # ... Your previous dependencies
    "cubicweb-rodolf": None,
}

If the target cube is already used as an instance, you need to migrate it with the help of its python shell (replace YOUR_INSTANCE_NAME by your instance name):

cubicweb-ctl shell YOUR_INSTANCE_NAME

In the python prompt, enter the following command:

add_cube("rodolf")

Press Ctrl-D then restart your instance. The cube should now be available in your instance.

As an instance

If you plan to use this cube directly as an instance, create and start your instance with the following commands (replace rodolf-instance by the name of your choice):

cubicweb-ctl create rodolf rodolf-instance
cubicweb-ctl start -D rodolf-instance

use docker compose for local developpements

The docker-compose.yaml contains the following containers : - rodolf-backend: the cubicweb instance - rodolf-frontend: the nextjs front - virtuoso: the rdf repository and sparql endpoint - minio: object storage server - postgresql: sql database server - redis: key value database for session and rq tasks

When starting for the first time you must run following commands:

# install node modules in your volumes
docker compose run --rm --entrypoint npm rodolf-frontend ci

# set the localinstall egg in your volume
docker compose run --rm --entrypoint pip rodolf-backend install -e /src

# create the instance
docker compose run --entrypoint docker-cubicweb-helper rodolf-backend create-instance

# init the db
docker compose run --rm --entrypoint cubicweb-ctl rodolf-backend db-init instance -a

Then to start the services do:

docker compose up --build -d

Then you need to create a new bucket on minio. To do so, open http://localhost:9001/, log in with the credentials defined in the docker-compose, and create a bucket named according to the value of the variable RODOLF_S3_BUCKET.

Restart all services and point your browser to:

# virtuoso
http://localhost:8890/

# rodolf frontend
http://localhost:3000/

# rodolf backend
http://localhost:8080/

# minio
http://localhost:9001/

/!for a local use, make sure to configure projects with http://virtuoso:8890 as virtuoso URL, so that the backend can communicate with it.

Learn More

Visit the official documentation to learn more about CubicWeb.

Project details


Download files

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

Source Distribution

cubicweb_rodolf-0.12.0.tar.gz (294.9 kB view details)

Uploaded Source

Built Distribution

cubicweb_rodolf-0.12.0-py3-none-any.whl (39.3 kB view details)

Uploaded Python 3

File details

Details for the file cubicweb_rodolf-0.12.0.tar.gz.

File metadata

  • Download URL: cubicweb_rodolf-0.12.0.tar.gz
  • Upload date:
  • Size: 294.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for cubicweb_rodolf-0.12.0.tar.gz
Algorithm Hash digest
SHA256 56091d0a20ac03eae5eaa3a5b803293224a8ea8918e0df0288b49b7090802050
MD5 8b3faf0a262ee8454bbecd0310155684
BLAKE2b-256 df01b1fc5c8f608e30859979cea91df65e84e00ac949ff32aaf5b819b2f21548

See more details on using hashes here.

File details

Details for the file cubicweb_rodolf-0.12.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cubicweb_rodolf-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84ec74043c44904e4e3009db87a3220dd3acb4ecc6aa05f34af8743906688f4f
MD5 adc38dfe1f6261b2ab096feb5d1daa82
BLAKE2b-256 154cad2b76a8d89c8f19112d5f1b531349c017d16ac9f394774241fd27256a45

See more details on using hashes here.

Supported by

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