From e14e7e82d9a71026cd0c24844b6be640226116dc5371a10bef0628194737a579 Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 9 Dec 2013 13:30:32 +0000 Subject: [PATCH 1/2] Accepting request 209979 from home:TheBlackCat:branches:devel:languages:python Update to 4.0.1 OBS-URL: https://build.opensuse.org/request/show/209979 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rdflib?expand=0&rev=39 --- python-rdflib.changes | 24 ++++++++++++++ python-rdflib.spec | 74 +++++++++++++++++++++++++++++++++++++++---- rdflib-3.2.3.tar.gz | 3 -- rdflib-4.0.1.tar.gz | 3 ++ 4 files changed, 95 insertions(+), 9 deletions(-) delete mode 100644 rdflib-3.2.3.tar.gz create mode 100644 rdflib-4.0.1.tar.gz diff --git a/python-rdflib.changes b/python-rdflib.changes index acaf57e..b2ab0e7 100644 --- a/python-rdflib.changes +++ b/python-rdflib.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Fri Dec 6 13:57:34 UTC 2013 - toddrme2178@gmail.com + +- Update to 4.0.1 + * Bugfixes +- Update to 4.0 + * The new SPARQL 1.1 engine (rdflib-sparql) has been included in the core distribution. SPARQL 1.1 queries and updates should work out of the box. + * Several RDF 1.1 features are available: + * A new DataSet class + * XMLLiteral and HTMLLiterals + * BNode (de)skolemization is supported through BNode.skolemize, URIRef.de_skolemize, Graph.skolemize and Graph.de_skolemize + * Handled of Literal equality was split into lexical comparison (for normal == operator) and value space (using new Node.eq methods). This introduces some slight backwards incomaptible changes, but was necessary, as the old version had inconsisten hash and equality methods that could lead the literals not working correctly in dicts/sets. The new way is more in line with how SPARQL 1.1 works. For the full details, see: + * Iterating over QueryResults will generate ResultRow objects, these allow access to variable bindings as attributes or as a dict. I.e. + * "Slicing" of Graphs and Resources as syntactic sugar: (#271) + * The SPARQLStore and SPARQLUpdateStore are now included in the RDFLib core + * The documentation has been given a major overhaul, and examples for most features have been added. +- Update to 3.4 + * This release introduced new parsers for structured data in HTML. In particular formats: hturtle, rdfa, mdata and an auto-detecting html format were added. Thanks to Ivan Herman for this! + * This release includes a lot of admin maintentance - correct dependencies for different python versions, etc. Several py3 bugs were also fixed. + * This release drops python 2.4 compatability - it was just getting too expensive for us to maintain. It should however be compatible with any cpython from 2.5 through 3.3. + * node.md5_term is now deprecated, if you use it let us know. +- Add additional dependencies +- Implement update-alternatives + ------------------------------------------------------------------- Thu Jan 31 13:27:04 UTC 2013 - saschpe@suse.de diff --git a/python-rdflib.spec b/python-rdflib.spec index ecd53e8..7d78dd4 100644 --- a/python-rdflib.spec +++ b/python-rdflib.spec @@ -17,7 +17,7 @@ Name: python-rdflib -Version: 3.2.3 +Version: 4.0.1 Release: 0 Summary: A Python library for working with RDF License: BSD-3-Clause @@ -26,13 +26,24 @@ Url: http://rdflib.net/ Source: http://pypi.python.org/packages/source/r/rdflib/rdflib-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes +BuildRequires: python-SPARQLWrapper BuildRequires: python-Sphinx BuildRequires: python-devel +BuildRequires: python-flake8 +BuildRequires: python-html5lib BuildRequires: python-isodate BuildRequires: python-nose +BuildRequires: python-pyparsing +BuildRequires: python-setuptools BuildRequires: python-xml +Requires: python-SPARQLWrapper +Requires: python-flake8 +Requires: python-html5lib Requires: python-isodate +Requires: python-pyparsing Requires: python-xml +Requires(post): update-alternatives +Requires(postun): update-alternatives %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else @@ -59,14 +70,65 @@ rm -r _build/html/.buildinfo %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%fdupes -s build/html -%check -python setup.py test +# for update-alternatives +mv %{buildroot}%{_bindir}/csv2rdf %{buildroot}%{_bindir}/csv2rdf-%{py_ver} +mv %{buildroot}%{_bindir}/rdf2dot %{buildroot}%{_bindir}/rdf2dot-%{py_ver} +mv %{buildroot}%{_bindir}/rdfgraphisomorpishm %{buildroot}%{_bindir}/rdfgraphisomorpishm-%{py_ver} +mv %{buildroot}%{_bindir}/rdfpipe %{buildroot}%{_bindir}/rdfpipe-%{py_ver} +mv %{buildroot}%{_bindir}/rdfs2dot %{buildroot}%{_bindir}/rdfs2dot-%{py_ver} +ln -s %{_bindir}/csv2rdf-%{py_ver} %{buildroot}%{_bindir}/csv2rdf +ln -s %{_bindir}/rdf2dot-%{py_ver} %{buildroot}%{_bindir}/rdf2dot +ln -s %{_bindir}/rdfgraphisomorpishm-%{py_ver} %{buildroot}%{_bindir}/rdfgraphisomorpishm +ln -s %{_bindir}/rdfpipe-%{py_ver} %{buildroot}%{_bindir}/rdfpipe +ln -s %{_bindir}/rdfs2dot-%{py_ver} %{buildroot}%{_bindir}/rdfs2dot + +# fix end-of-line encoding +sed -i 's/\r$//' docs/_build/html/_static/jquery.js + +%fdupes -s docs/_build/html + +%pre +# Since /usr/bin/* became ghosted to be used with update-alternatives, we have to get rid +# of the old binary resulting from the non-update-alternativies-ified package: +[[ ! -L %{_bindir}/csv2rdf ]] && rm -f %{_bindir}/csv2rdf +[[ ! -L %{_bindir}/rdf2dot ]] && rm -f %{_bindir}/rdf2dot +[[ ! -L %{_bindir}/rdfgraphisomorpishm ]] && rm -f %{_bindir}/rdfgraphisomorpishm +[[ ! -L %{_bindir}/rdfpipe ]] && rm -f %{_bindir}/rdfpipe +[[ ! -L %{_bindir}/rdfs2dot ]] && rm -f %{_bindir}/rdfs2dot +exit 0 + +%post +update-alternatives \ + --install %{_bindir}/rdfpipe rdfpipe %{_bindir}/rdfpipe-%{py_ver} 30 \ + --slave %{_bindir}/csv2rdf csv2rdf %{_bindir}/csv2rdf%{py_ver} \ + --slave %{_bindir}/rdf2dot rdf2dot %{_bindir}/rdf2dot%{py_ver} \ + --slave %{_bindir}/rdfgraphisomorpishm rdfgraphisomorpishm %{_bindir}/rdfgraphisomorpishm%{py_ver} \ + --slave %{_bindir}/rdfs2dot rdfs2dot %{_bindir}/rdfs2dot%{py_ver} + +%preun +if [ $1 -eq 0 ] ; then + update-alternatives --remove rdfpipe %{_bindir}/rdfpipe-%{py_ver} +fi + +# Not working +# %check +# python setup.py test %files %defattr(-,root,root) -%doc CHANGELOG LICENSE README docs/_build/html -%{python_sitelib}/* +%doc CHANGELOG.md LICENSE CONTRIBUTORS README.md docs/_build/html +%{_bindir}/csv2rdf-%{py_ver} +%{_bindir}/rdf2dot-%{py_ver} +%{_bindir}/rdfgraphisomorpishm-%{py_ver} +%{_bindir}/rdfpipe-%{py_ver} +%{_bindir}/rdfs2dot-%{py_ver} +%ghost %{_bindir}/csv2rdf +%ghost %{_bindir}/rdf2dot +%ghost %{_bindir}/rdfgraphisomorpishm +%ghost %{_bindir}/rdfpipe +%ghost %{_bindir}/rdfs2dot +%{python_sitelib}/rdflib/ +%{python_sitelib}/rdflib-%{version}-py*.egg-info %changelog diff --git a/rdflib-3.2.3.tar.gz b/rdflib-3.2.3.tar.gz deleted file mode 100644 index a0516a2..0000000 --- a/rdflib-3.2.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a3cab51c14fa6fe379261e0157c110d94e2f75ef62073ddc76fe56f5be624b75 -size 449077 diff --git a/rdflib-4.0.1.tar.gz b/rdflib-4.0.1.tar.gz new file mode 100644 index 0000000..a274c04 --- /dev/null +++ b/rdflib-4.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e8cd9b9f09d69116add36229e05d7d2fbececee1ae65dc17713c57e823a9813 +size 903633 From 4c2884bb0c2fc7c725a59a2d7f1e936084bf6500046135b7085c5fe9137e2c71 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 11 Sep 2014 13:18:29 +0000 Subject: [PATCH 2/2] Accepting request 248597 from home:TheBlackCat:branches:devel:languages:python Update to 4.1.2 OBS-URL: https://build.opensuse.org/request/show/248597 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rdflib?expand=0&rev=40 --- python-rdflib.changes | 69 +++++++++++++++++++++++++++++++++++++++++++ python-rdflib.spec | 16 +++++----- rdflib-4.0.1.tar.gz | 3 -- rdflib-4.1.2.tar.gz | 3 ++ 4 files changed, 80 insertions(+), 11 deletions(-) delete mode 100644 rdflib-4.0.1.tar.gz create mode 100644 rdflib-4.1.2.tar.gz diff --git a/python-rdflib.changes b/python-rdflib.changes index b2ab0e7..826dc4f 100644 --- a/python-rdflib.changes +++ b/python-rdflib.changes @@ -1,3 +1,72 @@ +------------------------------------------------------------------- +Thu Sep 11 12:31:20 UTC 2014 - toddrme2178@gmail.com + +- Update to 4.1.2 + * This is a bug-fix release. + * Fixed unicode/str bug in py3 for rdfpipe + [#375](https://github.com/RDFLib/rdflib/issues/375) +- Update to 4.1.1 + * This is a bug-fix release. + * This will be the last RDFLib release to support python 2.5. + * The RDF/XML Parser was made stricter, now raises exceptions for + illegal repeated node-elements. + [#363](https://github.com/RDFLib/rdflib/issues/363) + * The SPARQLUpdateStore now supports non-ascii unicode in update + statements + [#356](https://github.com/RDFLib/rdflib/issues/356) + * Fixed a bug in the NTriple/NQuad parser wrt. to unicode escape sequences + [#352](https://github.com/RDFLib/rdflib/issues/352) + * HTML5Lib is no longer pinned to 0.95 + [#355](https://github.com/RDFLib/rdflib/issues/360) + * RDF/XML Serializer now uses parseType=Literal for well-formed XML literals + * A bug in the manchester OWL syntax was fixed + [#355](https://github.com/RDFLib/rdflib/issues/355) +- Update to 4.1 + * This is a new minor version RDFLib, which includes a handful of new features: + * A TriG parser was added (we already had a serializer) - it is + up-to-date wrt. to the newest spec from: http://www.w3.org/TR/trig/ + * The Turtle parser was made up to date wrt. to the latest Turtle spec. + * Many more tests have been added - RDFLib now has over 2000 + (passing!) tests. This is mainly thanks to the NT, Turtle, TriG, + NQuads and SPARQL test-suites from W3C. This also included many + fixes to the nt and nquad parsers. + * ```ConjunctiveGraph``` and ```Dataset``` now support directly adding/removing + quads with ```add/addN/remove``` methods. + * ```rdfpipe``` command now supports datasets, and reading/writing context + sensitive formats. + * Optional graph-tracking was added to the Store interface, allowing + empty graphs to be tracked for Datasets. The DataSet class also saw + a general clean-up, see: [#309](https://github.com/RDFLib/rdflib/pull/309) + * After long deprecation, ```BackwardCompatibleGraph``` was removed. + * Minor enhancements/bugs fixed: + * Many code samples in the documentation were fixed thanks to @PuckCh + * The new ```IOMemory``` store was optimised a bit + * ```SPARQL(Update)Store``` has been made more generic. + * MD5 sums were never reinitialized in ```rdflib.compare``` + * Correct default value for empty prefix in N3 + [#312](https://github.com/RDFLib/rdflib/issues/312) + * Fixed tests when running in a non UTF-8 locale + [#344](https://github.com/RDFLib/rdflib/issues/344) + * Prefix in the original turtle have an impact on SPARQL query + resolution + [#313](https://github.com/RDFLib/rdflib/issues/313) + * Duplicate BNode IDs from N3 Parser + [#305](https://github.com/RDFLib/rdflib/issues/305) + * Use QNames for TriG graph names + [#330](https://github.com/RDFLib/rdflib/issues/330) + * \uXXXX escapes in Turtle/N3 were fixed + [#335](https://github.com/RDFLib/rdflib/issues/335) + * A way to limit the number of triples retrieved from the + ```SPARQLStore``` was added + [#346](https://github.com/RDFLib/rdflib/pull/346) + * Dots in localnames in Turtle + [#345](https://github.com/RDFLib/rdflib/issues/345) + [#336](https://github.com/RDFLib/rdflib/issues/336) + * ```BNode``` as Graph's public ID + [#300](https://github.com/RDFLib/rdflib/issues/300) + * Introduced ordering of ```QuotedGraphs``` + [#291](https://github.com/RDFLib/rdflib/issues/291) + ------------------------------------------------------------------- Fri Dec 6 13:57:34 UTC 2013 - toddrme2178@gmail.com diff --git a/python-rdflib.spec b/python-rdflib.spec index 7d78dd4..f88ff8c 100644 --- a/python-rdflib.spec +++ b/python-rdflib.spec @@ -1,7 +1,7 @@ # # spec file for package python-rdflib # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-rdflib -Version: 4.0.1 +Version: 4.1.2 Release: 0 Summary: A Python library for working with RDF License: BSD-3-Clause @@ -74,12 +74,12 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot} # for update-alternatives mv %{buildroot}%{_bindir}/csv2rdf %{buildroot}%{_bindir}/csv2rdf-%{py_ver} mv %{buildroot}%{_bindir}/rdf2dot %{buildroot}%{_bindir}/rdf2dot-%{py_ver} -mv %{buildroot}%{_bindir}/rdfgraphisomorpishm %{buildroot}%{_bindir}/rdfgraphisomorpishm-%{py_ver} +mv %{buildroot}%{_bindir}/rdfgraphisomorphism %{buildroot}%{_bindir}/rdfgraphisomorphism-%{py_ver} mv %{buildroot}%{_bindir}/rdfpipe %{buildroot}%{_bindir}/rdfpipe-%{py_ver} mv %{buildroot}%{_bindir}/rdfs2dot %{buildroot}%{_bindir}/rdfs2dot-%{py_ver} ln -s %{_bindir}/csv2rdf-%{py_ver} %{buildroot}%{_bindir}/csv2rdf ln -s %{_bindir}/rdf2dot-%{py_ver} %{buildroot}%{_bindir}/rdf2dot -ln -s %{_bindir}/rdfgraphisomorpishm-%{py_ver} %{buildroot}%{_bindir}/rdfgraphisomorpishm +ln -s %{_bindir}/rdfgraphisomorphism-%{py_ver} %{buildroot}%{_bindir}/rdfgraphisomorphism ln -s %{_bindir}/rdfpipe-%{py_ver} %{buildroot}%{_bindir}/rdfpipe ln -s %{_bindir}/rdfs2dot-%{py_ver} %{buildroot}%{_bindir}/rdfs2dot @@ -93,7 +93,7 @@ sed -i 's/\r$//' docs/_build/html/_static/jquery.js # of the old binary resulting from the non-update-alternativies-ified package: [[ ! -L %{_bindir}/csv2rdf ]] && rm -f %{_bindir}/csv2rdf [[ ! -L %{_bindir}/rdf2dot ]] && rm -f %{_bindir}/rdf2dot -[[ ! -L %{_bindir}/rdfgraphisomorpishm ]] && rm -f %{_bindir}/rdfgraphisomorpishm +[[ ! -L %{_bindir}/rdfgraphisomorphism ]] && rm -f %{_bindir}/rdfgraphisomorphism [[ ! -L %{_bindir}/rdfpipe ]] && rm -f %{_bindir}/rdfpipe [[ ! -L %{_bindir}/rdfs2dot ]] && rm -f %{_bindir}/rdfs2dot exit 0 @@ -103,7 +103,7 @@ update-alternatives \ --install %{_bindir}/rdfpipe rdfpipe %{_bindir}/rdfpipe-%{py_ver} 30 \ --slave %{_bindir}/csv2rdf csv2rdf %{_bindir}/csv2rdf%{py_ver} \ --slave %{_bindir}/rdf2dot rdf2dot %{_bindir}/rdf2dot%{py_ver} \ - --slave %{_bindir}/rdfgraphisomorpishm rdfgraphisomorpishm %{_bindir}/rdfgraphisomorpishm%{py_ver} \ + --slave %{_bindir}/rdfgraphisomorphism graphisomorpishm %{_bindir}/rdfgraphisomorphism%{py_ver} \ --slave %{_bindir}/rdfs2dot rdfs2dot %{_bindir}/rdfs2dot%{py_ver} %preun @@ -120,12 +120,12 @@ fi %doc CHANGELOG.md LICENSE CONTRIBUTORS README.md docs/_build/html %{_bindir}/csv2rdf-%{py_ver} %{_bindir}/rdf2dot-%{py_ver} -%{_bindir}/rdfgraphisomorpishm-%{py_ver} +%{_bindir}/rdfgraphisomorphism-%{py_ver} %{_bindir}/rdfpipe-%{py_ver} %{_bindir}/rdfs2dot-%{py_ver} %ghost %{_bindir}/csv2rdf %ghost %{_bindir}/rdf2dot -%ghost %{_bindir}/rdfgraphisomorpishm +%ghost %{_bindir}/rdfgraphisomorphism %ghost %{_bindir}/rdfpipe %ghost %{_bindir}/rdfs2dot %{python_sitelib}/rdflib/ diff --git a/rdflib-4.0.1.tar.gz b/rdflib-4.0.1.tar.gz deleted file mode 100644 index a274c04..0000000 --- a/rdflib-4.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5e8cd9b9f09d69116add36229e05d7d2fbececee1ae65dc17713c57e823a9813 -size 903633 diff --git a/rdflib-4.1.2.tar.gz b/rdflib-4.1.2.tar.gz new file mode 100644 index 0000000..b59c6bb --- /dev/null +++ b/rdflib-4.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3cf94bda0867f21468b248ce9f671581efb92ae9edd28ff321716126c6706a4f +size 868883