energystar-gov/energy-star-certified-electric-vehicle-supply-5jwe-c8xm
Loading...

Query the Data Delivery Network

Query the DDN

The easiest way to query any data on Splitgraph is via the "Data Delivery Network" (DDN). The DDN is a single endpoint that speaks the PostgreSQL wire protocol. Any Splitgraph user can connect to it at data.splitgraph.com:5432 and query any version of over 40,000 datasets that are hosted or proxied by Splitgraph.

For example, you can query the energy_star_certified_electric_vehicle_supply table in this repository, by referencing it like:

"energystar-gov/energy-star-certified-electric-vehicle-supply-5jwe-c8xm:latest"."energy_star_certified_electric_vehicle_supply"

or in a full query, like:

SELECT
    ":id", -- Socrata column ID
    "input_voltage_v", -- This indicates the input voltage.
    "communication_standard_application_layer", -- Indicates which standardized protocol is used to send load management messages to the unit.
    "dual_input_level_2_4_a_op_mode_test_total_loss", -- This indicates the 4 A Operation Mode Total Loss for the Level 2 option of a dual input model. For those with ABC enabled, this is the average Full Current Operation Mode Loss for the high and low illuminance conditions.
    "_15_a_operation_mode_test_total_loss_w", -- This indicates the 15 A Operation Mode Total Loss for all models and for those with ABC enabled. For those with ABC enabled, this is the average Full Current Operation Mode Loss for the high and low illuminance conditions.
    "network_capability", -- Indicates whether the model is able to connect to a network.
    "model_number", -- A distinguishing identifier, usually alphanumeric, assigned to a product by the manufacturer or private labeler. For light commercial HVAC models, model number indicates the outdoor model number.
    "maximum_output_power_kw", -- This indicates the maximum output power in kW.
    "output_cord_length_ft", -- This indicates cord set length or mean cord set length, if multiple-output. If 0, there is no cord provided with the model during testing.
    "automatic_brightness_control_abc_capable", -- This indicates if this model is capable of the self-acting mechanism that controls the brightness of a display or lamp as a function of ambient light.
    "communication_standard_network_layer", -- System can communicate using these protocols for sending messages and requests, some of which work wirelessly and some with wires (communication standard media/network layer).
    "product_type", -- This indicates which type of EVSE describes this model.
    "connected_functionality", -- Indicates whether the model meets optional connected criteria as defined in the specification, which may include functions helpful to the electrical grid (standardized signals and responses to manage energy use) and those helpful to consumers, such as scheduling and energy reporting.
    "markets", -- Includes products sold in the U.S. and/or Canada and other ENERGY STAR partner countries. 
    "model_name", -- An identifier assigned by the manufacturer or private labeler to a product or family/series of products for sales and marketing purposes.
    "dual_input_level_2_30_a_op_mode_test_total_loss", -- This indicates the 30 A Operation Mode Total Loss for the Level 2 option of a dual input model. For those with ABC enabled, this is the average Full Current Operation Mode Loss for the high and low illuminance conditions.
    "max_nameplate_output_current_a", -- This indicates the maximum nameplate current in Amperes.
    "output_cord_gauge_awg", -- The cord set American Wire Gauge (AWG) used for test or mean cord set AWG if multiple-output. If no cord was provided for testing, then there will be a NA.
    "auxiliary_product_features", -- Indicates if the model has the auxiliary features to meet regulatory requirements such as credit card readers, revenue grade meters, ISO 15118 PLC boards, RFID and those helpful to consumers such as speakers, display, cameras and occupancy sensing.
    "dual_input_partial_on_mode_total_allowance_w", -- The Partial On Mode Total Allowance is the maximum amount of power allowed in this mode for the model to be ENERGY STAR certified for the Level 2 option of a dual input model.
    "screen_area_if_evse_has_high_res_display_in2", -- The screen area, if the EVSE has a high resolution display.
    "full_current_operation_mode_test_total_loss_w", -- This indicates the Full Current Operation Mode Total Loss for all models and for those with ABC enabled. For those with ABC enabled, this is the average Full Current Operation Mode Loss for the high and low illuminance conditions.
    "dual_input_no_vehicle_mode_total_allowance_w", -- The No Vehicle Mode Total Allowance is the maximum amount of power allowed in this mode for the model to be ENERGY STAR certified for the Level 2 option of a dual input model.
    "number_of_outputs", -- This indicates the number of outputs available for this model.
    "protocols_used_to_support_smart_charging", -- Indicates if the model has the transceiver and/or necessary hardware to support smart charging (i.e. beyond simple managed charging with pulse width modulation or CANBus) using any of these station-to-vehicle protocols.
    "brand_name", -- An identifier assigned by the manufacturer or private labeler to a product or family/series of products for sales and marketing purposes.
    "idle_mode_power_factor", -- This indicates the Idle Mode Power Factor for all models and for those with ABC enabled. For those with ABC enabled, this is the average Idle Mode Power Factor for the high and low illuminance conditions.
    "dual_input_level_2_partial_on_mode_power_factor", -- This indicates the Partial On Mode Power Factor for the Level 2 option of a dual input model. For those with ABC enabled, this is the average Partial On Mode Power Factor for the high and low illuminance conditions.
    "dual_input_idle_mode_total_allowance_w", -- The Idle Mode Total Allowance is the maximum amount of power allowed in this mode for the model to be ENERGY STAR certified for the Level 2 option of a dual input model.
    "dual_input_level_2_full_currop_mode_test_total_lo", -- This indicates the Full Current Operation Mode Total Loss for the Level 2 option of a dual input model. For those with ABC enabled, this is the average Full Current Operation Mode Loss for the high and low illuminance conditions.
    "upc", -- UPC codes provided by partners for ENERGY STAR certified products. The brand, model name and model number continue to serve as the identifiers used to establish certification. The UPC code data below is intended to aid in identification of ENERGY STAR models. UPC code data is not provided for all certified models.
    "maximum_100_measured_luminance_of_the_high_res_display", -- Maximum luminance of the display, if EVSE has a high resolution display measured at maximum available brightness.
    "network_security_standards", -- Describes the standards implemented in the product that provide privacy best practices and additional security by preventing or detecting network compromises.
    "broadband_connection_needed_for_demand_response", -- Describes whether the product can participate in utility demand response programs without the home having a broadband connection.
    "product_features", -- This indicates other features of this EVSE (e.g., vehicle to grid capability, Smart Home Energy Management System (SHEMS) compatibility, etc.).
    "network_protocol_with_wake_capability", -- This indicates which, if any, network protocols that the model is shipped with, and None if the model does not have any network connected capability.
    "no_vehicle_mode_input_power_w", -- This indicates the No Vehicle Mode Input Power for all models and for those with ABC enabled. For those with ABC enabled, this is the average Input Power for the high and low illuminance conditions.
    "no_vehicle_mode_total_allowance_w", -- The No Vehicle Mode Total Allowance is the maximum amount of power allowed in this mode for the model to be ENERGY STAR certified.
    "no_vehicle_mode_power_factor", -- This indicates the No Vehicle Mode Power Factor for all models and for those with ABC enabled. For those with ABC enabled, this is the average No Vehicle Mode Power Factor for the high and low illuminance conditions.
    "partial_on_mode_total_allowance_w", -- The Partial On Mode Total Allowance is the maximum amount of power allowed in this mode for the model to be ENERGY STAR certified.
    "idle_mode_input_power_w", -- This indicates the Idle Mode Input Power for all models and for those with ABC enabled. For those with ABC enabled, this is the average Input Power for the high and low illuminance conditions.
    "idle_mode_total_allowance_w", -- The Idle Mode Total Allowance is the maximum amount of power allowed in this mode for the model to be ENERGY STAR certified.
    "dual_input_level_2_no_vehicle_mode_input_power_w", -- This indicates the No Vehicle Mode Input Power for the Level 2 option of a dual input model. For those with ABC enabled, this is the average Input Power for the high and low illuminance conditions.
    "dual_input_level_2_no_vehicle_mode_power_factor", -- This indicates the No Vehicle Mode Power Factor for the Level 2 option of a dual input model. For those with ABC enabled, this is the average No Vehicle Mode Power Factor for the high and low illuminance conditions.
    "dual_input_level_2_partial_on_mode_input_power_w", -- This indicates the Partial On Mode Input Power for the Level 2 option of a dual input model. For those with ABC enabled, this is the average Input Power for the high and low illuminance conditions.
    "dual_input_level_2_idle_mode_power_factor", -- This indicates the Idle Mode Power Factor for the Level 2 option of a dual input model. For those with ABC enabled, this is the average Idle Mode Power Factor for the high and low illuminance conditions.
    "dual_input_level_2_15_a_op_mode_test_total_loss", -- This indicates the 15 A Operation Mode Total Loss for the Level 2 option of a dual input model. For those with ABC enabled, this is the average Full Current Operation Mode Loss for the high and low illuminance conditions.
    "_4_a_operation_mode_test_total_loss_w", -- This indicates the 4 A Operation Mode Total Loss for all models and for those with ABC enabled. For those with ABC enabled, this is the average Full Current Operation Mode Loss for the high and low illuminance conditions.
    "pd_id", -- The ENERGY STAR Unique ID (ESUID) is a string of seven numbers EPA assigns to an ENERGY STAR model or set of models with unique performance characteristics. This ESUID is unique to both the model and product specification version and is assigned by EPA upon receipt of certification information from the certification body. Each row within the product list will have a unique ESUID. Developers may wish to use this ESUID to track information on certified models in their information systems.
    "energy_star_partner", -- An organization that signed a Partnership Agreement with EPA to manufacture or private label ENERGY STAR qualified products.
    "additional_model_information", -- This indicates for the qualified model or family, family members, additional model names, model numbers and other identifying information associated with a product or family/series of products for sales and marketing purposes. Other identifying information includes, but is not limited to, SKUs, UPC codes, retail numbers, and/or descriptions of models included/not included in the reported Model Family.
    "partial_on_mode_input_power_w", -- This indicates the Partial On Mode Input Power for all models and for those with ABC enabled. For those with ABC enabled, this is the average Input Power for the high and low illuminance conditions.
    "partial_on_mode_power_factor", -- This indicates the Partial On Mode Power Factor for all models and for those with ABC enabled. For those with ABC enabled, this is the average Partial On Mode Power Factor for the high and low illuminance conditions.
    "_30_a_operation_mode_test_total_loss_w", -- This indicates the 30 A Operation Mode Total Loss for all models and for those with ABC enabled. For those with ABC enabled, this is the average Full Current Operation Mode Loss for the high and low illuminance conditions.
    "dual_input_level_2_idle_mode_input_power_w", -- This indicates the Idle Mode Input Power for the Level 2 option of a dual input model. For those with ABC enabled, this is the average Input Power for the high and low illuminance conditions.
    "date_available_on_market", -- The date that the model is available for purchase. 
    "date_qualified", -- The date on which the product was confirmed to meet the ENERGY STAR specification.
    "energy_star_model_identifier" -- A unique string of characters assigned by certification bodies (CBs) to identify a model or set of models with the same performance characteristics. This identifier should remain the same for a model even if it is recertified to a new version of an ENERGY STAR specification. This string of characters is determined by CBs and is not the ENERGY STAR Unique ID assigned by EPA. 
