BlueBrain / nexus-forge

Building and Using Knowledge Graphs made easy
https://nexus-forge.readthedocs.io
GNU Lesser General Public License v3.0
38 stars 19 forks source link

Retrieve a resource by _self #270

Closed MFSY closed 6 months ago

MFSY commented 1 year ago

Currently forge.retrieve(id=resource.id) only accepts resource.id when using BlueBrainNexus. Under the hood forge is building a Nexus address for the requested URI by concatenating the endpoint, the org, the proj, the schema and then the URI. A resource._store_metadata._self is already made of the endpoint, the org, the proj, the schema and then the URI.

forge.retrieve(id=resource._store_metadata._self) should work

ssssarah commented 6 months ago

Can we close this?