Skip to main content

Python library to leverage SpazioDati’s dataTXT with DBpedia

datatxt is a library to query a dataTXT service and to enrich annotations with queries to DBpedia SPARQL endpoint. It will automatically convert literals to the corresponding Python types.

Visit http://spaziodati.eu/dataTXT for documentation and examples.

API

First you instantiate a dataTXT class:

d = datatxt.Datatxt()

Then you ask for annotation:

result = d.annotation(text)

You will receive a dictionary with annotation as DBpedia resources and for each resource you will receive all properties found in the DBpedia triplestore.

The library will automatically convert typed literals to a coresponding simple type in Python. Dates are also converted if the dateutil library is available.

License

This software is licensed under BSD license, included as LICENSE.txt in the source distribution.

Metadata

Release files for dataTXT 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dataTXT 0.5
File Size Uploaded Provenance Actions
dataTXT-0.5.tar.gz 4.8 kB Without provenance Details for dataTXT-0.5.tar.gz

Release files / dataTXT-0.5.tar.gz

Download URL dataTXT-0.5.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4233efebcb86377186be9e60717872b71c9df5457a605d36fdca0de32db91a61
BLAKE2b-256 checksum
How to use checksums
557617dc1d0ed39c9b04e7e9c40fd9f9499a260a4bb60cbff92a9b96b5773a11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for dataTXT 0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page