Add a catalog app that is responsible for fetching from catalogues and transforming these into graphs. The following API URLs are now implemented:
/catalogs/search/: use with GET to get a graph from a catalogue query, with the parameters catalog (catalog URI), query (so far only simple queries), optional start (start record, beginning with 0) and optional max_records (maximum number of requested records)
/catalogs/catalogs/: get a graph of all available catalogs
The code seems to work with all catalogues implemented in the explorer, but it currently works very inefficiently with catalogues that get all results at once (such as STCN), because we cannot reuse Reader instances between requests. We will have discuss how we want to solve this problem.
The returned graphs are not completely according to our collection ontology, because I did not completely understand how it was supposed to work, so I suggest we look at it together.
I changed the minimum Python version to 3.9, because our server will have RHEL 9 with Python 3.9.
Add a
catalog
app that is responsible for fetching from catalogues and transforming these into graphs. The following API URLs are now implemented:/catalogs/search/
: use with GET to get a graph from a catalogue query, with the parameterscatalog
(catalog URI),query
(so far only simple queries), optionalstart
(start record, beginning with 0) and optionalmax_records
(maximum number of requested records)/catalogs/catalogs/
: get a graph of all available catalogsExample:
The code seems to work with all catalogues implemented in the explorer, but it currently works very inefficiently with catalogues that get all results at once (such as STCN), because we cannot reuse
Reader
instances between requests. We will have discuss how we want to solve this problem.The returned graphs are not completely according to our collection ontology, because I did not completely understand how it was supposed to work, so I suggest we look at it together.
I changed the minimum Python version to 3.9, because our server will have RHEL 9 with Python 3.9.