BlueBrain / nexus-forge

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

Support content_type when calling forge.download and Dataset.download #251

Open MFSY opened 2 years ago

eleftherioszisis commented 2 years ago

If specifying the content_type results in selecting a single file, would it be possible for the path argument in forge.download to allow specifying the output filename, instead of the directory? For example:

forge.download(resource, "distribution.contentUrl", content_type="application/json", path="output-file.json")