Tools to compute multiple indexes on SWH’s raw contents:
content:
mimetype
fossology-license
metadata
origin:
metadata (intrinsic, using the content indexer; and extrinsic)
An indexer is in charge of:
looking up objects
extracting information from those objects
store those information in the swh-indexer db
There are multiple indexers working on different object types:
content indexer: works with content sha1 hashes
revision indexer: works with revision sha1 hashes
origin indexer: works with origin identifiers
Indexation procedure:
receive batch of ids
retrieve the associated data depending on object type
compute for that object some index
store the result to swh’s storage
Current content indexers:
mimetype (queue swh_indexer_content_mimetype): detect the encoding and mimetype
fossology-license (queue swh_indexer_fossology_license): compute the license
metadata: translate file from an ecosystem-specific formats to JSON-LD (using schema.org/CodeMeta vocabulary)
Current origin indexers:
metadata: translate file from an ecosystem-specific formats to JSON-LD (using schema.org/CodeMeta and ForgeFed vocabularies)
Custom indexers and metadata mappings can be added as plugins.
Metadata
Release files for swh.indexer 4.12.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| swh_indexer-4.12.1.tar.gz | 191.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swh_indexer-4.12.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 438.3 kB
Release files / swh_indexer-4.12.1.tar.gz
| Download URL | swh_indexer-4.12.1.tar.gz |
|---|---|
| Size | 191.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77ffc577b3bf2f37ead21865e3420314052df1d4c1fb69a925f4189d50e94e22
|
|
BLAKE2b-256 checksum How to use checksums |
e685d4b5d382576f7db2d82e5f71b75fa1533b26cc224ee6b56a648c7be7354e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Release files / swh_indexer-4.12.1-py3-none-any.whl
| Download URL | swh_indexer-4.12.1-py3-none-any.whl |
|---|---|
| Size | 246.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2679a6f67f2f828d951687ce420c915f1b7c668c557ea56401541a29a127b56
|
|
BLAKE2b-256 checksum How to use checksums |
ecf5350469a0c54726d23016ad073ff46f74436a79e60a026f9608e7a3de23b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|