Adding_a_restaurant - freebase-schema/freebase GitHub Wiki
When you create a new Restaurant, you may notice that the restaurant is also typed as a Business Location. We make a distinction between single-location restaurants and restaurant chains, and we make this distinction through co-typing.
Single-location restaurants are co-typed with "Business Location" and restaurant chains are co-typed with Business Chain. In practical terms, it works out like this:
(e.g. Chez Panisse, Katz's Deli, Moosewood Restaurant):
- fill in the "open times", "address" and "phone number" properties
(e.g. McDonald's, Starbucks, your local chain of burger joints)
-
remove the "Business Location" type from your restaurant instance
-
add the "Business Chain" type to your restaurant instance
-
use the "locations" property of "Business Chain" to add the individual store locations. The convention is to create a display name for the instance that contains restaurant name, address, city, and state.
-
for the display name of the restaurant, input the restaurant name, address, city and state as a single string - this will help distinguish different locations for search purposes
-
click 'show empty fields' (if not already showing them)
-
add the chain (using 'auto-complete') in the parent company field
-
tip: to see if chain locations in your town have been added to Freebase, go to the main page for the restaurant and click "[ more ]" under "locations". Use "Filter Results" to filter the list of locations by city or postal code.
The "Open Times" type is what is currently being used to represent the hours that a particular restaurant location is open. This is still a work-in-progress, and the final format has yet to be determined, but currently a restaurant's hours of operation are represented by one or more instances of "Open Times".
Each instance has a start day, end day, start time and end time. The start and end times are represented as an integer in military time format (e.g. 9:00AM = 0900, 5:00PM = 1700).
Examples:
-
Tuesday 9:00 - 12:00
-
start day: Tuesday
-
end day: [empty]
-
start time: 0900
-
end time: 1200
-
Monday - Wednesday 8:00AM - 5:00PM
-
start day: Monday
-
end day: Wednesday
-
start time: 0800
-
end time: 1700
-
Monday - Friday 9:00AM - 12:00PM, 1:00PM - 6:00PM
-
start day: Monday
-
end day: Friday
-
start time: 0900
-
end time: 1200
-
start day: Monday
-
end day: Friday
-
start time: 1300
-
end time: 1800
If you're feeling particularly ambitious, you might want to take some time to peruse the data and make sure that restaurants have been correctly identified as chains or not. Restaurants with identical names may have been erroneously grouped as a chain, and some local chains may have been missed.
Start by looking at the restaurants in your area that you know about, and make changes using the recipes below:
Example: you have found three different restaurants called "Fred's Burger House" in the same town, and you know that these are part of the same chain.
- For each instance of "Fred's Burger House"
- Remove the "Restaurant" type from the "Types" list
- Change the display name to include the name, address, city, and state, e.g. "Fred's Burger House, 124 Main St., Boston, MA"
- Create a new restaurant called "Fred's Burger House" and co-type it with "Business Chain"
- Fill out the "location" property with the instances you renamed in step 1
Example: you have found a chain of restaurants called "Fred's Pizza" and you know that these are actually separate businesses.
- Go to the page for the "Fred's Pizza" chain
- For each of the locations under "location":
- Click through to the location's page
- Change the name to "Fred's Pizza" (without the address info)
- Remove "Fred's Pizza" from the "parent company" property
- Add "Restaurant" under "Types"
- Go back to the page for the "Fred's Pizza" chain
- Look at the web pages listed under "Web link(s)" and "Related webpages" and add those to the appropriate locations.
- Remove "Restaurant" and "Business Chain" from "Types"
Example: there is a local chain called "Fred's Burger House", but one of the locations is in a different town and is actually a separate business.
- Go to the page for the "Fred's Burger House" chain
- Find the location that should be separated and open that page in a separate browser window
- Remove the location from the "location" property of the "Fred's Burger House" chain
- Switch to the browser window you opened in step 2 (the location that you're separating)
- Change the name to "Fred's Burger House" (without the address info)
- Remove "Fred's Burger House" from the "parent company property
- Add "Restaurant" under "Types"