-
Notifications
You must be signed in to change notification settings - Fork 4
Export BEL Nanopubs in search result to a file. #5
Comments
The Export button has been added on the top right of the search results. Questions: |
Tony - can you provide an API endpoint that will accept a search query and provide an export as either BEL Script, XBEL or Evidence JSON as you did with the Dataset exports? After that, please assign this back to Kelly so she can redo the Export button to allow a dropdown to select the export format. |
Can do. I can add the |
OpenBEL API 0.6.1 added retrieving BEL Nanopubs in any supported file format. I have improved the solution in the issue description above, @kellymccann91 please take a look. |
Tony shared the following on the API enhancement: The /api/evidence and /api/datasets/{id}/evidence endpoints will respect the "Accept" request header and "format" query parameter. The "format" query parameter is preferred when both are provided. Example: Accept: application/xml OR /api/evidence?start=0&size=1000&filter={...}&format=xbel The OpenBEL API provides the following by default:
There are some other RDF formats supported but they can wait for 104. |
Expanding upon the initial issue to support a CSV export:
We should allow export of the search results (total set after facets selected) to any file format supported by the OpenBEL API. We will then make CSV export a supported BEL Nanopub format.
This is a more useful, general solution that allows BEL Manager to export to all core file formats (e.g. BEL Script, XBEL, JSON) as well as user-added formats (e.g. SIF).
This work would involve:
/api/evidence
endpoint usingAccept
header orformat
query parameter.Example:
Export at most 5000 BEL Nanopubs to a BEL Script file:
Export BEL Nanopubs filtered to Human to an XBEL file:
The text was updated successfully, but these errors were encountered: