Querying Models

You can use the parameters feature to run saved queries or gremlin queries.

Saved Queries

  1. Be sure the Spectrum™ Technology Platform server is running.
  2. Open a web browser.
  3. Type the following and press Enter:
    • http://<servername>:<port>/hub/
    • "?Model="
    • The name of the model
    • "&QueryName="
    • The name of the query
    For example, if your server is named "myserver", it uses default HTTP port 8080, you are opening a model called "Fraud" containing insurance claim data for the southwestern United States, and you have a saved query called "California", you would enter the following: http://myserver:8080/hub/?Model=Fraud&QueryName=California

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

Note that if you enter a query that includes dates or times, they must be included in the native format:
  • Date: YYYY-MM-DD
  • Time: HH-MM-SS
  • DateTime: YYYY-MM-DDTHH:MM:SS

Gremlin Queries

  1. Be sure the Spectrum™ Technology Platform server is running.
  2. Open a web browser.
  3. Type the following and press Enter:
    • http://<servername>:<port>/hub/
    • "?Model="
    • The name of the model
    • "&Query="
    • The name of the query
    For example, if your server is named "myserver", it uses default HTTP port 8080, you are opening a model called "Fraud" containing insurance claim data, and you want to open the entity with an internal ID of "1", you would enter the following: http://myserver:8080/hub/?Model=Fraud&Query=g.v(1)