edmonton-ca/animal-care-edmonton-insight-community-2r38-7gdf
Icon for Socrata external plugin

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 animal_care_edmonton_insight_community table in this repository, by referencing it like:

"edmonton-ca/animal-care-edmonton-insight-community-2r38-7gdf:latest"."animal_care_edmonton_insight_community"

or in a full query, like:

SELECT
    ":id", -- Socrata column ID
    "age_rollup_detailed_study_profiling_questionnaire_2014", -- Profiling question, Based on birthdate entered by Respondent. System Determined. Question: Age Rollup? -  || Possible Answers: Under 15/15-17/18-24/25-29/30-34/35-39/40-44/45-49/50-54/55-59/60-64/65-69/70-74/75-79/80 and over
    "q11_home_language_study_profiling_questionnaire_2014", -- Profiling question, one response selected by respondent. - What is the primary language spoken in your household? || Possible Answers: English/Arabic/Cantonese/Spanish/Panjabi (Punjabi)/French/German/Mandarin/Tagalog (Pilipino, Filipino)/Ukrainian/Other (Specify)
    "q7_children_study_profiling_questionnaire_2014", -- Profiling question, one response selected by respondent. - Do you have children 18 or under living at home? || Possible Answers: Yes/No
    "animal_info_i_would_not_visit_this_page", -- Animal Care and Control is considering a Facebook account.  What information would you like to receive if it was created? I would not visit this page - Possible Values - 0 - No, 1 - Yes
    "animal_info_event_and_promotional_information", -- Animal Care and Control is considering a Facebook account.  What information would you like to receive if it was created? Event and promotional information - Possible Values - 0 - No, 1 - Yes
    "animal_reward_other_please_specify", -- What would you like to see within the reward program? Other . Possible Values - 0 - No, 1 - Yes
    "animal_reward_tracking_system_for_pet_s_medical_information_id_", -- What would you like to see within the reward program? Tracking system for pet's medical information, ID numbers, etc.. Possible Values - 0 - No, 1 - Yes
    "animal_reward_notification_of_near_by_sponsor_deals", -- What would you like to see within the reward program? Notification of near-by sponsor deals. Possible Values - 0 - No, 1 - Yes
    "animal_interactiontype_webcopy11_other", -- How would you rate your experience with this other interaction?  - Possible Values - 5 Very Satisfied, 4 Somewhat satisfied, 3 Neither satisfied nor unsatisfied 2 Somewhat unsatisfied 1 Very unsatisfied
    "animal_interactiontype_webcopy8_received_a_visit_warning_or_tic", -- How would you rate your experience receiving a visit, warning or ticket?  - Possible Values - 5 Very Satisfied, 4 Somewhat satisfied, 3 Neither satisfied nor unsatisfied 2 Somewhat unsatisfied 1 Very unsatisfied
    "animal_interactiontype_webcopy6_borrowing_a_humane_animal_trap", -- How would you rate your experience borrowing a humane animal trap?  - Possible Values - 5 Very Satisfied, 4 Somewhat satisfied, 3 Neither satisfied nor unsatisfied 2 Somewhat unsatisfied 1 Very unsatisfied
    "animal_interactiontype_webcopy10_searched_for_my_lost_pet", -- How would you rate your experience searching for my lost pet?  - Possible Values - 5 Very Satisfied, 4 Somewhat satisfied, 3 Neither satisfied nor unsatisfied 2 Somewhat unsatisfied 1 Very unsatisfied
    "animal_interactiontype_webcopy3_issued_a_bylaw_complaint", -- How would you rate your experience issuing a complaint?  - Possible Values - 5 Very Satisfied, 4 Somewhat satisfied, 3 Neither satisfied nor unsatisfied 2 Somewhat unsatisfied 1 Very unsatisfied
    "animal_interactiontype_dropped_off_an_animal_or_played_a_role_i", -- What did you interact with Animal Care and Control Centre? - Dropped off an animal or played a role in having an animal picked up 0 - No, 1 - Yes
    "animal_enforcement_barking_dogs", -- In your opinion, which of the following animal control bylaws do you feel Animal Care and Control is successful at enforcing, if any: Barking dogs - 0 - No,1 - Yes
    "animal_enforcement_dogs_off_leash", -- In your opinion, which of the following animal control bylaws do you feel Animal Care and Control is successful at enforcing, if any: Dogs off leash- 0 - No,1 - Yes
    "animal_bylaw_licence_fees_help_support_public_safety_through_en", -- Animal Care and Control enforces pet licensing bylaws.  Please tell us how much you agree or disagree with the following statements: Licence fees help support public safety through enforcement services - 5 Strongly agree 4 Somewhat agree 3 Neither agree nor disagree 2 Somewhat disagree 1 Strongly disagree, I don't know
    "animal_bylaw_licences_help_reunite_owners_and_pets", -- Animal Care and Control enforces pet licensing bylaws.  Please tell us how much you agree or disagree with the following statements: Licences help reunite owners and pets - 5 Strongly agree 4 Somewhat agree 3 Neither agree nor disagree 2 Somewhat disagree 1 Strongly disagree, I don't know
    "animal_bylaw_licensing_a_cat_is_a_money_grab", -- Animal Care and Control enforces pet licensing bylaws.  Please tell us how much you agree or disagree with the following statements: Licensing a cat is a money grab - 5 Strongly agree 4 Somewhat agree 3 Neither agree nor disagree 2 Somewhat disagree 1 Strongly disagree, I don't know
    "animal_bylaw_licensing_a_dog_is_a_money_grab", -- Animal Care and Control enforces pet licensing bylaws.  Please tell us how much you agree or disagree with the following statements: Licensing a dog is a money grab - 5 Strongly agree 4 Somewhat agree 3 Neither agree nor disagree 2 Somewhat disagree 1 Strongly disagree, I don't know
    "animal_yes_no_euthanize_all_unwanted_animals", -- To the best of your knowledge, does Animal Care and Control - Euthanize all unwanted animals - No, Yes, Don’t Know
    "animal_effective_number_of_animals_per_home", -- Respondents were asked the following question: How effective or ineffective do you feel Animal Care and Control is at enforcing the following animal control bylaws? - Number of animals per home - 5 Very effective, 4 Somewhat effective, 3 Neutral, 2 Somewhat ineffective, 1 Not at all effective, I don't know
    "animal_effective_barking_dogs", -- Respondents were asked the following question: How effective or ineffective do you feel Animal Care and Control is at enforcing the following animal control bylaws? - Barking dogs - 5 Very effective, 4 Somewhat effective, 3 Neutral, 2 Somewhat ineffective, 1 Not at all effective, I don't know
    "animal_effective_roaming_cats", -- Respondents were asked the following question: How effective or ineffective do you feel Animal Care and Control is at enforcing the following animal control bylaws? - Roaming cats - 5 Very effective, 4 Somewhat effective, 3 Neutral, 2 Somewhat ineffective, 1 Not at all effective, I don't know
    "animal_agree_animal_care_and_control_is_a_good_source_for_respo", -- Respondents were asked the following question: Animal Care and Control is a good source for responsible pet ownership information - 5 Strongly agree 4 Somewhat agree 3 Neither agree nor disagree 2 Somewhat disagree 1 Strongly disagree, I don't know
    "animal_agree_i_fully_understand_the_role_animal_care_and_contro", -- Respondents were asked the following question: I fully understand the role Animal Care and Control plays in the community - 5 Strongly agree 4 Somewhat agree 3 Neither agree nor disagree 2 Somewhat disagree 1 Strongly disagree, I don't know
    "animal_mind_pet_adoption_facility", -- Respondents were asked the following question: Which of the following comes to mind when you think of "The City of Edmonton Animal Care and Control Centre"? - Pet adoption facility  -  0 - No 1 - Yes
    "animal_mind_friendly_and_informative_customer_service", -- Respondents were asked the following question: Which of the following comes to mind when you think of "The City of Edmonton Animal Care and Control Centre"? - Friendly and informative customer service  -  0 - No 1 - Yes
    "animal_mind_majority_of_animals_are_euthanized", -- Respondents were asked the following question: Which of the following comes to mind when you think of "The City of Edmonton Animal Care and Control Centre"? - Majority of animals are euthanized  -  0 - No 1 - Yes
    "animal_mind_pet_bylaw_enforcement", -- Respondents were asked the following question: Which of the following comes to mind when you think of "The City of Edmonton Animal Care and Control Centre"? - Pet bylaw enforcement  -  0 - No 1 - Yes
    "animal_mind_jail_cell_for_animals_city_pound", -- Respondents were asked the following question: Which of the following comes to mind when you think of "The City of Edmonton Animal Care and Control Centre"? - Jail cell for animals (“City Pound”)  -  0 - No 1 - Yes
    "animal_mind_supporter_of_local_pet_rescues", -- Respondents were asked the following question: Which of the following comes to mind when you think of "The City of Edmonton Animal Care and Control Centre"? - Supporter of local pet rescues  -  0 - No 1 - Yes
    "animal_mind_long_term_care_for_animals_in_need", -- Respondents were asked the following question: Which of the following comes to mind when you think of "The City of Edmonton Animal Care and Control Centre"? - Long-term care for animals in need  -  0 - No 1 - Yes
    "fsa_study_profiling_questionnaire_2014", -- Forward Sortation Area (first 3 characters of postal code)
    "q14a_primary_transportation_study_profiling_questionnaire_2014", -- Profiling question, one response selected by respondent. - What is your primary mode of transportation? || Possible Answers: Car/truck/Van as DRIVER/Car/truck/van as PASSENGER/Public Transit/Walk/Bicycle/Other (Specify)
    "animal_info_videos_featuring_animals", -- Animal Care and Control is considering a Facebook account.  What information would you like to receive if it was created? Videos featuring animals - Possible Values - 0 - No, 1 - Yes
    "animal_loyaltyprogram_even_with_an_already_licensed_pet_a_rewar", -- Even with an already licensed pet, a rewards program is valuable to me - - 5 Strongly agree 4 Somewhat agree 3 Neither agree nor disagree 2 Somewhat disagree 1 Strongly disagree, I don't know
    "animal_reward_i_don_t_own_a_pet", -- What would you like to see within the reward program? I don't own a pet. Possible Values - 0 - No, 1 - Yes
    "animal_interactiontype_webcopy1_licensed_my_pet_online", -- How would you rate your experience licensing your pet online? - Possible Values - 5 Very Satisfied, 4 Somewhat satisfied, 3 Neither satisfied nor unsatisfied 2 Somewhat unsatisfied 1 Very unsatisfied
    "animal_interactiontype_licensed_my_pet_in_person", -- What did you interact with Animal Care and Control Centre? - Licensed my pet in person 0 - No, 1 - Yes
    "animal_enforcement_i_don_t_know_enough_about_this_topic_to_answ", -- In your opinion, which of the following animal control bylaws do you feel Animal Care and Control is successful at enforcing, if any: I don't know enough about this topic to answer - 0 - No,1 - Yes
    "animal_bylaw_licence_fees_help_provide_care_for_injured_stray_a", -- Animal Care and Control enforces pet licensing bylaws.  Please tell us how much you agree or disagree with the following statements: - Licence fees help provide care for injured stray animals  - 5 Strongly agree 4 Somewhat agree 3 Neither agree nor disagree 2 Somewhat disagree 1 Strongly disagree, I don't know
    "animal_yes_no_transfer_unclaimed_animals_to_the_edmonton_humane", -- To the best of your knowledge, does Animal Care and Control - Transfer unclaimed animals to the Edmonton Humane Society - No, Yes, Don’t Know
    "animal_agree_animal_care_and_control_provides_a_useful_service_", -- Respondents were asked the following question: Animal Care and Control provides a useful service for dealing with stray and feral animals - 5 Strongly agree 4 Somewhat agree 3 Neither agree nor disagree 2 Somewhat disagree 1 Strongly disagree, I don't know
    "responsedate", -- Date/Time the respondent first opened/started the survey.
    "q16_education_study_profiling_questionnaire_2014", -- Profiling question, one response selected by respondent. - What is the highest level of education you have completed? || Possible Answers: Elementary/grade school graduate/High school graduate/College / technical school graduate/University undergraduate degree/Post-graduate degree/Professional school graduate (e.g. medicine, dentistry, veterinary medicine, optometry)
    "q14b_secondary_transportation_study_profiling_questionnaire_201", -- Profiling question, one response selected by respondent. - What is your secondary mode of transportation? || Possible Answers: Car/truck/Van as DRIVER/Car/truck/van as PASSENGER/Public Transit/Walk/Bicycle/Only have one mode of transportation/Other (Specify
    "q13_volunteer_study_profiling_questionnaire_2014", -- Profiling question, one response selected by respondent. - In the last 12 months, did you do any activities without pay on behalf of a group or an organization as a volunteer? || Possible Answers: Yes/No
    "q8_born_canada_study_profiling_questionnaire_2014", -- Profiling question, one response selected by respondent. - Were you born in Canada? || Possible Answers: Yes/No
    "ostype", -- System Captured, OS used by the respondent. Question: OS Type? - OSType || Possible Answers: Mac (OS X)/Linux/Windows/iOS/Android/BlackBerry/Unknown
    "animal_reward_discounts_coupons_from_sponsors", -- What would you like to see within the reward program? Discounts, coupons from sponsors. Possible Values - 0 - No, 1 - Yes
    "animal_bylaw_licensing_a_cat_is_a_positive_bylaw", -- Animal Care and Control enforces pet licensing bylaws.  Please tell us how much you agree or disagree with the following statements: Licensing a cat is a positive bylaw - 5 Strongly agree 4 Somewhat agree 3 Neither agree nor disagree 2 Somewhat disagree 1 Strongly disagree, I don't know
    "animal_effective_dog_bites", -- Respondents were asked the following question: How effective or ineffective do you feel Animal Care and Control is at enforcing the following animal control bylaws? - Dog bites - 5 Very effective, 4 Somewhat effective, 3 Neutral, 2 Somewhat ineffective, 1 Not at all effective, I don't know
    "animal_effective_they_poop_you_scoop", -- Respondents were asked the following question: How effective or ineffective do you feel Animal Care and Control is at enforcing the following animal control bylaws? - They poop, you scoop - 5 Very effective, 4 Somewhat effective, 3 Neutral, 2 Somewhat ineffective, 1 Not at all effective, I don't know
    "animal_agree_i_value_the_work_animal_care_and_control_does_for_", -- Respondents were asked the following question: I value the work Animal Care and Control does for the City of Edmonton - 5 Strongly agree 4 Somewhat agree 3 Neither agree nor disagree 2 Somewhat disagree 1 Strongly disagree, I don't know
    "animal_agree_ticketing_is_an_effective_way_of_enforcement", -- Respondents were asked the following question: Ticketing is an effective way of enforcement - 5 Strongly agree 4 Somewhat agree 3 Neither agree nor disagree 2 Somewhat disagree 1 Strongly disagree, I don't know
    "animal_mind_essentially_the_same_as_the_edmonton_humane_society", -- Respondents were asked the following question: Which of the following comes to mind when you think of "The City of Edmonton Animal Care and Control Centre"? - Essentially the same as the Edmonton Humane Society  -  0 - No 1 - Yes
    "animal_mind_provider_of_education_for_proper_animal_care_and_ow", -- Respondents were asked the following question: Which of the following comes to mind when you think of "The City of Edmonton Animal Care and Control Centre"? - Provider of education for proper animal care and ownership  -  0 - No 1 - Yes
    "q9a_edmonton_study_profiling_questionnaire_2014", -- Profiling question, one response selected by respondent. - How long have you lived in Edmonton? || Possible Answers: Less than 1 year/Between 1 to 2 years/Between 3 to 5 years/Greater than 5 years/I do not live in Edmonton
    "animal_info_opportunity_to_ask_questions_and_receive_answers", -- Animal Care and Control is considering a Facebook account.  What information would you like to receive if it was created? - Opportunity to ask questions and receive answers - Possible Values - 0 - No, 1 - Yes
    "animal_interactiontype_webcopy7_participated_in_an_education_aw", -- How would you rate your experience participating in an education/awareness event?  - Possible Values - 5 Very Satisfied, 4 Somewhat satisfied, 3 Neither satisfied nor unsatisfied 2 Somewhat unsatisfied 1 Very unsatisfied
    "animal_interactiontype_webcopy4_reunited_with_a_pet", -- How would you rate your experience being reunited with a pet?  - Possible Values - 5 Very Satisfied, 4 Somewhat satisfied, 3 Neither satisfied nor unsatisfied 2 Somewhat unsatisfied 1 Very unsatisfied
    "animal_interactiontype_webcopy2_licensed_my_pet_in_person", -- How would you rate your experience licensing your pet in person? - Possible Values - 5 Very Satisfied, 4 Somewhat satisfied, 3 Neither satisfied nor unsatisfied 2 Somewhat unsatisfied 1 Very unsatisfied
    "animal_enforcement_roaming_cats", -- In your opinion, which of the following animal control bylaws do you feel Animal Care and Control is successful at enforcing, if any: Roaming cats - 0 - No,1 - Yes
    "animal_bylaw_i_believe_in_pet_licensing", -- Animal Care and Control enforces pet licensing bylaws.  Please tell us how much you agree or disagree with the following statements: I believe in pet licensing - 5 Strongly agree 4 Somewhat agree 3 Neither agree nor disagree 2 Somewhat disagree 1 Strongly disagree, I don't know
    "animal_bylaw_licence_fees_play_a_role_in_animal_control_bylaw_e", -- Animal Care and Control enforces pet licensing bylaws.  Please tell us how much you agree or disagree with the following statements: Licence fees play a role in animal control bylaw enforcement - 5 Strongly agree 4 Somewhat agree 3 Neither agree nor disagree 2 Somewhat disagree 1 Strongly disagree, I don't know
    "animal_bylaw_unlicensed_animals_are_immediately_euthanized", -- Animal Care and Control enforces pet licensing bylaws.  Please tell us how much you agree or disagree with the following statements: Unlicensed animals are immediately euthanized - 5 Strongly agree 4 Somewhat agree 3 Neither agree nor disagree 2 Somewhat disagree 1 Strongly disagree, I don't know
    "animal_reward_discounts_for_pet_friendly_organizations_in_edmon", -- What would you like to see within the reward program? Discounts for pet friendly organizations in Edmonton and surrounding areas. Possible Values - 0 - No, 1 - Yes
    "animal_info_pet_educational_information", -- Animal Care and Control is considering a Facebook account.  What information would you like to receive if it was created? Pet educational information - Possible Values - 0 - No, 1 - Yes
    "animal_info_success_stories", -- Animal Care and Control is considering a Facebook account.  What information would you like to receive if it was created? Success stories - Possible Values - 0 - No, 1 - Yes
    "animal_mind_nothing_comes_to_mind", -- Respondents were asked the following question: Which of the following comes to mind when you think of "The City of Edmonton Animal Care and Control Centre"? - Nothing comes to mind  -  0 - No 1 - Yes
    "animal_bylaw_it_is_easy_and_convenient_to_license_my_pet", -- Animal Care and Control enforces pet licensing bylaws.  Please tell us how much you agree or disagree with the following statements: It is easy and convenient to license my pet - 5 Strongly agree 4 Somewhat agree 3 Neither agree nor disagree 2 Somewhat disagree 1 Strongly disagree, I don't know
    "gender_study_profiling_questionnaire_2014", -- Profiling question, one response selected by respondent. - Are you…? || Possible Answers: Male/Female/Other/I prefer not to answer
    "devicetype", -- System Captured, Device used by the respondent. Question: Device Type? - DeviceType || Possible Answers: Tablet/Desktop/Phone
    "completiondate", -- Date/Time the respondent finished the survey.
    "animal_mind_essential_service_for_animal_control", -- Respondents were asked the following question: Which of the following comes to mind when you think of "The City of Edmonton Animal Care and Control Centre"? - Essential service for animal control  -  0 - No 1 - Yes
    "animal_mind_shelter_and_care_of_injured_wildlife", -- Respondents were asked the following question: Which of the following comes to mind when you think of "The City of Edmonton Animal Care and Control Centre"? - Shelter and care of injured wildlife  -  0 - No 1 - Yes
    "animal_mind_money_grab_for_the_city", -- Respondents were asked the following question: Which of the following comes to mind when you think of "The City of Edmonton Animal Care and Control Centre"? - Money grab for the City  -  0 - No 1 - Yes
    "animal_mind_connection_between_lost_pets_and_owners", -- Respondents were asked the following question: Which of the following comes to mind when you think of "The City of Edmonton Animal Care and Control Centre"? - Connection between lost pets and owners  -  0 - No 1 - Yes
    "animal_effective_licensing_your_pet", -- Respondents were asked the following question: How effective or ineffective do you feel Animal Care and Control is at enforcing the following animal control bylaws? - Licensing your pet - 5 Very effective, 4 Somewhat effective, 3 Neutral, 2 Somewhat ineffective, 1 Not at all effective, I don't know
    "animal_effective_dogs_off_leash", -- Respondents were asked the following question: How effective or ineffective do you feel Animal Care and Control is at enforcing the following animal control bylaws? - Dogs off leash - 5 Very effective, 4 Somewhat effective, 3 Neutral, 2 Somewhat ineffective, 1 Not at all effective, I don't know
    "animal_yes_no_euthanize_all_feral_animals", -- To the best of your knowledge, does Animal Care and Control - Euthanize all feral animals - No, Yes, Don’t Know
    "animal_yes_no_help_to_save_animals", -- To the best of your knowledge, does Animal Care and Control - Help to save animals - No, Yes, Don’t Know
    "animal_yes_no_reunite_pets_with_owners", -- To the best of your knowledge, does Animal Care and Control - Reunite pets with owners - No, Yes, Don’t Know
    "animal_bylaw_licensing_a_dog_is_a_positive_bylaw", -- Animal Care and Control enforces pet licensing bylaws.  Please tell us how much you agree or disagree with the following statements: Licensing a dog is a positive bylaw - 5 Strongly agree 4 Somewhat agree 3 Neither agree nor disagree 2 Somewhat disagree 1 Strongly disagree, I don't know
    "animal_bylaw_licence_fees_are_used_to_financially_assist_local_", -- Animal Care and Control enforces pet licensing bylaws.  Please tell us how much you agree or disagree with the following statements:  Licence fees are used to financially assist local pet rescues - 5 Strongly agree 4 Somewhat agree 3 Neither agree nor disagree 2 Somewhat disagree 1 Strongly disagree, I don't know
    "animal_enforcement_licensing_your_pet", -- In your opinion, which of the following animal control bylaws do you feel Animal Care and Control is successful at enforcing, if any: Licensing your pet - 0 - No,1 - Yes 
    "animal_enforcement_they_poop_you_scoop", -- In your opinion, which of the following animal control bylaws do you feel Animal Care and Control is successful at enforcing, if any: They poop, you scoop - 0 - No,1 - Yes
    "animal_enforcement_number_of_animals_per_home", -- In your opinion, which of the following animal control bylaws do you feel Animal Care and Control is successful at enforcing, if any: Number of animals per home - 0 - No,1 - Yes
    "animal_enforcement_dog_bites", -- In your opinion, which of the following animal control bylaws do you feel Animal Care and Control is successful at enforcing, if any: Dog bites - 0 - No,1 - Yes
    "animal_enforcement_city_is_not_successful_at_enforcing_animal_c", -- In your opinion, which of the following animal control bylaws do you feel Animal Care and Control is successful at enforcing, if any: City is not successful at enforcing animal care and control bylaws - 0 - No,1 - Yes
    "animal_interaction", -- Have you had any interactions with the Animal Care and Control Centre within the past year? Possible Values -  1 - Yes, 2 - No, 3 - Don’t Know
    "animal_interactiontype_visited_the_web_site", -- What did you interact with Animal Care and Control Centre? - Visited the web site 0 - No, 1 - Yes
    "animal_interactiontype_licensed_my_pet_online", -- What did you interact with Animal Care and Control Centre? - Licensed my pet online 0 - No, 1 - Yes
    "animal_interactiontype_issued_a_bylaw_complaint", -- What did you interact with Animal Care and Control Centre? - Issued a bylaw complaint 0 - No, 1 - Yes
    "animal_interactiontype_searched_for_my_lost_pet", -- What did you interact with Animal Care and Control Centre? - Searched for my lost pet 0 - No, 1 - Yes
    "animal_interactiontype_reunited_with_a_pet", -- What did you interact with Animal Care and Control Centre? - Reunited with a pet 0 - No, 1 - Yes
    "animal_interactiontype_borrowed_a_humane_animal_trap", -- What did you interact with Animal Care and Control Centre? - Borrowed a humane animal trap 0 - No, 1 - Yes
    "animal_interactiontype_received_a_visit_warning_or_ticket_from_", -- What did you interact with Animal Care and Control Centre? - Received a visit, warning or ticket from enforcement 0 - No, 1 - Yes
    "animal_interactiontype_webcopy5_dropped_off_an_animal_or_played", -- How would you rate your experience dropping off an animal or playing a role in having an animal picked up?   - Possible Values - 5 Very Satisfied, 4 Somewhat satisfied, 3 Neither satisfied nor unsatisfied 2 Somewhat unsatisfied 1 Very unsatisfied
    "animal_interactiontype_webcopy9_received_notification_in_the_ma", -- How would you rate your experience receiving notification in the mail?  - Possible Values - 5 Very Satisfied, 4 Somewhat satisfied, 3 Neither satisfied nor unsatisfied 2 Somewhat unsatisfied 1 Very unsatisfied
    "animal_reward_collection_of_airmiles", -- What would you like to see within the reward program? Collection of AirMiles. Possible Values - 0 - No, 1 - Yes
    "animal_reward_off_leash_park_locator", -- What would you like to see within the reward program? Off leash park locator. Possible Values - 0 - No, 1 - Yes
    "animal_reward_licence_renewal_reminders", -- What would you like to see within the reward program? Licence Renewal Reminders. Possible Values - 0 - No, 1 - Yes
    "animal_reward_lost_pet_notifications", -- What would you like to see within the reward program? Lost pet notifications. Possible Values - 0 - No, 1 - Yes
    "animal_reward_pedometer", -- What would you like to see within the reward program? Pedometer. Possible Values - 0 - No, 1 - Yes
    "animal_reward_use_of_the_app_assists_local_pet_rescues_financia", -- What would you like to see within the reward program? Use of the app, assists local pet rescues financially. Possible Values - 0 - No, 1 - Yes
    "animal_reward_i_do_not_license_my_pet", -- What would you like to see within the reward program? I do not license my pet. Possible Values - 0 - No, 1 - Yes
    "animal_loyaltyprogram_a_value_added_rewards_program_attached_to", -- A value added rewards program attached to my pet licence would encourage me to license my pet - - 5 Strongly agree 4 Somewhat agree 3 Neither agree nor disagree 2 Somewhat disagree 1 Strongly disagree, I don't know
    "animal_info_pet_bylaw_information", -- Animal Care and Control is considering a Facebook account.  What information would you like to receive if it was created? Pet bylaw information - Possible Values - 0 - No, 1 - Yes
    "animal_info_behind_the_scenes_information_inner_workings_of_the", -- Animal Care and Control is considering a Facebook account.  What information would you like to receive if it was created? Behind-the-scenes information (inner workings of the facility, staff members, special animal profiles) - Possible Values - 0 - No, 1 - Yes
    "animal_info_pictures_of_lost_animals", -- Animal Care and Control is considering a Facebook account.  What information would you like to receive if it was created? Pictures of lost animals - Possible Values - 0 - No, 1 - Yes
    "animal_info_a_tool_for_complaint_management", -- Animal Care and Control is considering a Facebook account.  What information would you like to receive if it was created? A tool for complaint management  - Possible Values - 0 - No, 1 - Yes
    "animal_info_i_do_not_use_facebook", -- Animal Care and Control is considering a Facebook account.  What information would you like to receive if it was created? I do not use Facebook - Possible Values - 0 - No, 1 - Yes
    "animal_info_other_specify", -- Animal Care and Control is considering a Facebook account.  What information would you like to receive if it was created? Other (specify) - Possible Values - 0 - No, 1 - Yes
    "browsertype", -- System Captured, Browser used by the respondent. Question: Browser Type? - BrowserType || Possible Answers: Internet Explorer/Firefox/Safari/Google Chrome/Opera/Android/BlackBerry/Unknown
    "q3_own_rent_study_profiling_questionnaire_2014", -- Profiling question, one response selected by respondent. - Do you own or rent your primary residence in the City of Edmonton? || Possible Answers: Own/Rent
    "q10_own_business_study_profiling_questionnaire_2014", -- Profiling question, one response selected by respondent. - Do you own a business in the City of Edmonton? || Possible Answers: Yes/No
    "q12_employment_status_study_profiling_questionnaire_2014", -- Profiling question, one response selected by respondent. - What is your current employment status? || Possible Answers: Employed full-time (30+ hours a week)/Employed part-time (0-30 hours a week)/Homemaker/Post-secondary student/High School Student/Unemployed/Permanently unable to Work/Retired/Other (Specify)
    "q15_household_income_study_profiling_questionnaire_2014", -- Profiling question, one response selected by respondent. - Which of the following categories best describes your total household income in 2014 before taxes? || Possible Answers: Under $20,000/$20,000 to $29,999/$30,000 to $39,999/$40,000 to $49,999/$50,000 to $59,999/$60,000 to $79,999/$80,000 to $99,999/$100,000 to $149,000/$150,000 and over/Prefer not to answer
    "q17_city_employee_study_profiling_questionnaire_2014" -- Profiling question, one response selected by respondent. - Do you work for the City of Edmonton? || Possible Answers: Yes/No/Prefer not to say
FROM
    "edmonton-ca/animal-care-edmonton-insight-community-2r38-7gdf:latest"."animal_care_edmonton_insight_community"
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 edmonton-ca/animal-care-edmonton-insight-community-2r38-7gdf with SQL in under 60 seconds.

This repository is an "external" repository. That means it's hosted elsewhere, in this case at data.edmonton.ca. When you queryedmonton-ca/animal-care-edmonton-insight-community-2r38-7gdf:latest on the DDN, we "mount" the repository using the socrata mount handler. The mount handler proxies your SQL query to the upstream data source, translating it from SQL to the relevant language (in this case SoQL).

We also cache query responses on the DDN, but we run the DDN on multiple nodes so a CACHE_HIT is only guaranteed for subsequent queries that land on the same node.

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 (like this repository), 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, where the author has pushed Splitgraph Images to the repository, you can "clone" and/or "checkout" the data using sgr cloneand sgr checkout.

Mounting Data

This repository is an external repository. It's not hosted by Splitgraph. It is hosted by data.edmonton.ca, and Splitgraph indexes it. This means it is not an actual Splitgraph image, so you cannot use sgr clone to get the data. Instead, you can use the socrata adapter with the sgr mount command. Then, if you want, you can import the data and turn it into a Splitgraph image that others can clone.

First, install Splitgraph if you haven't already.

Mount the table with sgr mount

sgr mount socrata \
  "edmonton-ca/animal-care-edmonton-insight-community-2r38-7gdf" \
  --handler-options '{
    "domain": "data.edmonton.ca",
    "tables": {
        "animal_care_edmonton_insight_community": "2r38-7gdf"
    }
}'

That's it! Now you can query the data in the mounted table like any other Postgres table.

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, edmonton-ca/animal-care-edmonton-insight-community-2r38-7gdf is just another Postgres schema.