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


Release history Release notifications

This version
History Node

0.5

History Node

0.4

History Node

0.3

History Node

0.2

History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
dataTXT-0.5.tar.gz (4.8 kB) Copy SHA256 hash SHA256 Source None Nov 16, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page