Accepting request 248598 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/248598 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rdflib?expand=0&rev=19
This commit is contained in:
commit
57eb7de92e
@ -1,3 +1,96 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
- 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
|
||||
|
||||
|
@ -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: 3.2.3
|
||||
Version: 4.1.2
|
||||
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}/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}/rdfgraphisomorphism-%{py_ver} %{buildroot}%{_bindir}/rdfgraphisomorphism
|
||||
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}/rdfgraphisomorphism ]] && rm -f %{_bindir}/rdfgraphisomorphism
|
||||
[[ ! -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}/rdfgraphisomorphism graphisomorpishm %{_bindir}/rdfgraphisomorphism%{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}/rdfgraphisomorphism-%{py_ver}
|
||||
%{_bindir}/rdfpipe-%{py_ver}
|
||||
%{_bindir}/rdfs2dot-%{py_ver}
|
||||
%ghost %{_bindir}/csv2rdf
|
||||
%ghost %{_bindir}/rdf2dot
|
||||
%ghost %{_bindir}/rdfgraphisomorphism
|
||||
%ghost %{_bindir}/rdfpipe
|
||||
%ghost %{_bindir}/rdfs2dot
|
||||
%{python_sitelib}/rdflib/
|
||||
%{python_sitelib}/rdflib-%{version}-py*.egg-info
|
||||
|
||||
%changelog
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a3cab51c14fa6fe379261e0157c110d94e2f75ef62073ddc76fe56f5be624b75
|
||||
size 449077
|
3
rdflib-4.1.2.tar.gz
Normal file
3
rdflib-4.1.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3cf94bda0867f21468b248ce9f671581efb92ae9edd28ff321716126c6706a4f
|
||||
size 868883
|
Loading…
Reference in New Issue
Block a user