Skip to content

Commit 1abdbeb

Browse files
authored
Merge pull request #105 from apdavison/release-candidate
Release 0.13.0
2 parents 0376fe2 + 6af515c commit 1abdbeb

File tree

5 files changed

+23
-11
lines changed

5 files changed

+23
-11
lines changed

doc/api_reference.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ KGClient
5757
:members:
5858
:show-inheritance:
5959

60+
61+
Collection
62+
==========
63+
64+
.. autoclass:: fairgraph.Collection
65+
:members:
66+
:show-inheritance:
67+
6068
Queries
6169
=======
6270

doc/release_notes.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,24 @@ Version 0.13.0
66
==============
77

88
For this version we have extensively rewritten fairgraph,
9-
to build directly on the [openMINDS Python library](https://pypi.org/project/openMINDS/).
9+
to build directly on the `openMINDS Python library`_.
1010
This
1111

1212
- ensures (almost) perfect compatibility between the openMINDS API and the fairgraph API,
1313
so people can start developing locally with openMINDS-Python, then just change to
1414
importing "fairgraph.openminds" instead of "openminds.v4" when they wish to upload
1515
metadata to the Knowledge Graph.
16-
- adds functionality for working with local JSON-LD files to fairgraph.
16+
- adds functionality for working with local JSON-LD files in fairgraph.
17+
- provides the openMINDS instances libraries as class attributes, e.g., ``Species.mus_musculus``
18+
- adds the :class:`Collection`, which has the functionality of the equivalent class in openMINDS-Python,
19+
but in addition has support for uploading an entire metadata collection to the KG in a single call.
1720

1821
The documentation has been refreshed and extended.
22+
1923
This version of fairgraph provides the openMINDS v4 schemas.
2024

25+
There is one breaking change, the keyword argument "scope" has been renamed to "release_status".
26+
2127

2228
Version 0.12.2
2329
==============
@@ -275,3 +281,6 @@ Version 0.6.0
275281
- fix for when query values contain non-ascii characters
276282
- when updating an object, also update the cached version
277283
- more robust download method for Dataset
284+
285+
286+
.. _`openMINDS Python library`: https://pypi.org/project/openMINDS

fairgraph/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from .collection import Collection
2929
from . import client, errors, openminds, utility
3030

31-
__version__ = "0.12.2"
31+
__version__ = "0.13.0"
3232

3333
utility.initialise_instances(
3434
[

fairgraph/collection.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ def load(self, *paths):
4747
super().load(*paths)
4848

4949
def upload(self, client, default_space=None, space_map=None, verbosity=0):
50-
# if not self.complete:
51-
# raise Exception("Collection contains local ids. Run `generate_ids()` and then re-save the collection")
52-
# # self.generate_ids(lambda node: client.uri_from_uuid(uuid4()))
53-
5450
nodes_to_save = [
5551
node
5652
for node in self.sort_nodes_for_upload()

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
[project]
22
name = "fairgraph"
3-
version = "0.13.0.dev.0"
3+
version = "0.13.0"
44
description = "Python API for the EBRAINS Knowledge Graph"
55
readme = "README.md"
66
authors = [
77
{ name="Andrew P. Davison", email="[email protected]" }
88
]
9-
requires-python = ">=3.8"
10-
license = {text = "Apache Software License"}
9+
requires-python = ">=3.9"
10+
license = "Apache-2.0"
1111
classifiers = [
1212
"Development Status :: 4 - Beta",
1313
"Intended Audience :: Science/Research",
1414
"Topic :: Scientific/Engineering",
15-
"License :: OSI Approved :: Apache Software License",
1615
"Programming Language :: Python :: 3"
1716
]
1817
keywords = ["ebrains", "hbp", "metadata", "electrophysiology", "knowledge-graph"]

0 commit comments

Comments
 (0)