Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Polished packaging.

  • Loading branch information...
commit 42ed07080f8d2bc634918997b6de99ae61e4fdbf 1 parent 7d91777
Marco Amadori mammadori authored
1  .gitignore
View
@@ -1,4 +1,5 @@
build/
dist/
*.egg-info
+MANIFEST
datatxt.pyc
43 README.rst → LICENSE.txt
View
@@ -1,38 +1,4 @@
-************************************************************
-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.
-
-.. _dateutil: http://labix.org/python-dateutil
-
-License
--------
-Copyright (c) The Regents of the University of California.
+Copyright (c) 2012 Marco Amadori <marco.amadori@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -47,7 +13,7 @@ are met:
may be used to endorse or promote products derived from this software
without specific prior written permission.
-THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ''AS IS'' AND
+THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
@@ -58,8 +24,3 @@ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-
-
-Author
-------
-* Marco Amadori, SpazioDati
1  MANIFEST.in
View
@@ -0,0 +1 @@
+include *.txt
36 README.txt
View
@@ -0,0 +1,36 @@
+************************************************************
+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.
+
+.. _dateutil: http://labix.org/python-dateutil
+
+License
+-------
+This software is licensed under BSD license, included as LICENSE.txt in the
+source distribution.
2  datatxt.py
View
@@ -10,8 +10,6 @@
import sparql
import collections
-__version__ = '0.1'
-
# Global Defaults for the 'hackaton' account to avoid registering a new one
# on http://www.spaziodati.eu/dataTXT
APP_KEY = '2e57de2ce47dcc1e82613b16017efbf2'
15 setup.py
View
@@ -1,22 +1,19 @@
#!/usr/bin/env python
-try:
- from setuptools import setup
-except:
- from distutils.core import setup
+from distutils.core import setup
-from datatxt import __version__ as version
+__version__ = '0.2'
setup(name='dataTXT',
- version=version,
+ version=__version__,
description="python interface for SpazioDati's dataTXT and DBpedia",
- long_description=open('README.rst', 'r').read(),
+ long_description=open('README.txt', 'r').read(),
author="Marco Amadori",
author_email="amadori@spaziodati.eu",
url="https://github.com/SpazioDati/python-datatxt",
py_modules=['datatxt'],
- install_requires=['sparql-client>=0.13', 'requests>=0.11'],
- license='BSD',
+ install_requires=['sparql-client >= 0.13', 'requests >= 0.11'],
+ license='LICENSE.TXT',
classifiers = [
'Development Status :: 2 - Pre-Alpha',
'Environment :: Console',
Please sign in to comment.
Something went wrong with that request. Please try again.