Skip to main content

A brief description of dapytains

Project description

MyDapytains

Flask Server Tests Test

The name of the library is completely temporary.

This library offers a base python implementation of the following functionalities:

  • Parsing of machine-actionable citeStructure and citeData to retrieve reference, structure and citable unit metadata within a TEI file
  • Reuse of citeStructure architecture to retrieve and build partial documents, based on provided reference.
  • Support for multiple citeStructure, similar to the ?tree parameter of the DTS Specifications.

This library will:

  • Provide a base implementation of the DTS API, using python as a server-side language
  • Provide some light "caching" features, to avoid reparsing document at query time.

ToDo

  • Support XSL transformation with mediaType dictionary for outputting different data
  • Add tests to webapp

WebApp

You can try the webapp using python -m dapytains.app.app. It uses test files at the moment.

Guidelines

Document level guidelines

  1. For TEI document to be accessible in full, no specific requirements are necessary.
  2. For TEI document to have a single citation tree, they must provide at least one element at the XPath /TEI/teiHeader/encodingDesc/refsDecl[@default='true']/citeStructure.
  3. For TEI document to have multiple citation trees, they must provide at least one element at the XPath /TEI/teiHeader/encodingDesc/refsDecl[@default='true']/citeStructure and any number of element matching the XPath /TEI/teiHeader/encodingDesc/refsDecl[@n]/citeStructure, where @n holds the citation tree name.

We are currently figuring out the Resource level metadata.

See one of our test files to check out the minimal requirements: we have one with citeData and one with multiple trees

Collection and Resource level guidelines

Collection and Resource level guidelines can be provided through file named dts-metadata.xml in each subfolder of a given repository. We are currently looking at using external file that would help you ingest metadata, while leaving you the option to load up metadata yourself.

The current schema for the collection catalog ingestion is available in ./tests/catalog/schema.rng.

Support

Funded via the CLLG Project.

Ce travail a bénéficié d’une aide de l’État gérée par l’Agence Nationale de la Recherche au titre de France 2030 portant la référence « ANR-24-RRII- 0002 » et opéré par le Programme Inria Quadrant.

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

dapytains-1.0.0rc2.tar.gz (46.5 kB view details)

Uploaded Source

Built Distribution

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

dapytains-1.0.0rc2-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

Details for the file dapytains-1.0.0rc2.tar.gz.

File metadata

  • Download URL: dapytains-1.0.0rc2.tar.gz
  • Upload date:
  • Size: 46.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dapytains-1.0.0rc2.tar.gz
Algorithm Hash digest
SHA256 b4ea3e3583f98091082a928f0aadb641a230f8810fa2333b1f3dd366ee73a5f0
MD5 119ab6803fad4b43b1266236cd4fdb0a
BLAKE2b-256 8e5ced3846213aafb8fce45068ec2ce141b9b43bdd4c2d9334072ee642f21587

See more details on using hashes here.

Provenance

The following attestation bundles were made for dapytains-1.0.0rc2.tar.gz:

Publisher: release.yml on distributed-text-services/MyDapytains

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dapytains-1.0.0rc2-py3-none-any.whl.

File metadata

  • Download URL: dapytains-1.0.0rc2-py3-none-any.whl
  • Upload date:
  • Size: 34.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dapytains-1.0.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 5dadf2f692015c40d1c107134d34df94ebcf1eb0177f1ecb26eaa20adb6688e2
MD5 3b9e2e06f94f9ac28675d5ca3ca0cd04
BLAKE2b-256 9e5ab8e46fa449684cf16ee21a280d5ee5bacb9a4411e2ee15bb7cd72e78f7f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for dapytains-1.0.0rc2-py3-none-any.whl:

Publisher: release.yml on distributed-text-services/MyDapytains

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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