Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the following RDFS ontology describing CT geography: :Hartford rdf:type :City . :Waterbury rdf:type :City . :Hartford :capitalOf :Connecticut . :Hartford :hasInhabitants 337522 . :Newington
Consider the following RDFS ontology describing CT geography: :Hartford rdf:type :City . :Waterbury rdf:type :City . :Hartford :capitalOf :Connecticut . :Hartford :hasInhabitants 337522 . :Newington rdf:type :City . :Newington :hasInhabitants 59793 . :I84 rdf:type :Highway . :I95 rdf:type :Highway . :NewHaven rdf:type :City . :NewHaven :locatedOn :I95 . :CT10 rdf:type :Road . :CT15 rdf:type :Road . :Southington :locatedOn :CT10 . :Southington :locatedOn :I84 . :Hartford :locatedOn :I84 . :Newington :locatedOn :CT15 . :Newington :locatedOn :I84 . :NewBritain :locatedOn :I84 . :Berlin :locatedOn :CT15 . :NewBritain rdf:type ex:City . :NewBritain :hasInhabitants 69876 . Write SPARQL queries to retrieve the following information from the above dataset: 1. List all highways and the cities along each of them. 2. List all cities and, in case a city is a capital, list also the state. 3. List all cities that are located at the crossing of at least two highways or roads and these highways. 4. List all cities and their number of inhabitants, if available. 5. List all cities that have more than 60000 inhabitants. PLZ CAN YOU ANSWER THIS ONE ALSO
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started