Skip to main content

Data model for the args.me argument search engine

Project description

# args-me-model

[![PyPI - Version](https://img.shields.io/pypi/v/args-me-model)](https://pypi.org/project/args-me-model/)
[![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Fwebis-de%2Fargs-me-model%2Frefs%2Fheads%2Fmain%2Fpyproject.toml)](https://webis.de/args-me-model)
[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/webis-de/args-me-model/test.yml?label=tests)](https://github.com/webis-de/args-me-model/actions/workflows/test.yml)
[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/webis-de/args-me-model/documentation.yml?label=docs)](https://github.com/webis-de/args-me-model/actions/workflows/documentation.yml)
[![Static Badge](https://img.shields.io/badge/licence-MIT-%2395c30d)](https://github.com/webis-de/args-me-model/blob/main/LICENSE)


The data model of the args.me search engine (work-in-progress).


[Claims](https://webis.de/args-me-model/_autosummary/args_me_model.Claim.html#args_me_model.Claim) are extracted from or generated by one or more [Sources](https://webis.de/args-me-model/_autosummary/args_me_model.Source.html#args_me_model.Source) and connected via [Support](https://webis.de/args-me-model/_autosummary/args_me_model.Support.html#args_me_model.Support) relations. Two claims can reference each other as their `counter` if they state the opposite of each other. Each of Claim, Source, and Support have additional fields to store information and allow for arbitrary `annotations`.


## Install
```shell
pip install args-me-model
```


## Quickstart
```python
from args_me_model import Claim, Source

# Creating claims
claim1 = Claim.from_source(
Source(
name="common-knowledge",
text="Blue is scattered more than other colors"
)
)
claim2 = Claim.from_source(
Source(
name="common-knowledge",
text="The sky is blue"
),
support = [[claim1]] # list of linked support
)
claim3 = Claim.from_source(
Source(
name="uncommon-knowledge",
text="The sky is not blue"
),
counter = claim2 # claim2 and claim3 are counter claims
)

# Writing claims to a file
Claim.write_ndjson([claim1, claim2, claim3], "myclaim.ndjson")

# Iterating over claims from a file
for claim in Claim.read_ndjson("myclaim.ndjson"):
print(claim.text)
```


## Contributing
See the [development notes](https://github.com/webis-de/args-me-model/blob/main/docs/development.md).

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

args_me_model-0.4.1.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

args_me_model-0.4.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file args_me_model-0.4.1.tar.gz.

File metadata

  • Download URL: args_me_model-0.4.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for args_me_model-0.4.1.tar.gz
Algorithm Hash digest
SHA256 2f4b0ead3ccbc55241a681bd656f8c56110fe11f94167af7cc480e47bd5e2e5b
MD5 c8957a8b3b0034189a9dde36a1165431
BLAKE2b-256 ce4c759513dbd78bc6d80daf452f7e3a18e0fe2fa1e276edb07b63e48b18bc63

See more details on using hashes here.

Provenance

The following attestation bundles were made for args_me_model-0.4.1.tar.gz:

Publisher: publish.yml on webis-de/args-me-model

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

File details

Details for the file args_me_model-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: args_me_model-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for args_me_model-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d12d8f83f80912c1ce21ed4e71dda1551c790f5e2f7fe8f7ee41becc6fe6ebb
MD5 705b7d6dcc850364dbd900a55c95b466
BLAKE2b-256 9d90c35af0beaaf3611e4cd2447d66650b5b4b63fe0e5917ab13ca7929186af2

See more details on using hashes here.

Provenance

The following attestation bundles were made for args_me_model-0.4.1-py3-none-any.whl:

Publisher: publish.yml on webis-de/args-me-model

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