Querying Models
You can use the parameters feature to run saved queries or gremlin queries.
Saved Queries
- Be sure the Spectrum™ Technology Platform server is running.
- Open a web browser.
- Type the following and press Enter:
- http://<servername>:<port>/hub/
- "?Model="
- The name of the model
- "&QueryName="
- The name of the query
Based on how the query was configured, it would return all doctor entities with a ZIP Code that begins with "9". The specific ZIP Code is included in the query as an optional input value based on a field; in this case, the query returns entities whose values in the "ZIP" field start with "9". You can pass this data using parameters in the following format: &Data.<inputName>=<inputValue>. For example, if you wanted to limit the query to Hermosa Beach, a suburb of Los Angeles, you would enter the following: http://myserver:8080/hub/?Model=Fraud&QueryName=California&Data.ZIP=90254
- Date: YYYY-MM-DD
- Time: HH-MM-SS
- DateTime: YYYY-MM-DDTHH:MM:SS
Gremlin Queries
- Be sure the Spectrum™ Technology Platform server is running.
- Open a web browser.
- Type the following and press Enter:
- http://<servername>:<port>/hub/
- "?Model="
- The name of the model
- "&Query="
- The name of the query