Skip to content

Commit 529baba

Browse files
authored
Merge pull request #348 from mpsonntag/release
Preparation for version 1.4.4 release LGTM!
2 parents 481d4a6 + f701013 commit 529baba

File tree

5 files changed

+49
-7
lines changed

5 files changed

+49
-7
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ install:
6363
export PIPCMD=pip;
6464
fi;
6565

66-
- $PIPCMD install lxml enum34 pyyaml==4.2b4 rdflib
66+
- $PIPCMD install lxml enum34 pyyaml rdflib
6767

6868
script:
6969
- which $PYCMD

CHANGELOG.md

+44-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,53 @@
33
Used to document all changes from previous releases and collect changes
44
until the next release.
55

6-
# Latest changes in master
6+
# Version 1.4.4
7+
8+
## Introduction of inline style sheet
9+
10+
The `XMLWriter` can now be used to save an XML odML document with an inline XSL stylesheet for rendered viewing via a web browser.
11+
The document can be saved with the current default G-Node odML document style or with a custom style. When a document containing such a stylesheet is loaded, the style is lost and needs to be provided again as described above. See issue #331 for details.
12+
13+
## Export leaf feature
14+
15+
Subsets of odML documents can now be exported using the introduced `export_leaf` features for `Section` and `Property`.
16+
When invoked on a `Section` or a `Property`, the method will return all direct ancestor `Sections` including all their direct `Properties` up to the root of the document and return a new, cloned document containing only this particular direct branch. See issue #340 for details.
17+
18+
## Major pyyaml dependency fix
19+
20+
Since issue #291 the odml package had its pyyaml dependency fixed to version `4.2b4`.
21+
This release fixes the original problem with the pyyaml distribution and removes the fix to pyyaml version `4.2b4`.
22+
See issue #343 and pull request #344 for details.
23+
24+
## odML package structure changes to reduce import cycles
25+
26+
The package structure was changed to reduce the number of import cycles and make various parser classes more easily available via the `__init__` files. See issues #317 and #333 for details.
27+
28+
The changes to the package structure should not affect any of the main parsers and how they were previously imported nor affect any of the command line scripts provided with this package.
29+
30+
The following changes have been introduced to the package structure:
31+
- a new subdirectory `odml.tools.converters` is added.
32+
- `format_converter` and `version_converter` are moved into this directory.
33+
- since [odml-ui](https://github.com/G-Node/odml-ui) depends on the `version_converter`, a dummy file is left at its original location. It imports the `VersionConverter` class from its new location and prints a deprecation warning.
34+
- the dict `RDFConversionFormats` from file `tools.utils` has been moved to `RDF_CONVERSION_FORMATS` in file `tools.parser_utils` and all usages have been switched to the new dict.
35+
- the dict `ConversionFormats` from file `tools.utils` has been moved to the only file its using it, `tools.converters.format_converter`.
36+
- the now unused file `tools.utils` has been removed.
37+
- a new subdirectory `odml.rdf` was added and the files `fuzzy_finder` and `query_creator` were moved into this directory. Both files provide convenience and additional functions for odML specific RDF and are fairly independent from the rest of the library. Conceptually they are best kept separate from other convenience tools and parsers.
738

839
## Minor changes, updates and fixes
40+
941
- The `section_subclasses.yaml` file is moved from the `doc` folder to the new `odml/resources` folder. This allows usage of the file with all install options. See issue #212 for details.
42+
- The RDF subclasses now also support DataCite Section types.
43+
- The `rdf_converter` now features a new `load_rdf_subclasses` function, that either provides the content of the `resources/subclasses.yml` file or, if it cannot be accessed, deals with it without breaking the `RDFWriter`.
44+
- Fixes calling the deprecated `odml.Property.value` attribute in the `rdf_converter`.
45+
- The `RDFWriter` will now call every odml documents `finalize` method to ensure that all `links` and `includes` are resolved before exporting to RDF.
46+
- The OWL odml ontology file is moved from `doc/root-ontology.ttl` to `odml/resources/odml-ontology.ttl` and included in `Manifest.in`.
47+
- The RDF namespace is changed from https://g-node.org/projects/odml-rdf# to https://g-node.org/odml-rdf#. This step is taken since the odml-rdf ontology OWL file will be available under this URL. This change includes changes in all code and documentation occurrences in the project.
48+
- Typos and minor inconsistencies where fixed in the odml - RDF subclasses mapping file `resources/section_subclasses.yaml`.
49+
- The OWL odml ontology file `resources/odml-ontology.ttl` has been restructured:
50+
- all available subclasses where moved to their own file section.
51+
- all subclasses that are created via the `resources/section_subclasses.yaml` file have been added to the ontology file as well.
52+
- Value errors concerning `date`, `time` and `datetime` now contain a message providing the required format. See issue #341 for details.
1053

1154
# Version 1.4.3
1255

doc/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __new__(meta, name, bases, clsdict):
7575

7676
# General information about the project.
7777
project = u'python-odml'
78-
copyright = u'2011-2018, German Neuroinformatics Node (G-Node); based on work by Hagen Fritsch'
78+
copyright = u'2011-2020, German Neuroinformatics Node (G-Node); based on work by Hagen Fritsch'
7979

8080
# The version info for the project you're documenting, acts as replacement for
8181
# |version| and |release|, also used in various other places throughout the

odml/info.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{
2-
"VERSION": "1.4.3",
2+
"VERSION": "1.4.4",
33
"FORMAT_VERSION": "1.1",
44
"AUTHOR": "Hagen Fritsch, Jan Grewe, Christian Kellner, Achilleas Koutsou, Michael Sonntag, Lyuba Zehl",
5-
"COPYRIGHT": "(c) 2011-2019, German Neuroinformatics Node",
5+
"COPYRIGHT": "(c) 2011-2020, German Neuroinformatics Node",
66
"CONTACT": "[email protected]",
77
"HOMEPAGE": "https://github.com/G-Node/python-odml",
88
"CLASSIFIERS": [
99
"Development Status :: 5 - Production/Stable",
1010
"Programming Language :: Python",
11-
"Programming Language :: Python :: 2.7",
1211
"Programming Language :: Python :: 3.5",
1312
"Programming Language :: Python :: 3.6",
1413
"Programming Language :: Python :: 3.7",

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
with open('README.md') as f:
3131
description_text = f.read()
3232

33-
install_req = ["lxml", "pyyaml==4.2b4", "rdflib", "docopt", "pathlib"]
33+
install_req = ["lxml", "pyyaml>=5.1", "rdflib", "docopt", "pathlib"]
3434

3535
if sys.version_info < (3, 4):
3636
install_req += ["enum34"]

0 commit comments

Comments
 (0)