Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some concrete examples of how to use isample export #15

Closed
rdhyee opened this issue Jun 7, 2024 · 1 comment
Closed

Add some concrete examples of how to use isample export #15

rdhyee opened this issue Jun 7, 2024 · 1 comment

Comments

@rdhyee
Copy link
Contributor

rdhyee commented Jun 7, 2024

I'm in the process of trying out this export client. I'm struggling to figure out the format for the query parameter. For example, I wanted a query to reproduce the default query on the iSamples central interface:

https://central.isample.xyz/isamples_central/ui/#/?searchFields=BOj12i8m44Ml8hDk8LONqgLw0X4tfSWqcKfWcfGu4OjuTwUjo_VV-yq763jYgE4KcScAZs5pHY4eeFV4JisOeikMt76w9tfcbgiVw8BXCKSoZQIDqqkPvgtiqPAe6Nou8MUrsuCnolZ-SsMgVG6l5Ph5whHhl-qF&sortFields=YwvMoabCIirHibBoJ4dDAybCoqmjKj9H0b8vAK31p1GWfomnfpGLo4aiJbQgZGK0

After I figured out how to use the plantuml-encoder and ran

var plantumlEncoder = require('plantuml-encoder')

encoded = "BOj12i8m44Ml8hDk8LONqgLw0X4tfSWqcKfWcfGu4OjuTwUjo_VV-yq763jYgE4KcScAZs5pHY4eeFV4JisOeikMt76w9tfcbgiVw8BXCKSoZQIDqqkPvgtiqPAe6Nou8MUrsuCnolZ-SsMgVG6l5Ph5whHhl-qF";
console.log(plantumlEncoder.decode(encoded)) 

to get

[{"label":"Collection Date","field":"producedBy_resultTimeRange","type":"date-range-facet","minValue":1800,"maxValue":2024,"value":[1800,2023]}]

I'm left with the question -- can I feed the encoded or decoded query to isamples? (I know that I can just try it after writing this up....so let me do so....)

I got the following incantation to work:

isample export -j $ISAMPLES_JWT -f geoparquet -d /tmp -q 'source:SMITHSONIAN'
rdhyee added a commit to rdhyee/export_client that referenced this issue Jun 24, 2024
…port_client_cli.py and provide a specific example incantation
dannymandel pushed a commit that referenced this issue Jun 25, 2024
…_cli.py and provide a specific example incantation (#18)
dannymandel pushed a commit that referenced this issue Jun 25, 2024
…_cli.py and provide a specific example incantation (#18)
dannymandel added a commit that referenced this issue Jun 25, 2024
…_cli.py and provide a specific example incantation (#18) (#19)

Co-authored-by: Raymond Yee <[email protected]>
dannymandel added a commit that referenced this issue Jun 26, 2024
* WIP - prototyping local ui

* This is a test file, work in progress, committing so we don't lose it.  Hasn't been vetted, looked at etc.

* Reorganize CLI and server to be able to run against a downloaded data directory and UI directory

* Include CORS middleware

* Write out a STAC catalog with references to every contained search directory

* wip

* wip

* Use stac.json as stac names, add ui view path

* Open stac browser

* fix path

* wip ui futzing around

* Added login option

* ui tweaks

* Adding built ui to checkout

* refactored client as runnable module and add as isample entry point

* refactored client as runnable module and add as isample entry point

* Moving ui files to client package

* Add collection title and description parameters to the CLI

* Also test that the stac catalog is valid according to the stac validator

* Add a test for writing manifest file

* Test the create method

* Updating readme

* Change name for pipx install

* Add built ui to sources

* More ExportClient tests

* Move heavy libs to load on demand

* Missed this piece earlier…use the rsession we are initialized with

* Treat the query as encoded JSON

* make path to jsonl absolute; make pipx install less generic

* Update dependencies and refresh ui

* flake8 formatting

* Removing unused pieces

* Rebuild ui

* Specify schema for database to better support sparse records

* version bump, depdency updates

* Rebuild ui

* patch version

* don't ignore dist

* Don't ignore dist

* version patch

* Re #15 -- update README.md to get rid of the mention of  export_client_cli.py  and provide a specific example incantation (#18)

* Update ui dependencies

* flake8 fixes

---------

Co-authored-by: Danny Mandel <[email protected]>
Co-authored-by: Raymond Yee <[email protected]>
@rdhyee
Copy link
Contributor Author

rdhyee commented Jul 18, 2024

I'm going to close this issue, not revising the documentation is complete, but Re #15 -- update README.md to get rid of the mention of export_clien… by dannymandel · Pull Request #19 · isamplesorg/export_client to provide a basic example was accepted.

@rdhyee rdhyee closed this as completed Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant