nexus-forge
nexus-forge copied to clipboard
Building and Using Knowledge Graphs made easy
Remove nexus_sdk from nexus store when uploading files and add `x-nxs-file-content-length` to header
Changes: - Replace the use of nexus_sdk with requests.post call - Add `x-nxs-file-content-length` parameter to headers
To tackle [#388](https://github.com/BlueBrain/nexus-forge/issues/388) This is the simplest implementation to "attach" and image, and then use it to add it to any resource, similar to `attach` for distributions. Example of how...
When specifying that a value which is a literal that should be unequal to a value, it would check that it is equal to it. This fixes that
Motivated by: Future batch retrieval feature, that could benefit from the existing mechanism, under some changes. + Aligning batch/single request logics (remove duplicate logic) For the methods: Deprecate, Tag, Update,...
`forge.validate(resource, type_=type_` on a test resource behaves in unexpected ways (at least to me). Let's start with: ``` forge = KnowledgeGraphForge('https://raw.githubusercontent.com/BlueBrain/nexus-forge/master/examples/notebooks/use-cases/prod-forge-nexus.yml', token= staging_token, bucket='dke/kgforge_tests', endpoint='https://staging.nise.bbp.epfl.ch/nexus/v1') res = forge.retrieve('https://bbp.epfl.ch/dke/kgforge_tests/66d53b15-3d20-4aa0-8e48-e43cf7a2520d') ``` 1....
Hello, Currently, there doesn't appear to be a way to update a token except for recreating a whole new `forge` instance (which is heavy). Thus, we are running into timeout...
Tests use pytest-bdd==3.4.0, maybe it's time to remove pytest-bdd? Comment: when using the latest released version of pytest-bdd, many test fail.
When creating a `Dataset` from a `Resource`, if the instance of `Resource` has `LazyActions` they are transformed to strings, so they are not found when `collecting` lazy actions
Similar to `add_distribution` to the dataset objects, we should have a `add_image` for Resources. This would be very useful, for example for traces, but now E-Models will also have images...