I would like to build a url that returns a simple quiver analysis (a timeseries plot over time for example). I know it is possible to do simple quiver queries that way but there is not dedicated palantir documentation on the topic.
Do someone know how to proceed? What is the syntax to write down this url?
Thank you for your help
This is unfortunately not a supported feature Quiver has right now.
I can’t really think of any workarounds, could you explain your workflow a bit so we could consider some possible approaches to support this?
Hello Apotluri,
Gemini told me it is possible to do it thought. He gave me the following syntax.
import json
import base64
def generate_quiver_url(engine_rid):
analysis_rid = "ri.quiver.main.analysis.xxxx-xxxx"
# 1. Define the internal state JSON
state = {
"globallyIdentifiedParameters": {
"engine_id": { # Match the Parameter ID in Quiver
"type": "object",
"value": engine_rid
}
}
}
# 2. Stringify and Base64 encode
state_json = json.dumps(state)
encoded_state = base64.b64encode(state_json.encode('utf-8')).decode('utf-8')
# 3. Construct final URL
return f"https://your-foundry-link.com/workspace/quiver/analysis/{analysis_rid}#state={encoded_state}"
It would be very usefull for my use case. I try to build a url for every flights in my databasis, so that I can quicly see the parameters I’m interested in for every flight and aircraft I analyse without to look for each parameters in the ontology.
If you have a workaround to suggest, I would be happy to test it.
Thank you for the support
Thomas
Hey, I don’t think this would work. The state part of the URL is a bit more complicated and its not something you can just generate yourself. In general, there isn’t really a primitive for creating a quiver analysis from the URL, you need to use the UI.
If your workflow is that you want to be able to quickly switch which object you’re looking at, I would suggest using quiver dashboards and setting it up with an input (https://www.palantir.com/docs/foundry/quiver/dashboards-create/#define-your-dashboard-inputs-and-outputs) which is the object you’re looking at. That way you can just quickly swap the input and the charts would update based on your newly selected value.
If you need this to be done by URL, you could embed your dashboard in workshop with a workshop variable being the input to the quiver dashboard and then have the workshop variable controlled by the URL (https://www.palantir.com/docs/foundry/workshop/routing/#routing-for-variables).