Skip to main content

python interface for SpazioDati's dataTXT and DBpedia

Project description

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.

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

dataTXT-0.5.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file dataTXT-0.5.tar.gz.

File metadata

  • Download URL: dataTXT-0.5.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dataTXT-0.5.tar.gz
Algorithm Hash digest
SHA256 4233efebcb86377186be9e60717872b71c9df5457a605d36fdca0de32db91a61
MD5 49f4efb00c7a513241487dec6a781ea2
BLAKE2b-256 557617dc1d0ed39c9b04e7e9c40fd9f9499a260a4bb60cbff92a9b96b5773a11

See more details on using hashes here.

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