FROM
    "energystar-gov/energy-star-certified-electric-vehicle-supply-5jwe-c8xm:latest"."energy_star_certified_electric_vehicle_supply"
LIMIT 100;

Connecting to the DDN is easy. All you need is an existing SQL client that can connect to Postgres. As long as you have a SQL client ready, you'll be able to query energystar-gov/energy-star-certified-electric-vehicle-supply-5jwe-c8xm with SQL in under 60 seconds.

Query Your Local Engine

Install Splitgraph Locally
bash -c "$(curl -sL https://github.com/splitgraph/splitgraph/releases/latest/download/install.sh)"
 

Read the installation docs.

Splitgraph Cloud is built around Splitgraph Core (GitHub), which includes a local Splitgraph Engine packaged as a Docker image. Splitgraph Cloud is basically a scaled-up version of that local Engine. When you query the Data Delivery Network or the REST API, we mount the relevant datasets in an Engine on our servers and execute your query on it.

It's possible to run this engine locally. You'll need a Mac, Windows or Linux system to install sgr, and a Docker installation to run the engine. You don't need to know how to actually use Docker; sgrcan manage the image, container and volume for you.

There are a few ways to ingest data into the local engine.

For external repositories, the Splitgraph Engine can "mount" upstream data sources by using sgr mount. This feature is built around Postgres Foreign Data Wrappers (FDW). You can write custom "mount handlers" for any upstream data source. For an example, we blogged about making a custom mount handler for HackerNews stories.

