Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions doc/api_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ KGClient
:members:
:show-inheritance:


Collection
==========

.. autoclass:: fairgraph.Collection
:members:
:show-inheritance:

Queries
=======

Expand Down
13 changes: 11 additions & 2 deletions doc/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,24 @@ Version 0.13.0
==============

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

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

The documentation has been refreshed and extended.

This version of fairgraph provides the openMINDS v4 schemas.

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


Version 0.12.2
==============
Expand Down Expand Up @@ -275,3 +281,6 @@ Version 0.6.0
- fix for when query values contain non-ascii characters
- when updating an object, also update the cached version
- more robust download method for Dataset


.. _`openMINDS Python library`: https://pypi.org/project/openMINDS
2 changes: 1 addition & 1 deletion fairgraph/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from .collection import Collection
from . import client, errors, openminds, utility

__version__ = "0.12.2"
__version__ = "0.13.0"

utility.initialise_instances(
[
Expand Down
4 changes: 0 additions & 4 deletions fairgraph/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ def load(self, *paths):
super().load(*paths)

def upload(self, client, default_space=None, space_map=None, verbosity=0):
# if not self.complete:
# raise Exception("Collection contains local ids. Run `generate_ids()` and then re-save the collection")
# # self.generate_ids(lambda node: client.uri_from_uuid(uuid4()))

nodes_to_save = [
node
for node in self.sort_nodes_for_upload()
Expand Down
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
[project]
name = "fairgraph"
version = "0.13.0.dev.0"
version = "0.13.0"
description = "Python API for the EBRAINS Knowledge Graph"
readme = "README.md"
authors = [
{ name="Andrew P. Davison", email="andrew.davison@cnrs.fr" }
]
requires-python = ">=3.8"
license = {text = "Apache Software License"}
requires-python = ">=3.9"
license = "Apache-2.0"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3"
]
keywords = ["ebrains", "hbp", "metadata", "electrophysiology", "knowledge-graph"]
Expand Down