# Training:PhD Course on Computational Ontologies @ University of Bologna 2011/Creating CQs:CQs

### From Odp

One possible set of CQs (remember that these should reflect what the customer wants to be able to do, rather than just a translation from the scenario)...

- Rome is the capital of Italy, it is located in the Lazio region.
- A city is the capital of a country. A city is located in a region.
- CQs
- What city is the capital of a certain country?
- In what region is a certain city located?
- In what country is a certain city or region located?

- Rome has two airports. Fiumincino airport is served by Alitalia flights, while Ciampino is served by Ryanair and Wizzair. Rome has several train stations, the main station is Termini located in the center of Rome, but there are also the Trastevere station in the west part of Rome (the Trastevere district), and Tiburtina in the south east.
- A city has a number of airports. An airport is served by a number of airlines. A city has a number of train stations. One station is the main station. A station is located in a district.
- CQs
- In what city is a certain airport located?
- What airlines serve a specific airport?
- In what city is a certain train station located?
- Which is the main station of a certain city?
- In what district is a certain train station located?
- What are the districts of a certain city?

- When getting around in Rome by public transport there are buses, trams and a metro with two lines (A and B). The metro lines A and B run until 00.30, and resume at 5.30 in the morning.
- When getting around in a city by public transport there are a number of means of public transport with a number of lines. Lines run until a certain time and resume a certain time in the morning.
- CQs
- What are the means of public transport in a certain city?
- What lines of a certain means of public transport exist in a certain city?
- What are the hours of operation for a certain line?
- What lines are operating at a certain time in a certain city?

- In Rome you can stay in a hotel. Hotels have different ratings (from five to one star), and rates within a price range. Price ranges of the hotels differ depending on the time of the year that you decide to visit Rome.
- In a city you can stay in a hotel. A hotel has a rating and a price range. The price range differs depending on the time of the year.
- CQs
- In what city is a certain hotel located?
- What is the star rating of a certain hotel?
- What is the price range of a certain hotel at a certain time?
- What are the hotels within a certain price range at a certain time?

- Rome is full of sights, such as churches, monuments and museums. Popular churches are St Peters and the Pantheon, and a popular monument is the Colosseum. To enter the Colosseum there is a fee of 12 EUR for adults, a fee of 7,50 EUR for EU citizens below the age of 24 and free entrance for EU citizens below 18 years old.
- A city has sights of different categories. To enter a sight there is a fee of a certain amount for a certain category and a certain age range.
- CQs
- What are the sights of a certain city?
- What sights of a certain category are located in a certain city?
- What is the entrance fee to a certain sight for a person of a certain category within a certain age range?

- There are organised tours to see the sights of Rome, either on foot starting from the Pantheon or by bus leaving from the Termini station, with different starting times on different weekdays.
- There are organized tours to see the sights of a city, by different means of transport and starting from different points in the city, at different starting times on different weekdays.
- CQs
- What are the guided tours available in a certain city?
- What is the means of transport of a certain tour?
- What is the starting time of a certain tour on a certain day?
- What is the starting point of a certain tour?

- Rome also has numerous museums. Museums are generally closed on Mondays, but the Vatican Museums are instead closed on Sundays.
- A city has museums. Museums are generally closed on a specific weekday. Specific museums are closed on a specific weekday.
- CQs
- What are the museums of a certain city?
- What day are museums generally closed in a certain city?
- What day is a specific museum closed?

- While in Rome a visitor should take the opportunity to visit one of the many events taking place there during different periods, such as theater and opera performances, and concerts. During September and October 2009 the Teatro Roma offers two theater shows each evening.
- While in a city a visitor should take the opportunity to visit events that take place there during different periods. Events are of different categories. During a time period a certain facility offers a specific event at certain times.
- CQs
- What are the events taking place in a certain time interval in a certain city?
- What is the category of a specific event?
- What is the time period when a specific event is available?
- At what days and times is a certain event available?
- In what facility is a certain event taking place?

- The play in this period is the "Merchant of Venice", written by Shakespeare in 1598, given through an ensemble of well-known actors. During the second and third week of September the role of Shylock is played by Arnold Schwarzenegger as a special guest actor.
- A certain theater event is the realization of a certain work, created by a certain author in a certain year and performed by a set of people. During a certain period of time a certain role in a theater production is played by a certain person.
- CQs
- What work is presented in a certain theater event?
- Who created this work?
- In what year was this work created?
- Who are the persons participating in this event?
- What role does a certain person play in a certain production on a certain day and time?

- There are a number of travel guides available for Rome, many of them are available in several formats, for example as a guidebook or on a CD. Maps of Rome can also be found in paper format or in an electronic format.
- There are a number of travel guides available for a certain city. They are available in certain formats. Maps of a city are also available in certain formats.
- CQs
- What are the travel guides available for a certain city?
- In what editions are a certain travel guide available?
- What maps are available for a certain city?
- In what editions are a certain map available?