For hosted datasets (like this repository), where the author has pushed Splitgraph Images to the repository, you can "clone" and/or "checkout" the data using sgr cloneand sgr checkout.

Cloning Data

Because energystar-gov/energy-star-certified-electric-vehicle-supply-5jwe-c8xm:latest is a Splitgraph Image, you can clone the data from Spltgraph Cloud to your local engine, where you can query it like any other Postgres database, using any of your existing tools.

First, install Splitgraph if you haven't already.

Clone the metadata with sgr clone

This will be quick, and does not download the actual data.

sgr clone energystar-gov/energy-star-certified-electric-vehicle-supply-5jwe-c8xm

Checkout the data

Once you've cloned the data, you need to "checkout" the tag that you want. For example, to checkout the latest tag:

sgr checkout energystar-gov/energy-star-certified-electric-vehicle-supply-5jwe-c8xm:latest

This will download all the objects for the latest tag of energystar-gov/energy-star-certified-electric-vehicle-supply-5jwe-c8xm and load them into the Splitgraph Engine. Depending on your connection speed and the size of the data, you will need to wait for the checkout to complete. Once it's complete, you will be able to query the data like you would any other Postgres database.

Alternatively, use "layered checkout" to avoid downloading all the data

The data in energystar-gov/energy-star-certified-electric-vehicle-supply-5jwe-c8xm:latest is 0 bytes. If this is too big to download all at once, or perhaps you only need to query a subset of it, you can use a layered checkout.:

sgr checkout --layered energystar-gov/energy-star-certified-electric-vehicle-supply-5jwe-c8xm:latest

This will not download all the data, but it will create a schema comprised of foreign tables, that you can query as you would any other data. Splitgraph will lazily download the required objects as you query the data. In some cases, this might be faster or more efficient than a regular checkout.

Read the layered querying documentation to learn about when and why you might want to use layered queries.

Query the data with your existing tools

Once you've loaded the data into your local Splitgraph Engine, you can query it with any of your existing tools. As far as they're concerned, energystar-gov/energy-star-certified-electric-vehicle-supply-5jwe-c8xm is just another Postgres schema.

Related Documentation:

Loading...