Commit effc8039 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Add some more LocalBusiness mappings

Those are types I found while browsing the internet for car dealerships, movie theaters, and various retail stores.
Theoretically we could map all the stores to Store and then have e.g. p-b-i indicate them differently but
since none of the more specialized types have any additional properties, just mapping all of them
to LocalBusiness should be sufficient for showing name, address, and contact data.

Differential Revision: https://phabricator.kde.org/D27911
parent 2bacf523
...@@ -34,6 +34,9 @@ static const struct { ...@@ -34,6 +34,9 @@ static const struct {
const char* fromType; const char* fromType;
const char* toType; const char* toType;
} type_mapping[] = { } type_mapping[] = {
{ "AutoDealer", "LocalBusiness" },
{ "AutoRepair", "LocalBusiness" },
{ "AutomotiveBusiness", "LocalBusiness" },
{ "Bakery", "FoodEstablishment" }, { "Bakery", "FoodEstablishment" },
{ "BarOrPub", "FoodEstablishment" }, { "BarOrPub", "FoodEstablishment" },
{ "BedAndBreakfast", "LodgingBusiness" }, { "BedAndBreakfast", "LodgingBusiness" },
...@@ -44,18 +47,24 @@ static const struct { ...@@ -44,18 +47,24 @@ static const struct {
{ "Campground", "LodgingBusiness" }, { "Campground", "LodgingBusiness" },
{ "ChildrensEvent", "Event" }, { "ChildrensEvent", "Event" },
{ "ComedyEvent", "Event" }, { "ComedyEvent", "Event" },
{ "ComputerStore", "LocalBusiness" },
{ "DanceEvent", "Event" }, { "DanceEvent", "Event" },
{ "Distillery", "FoodEstablishment" }, { "Distillery", "FoodEstablishment" },
{ "EditAction", "UpdateAction" }, { "EditAction", "UpdateAction" },
{ "EducationEvent", "Event" }, { "EducationEvent", "Event" },
{ "ElectronicsStore", "LocalBusiness" },
{ "EntertainmentBusiness", "LocalBusiness" },
{ "ExhibitionEvent", "Event" }, { "ExhibitionEvent", "Event" },
{ "FastFoodRestaurant", "FoodEstablishment" }, { "FastFoodRestaurant", "FoodEstablishment" },
{ "Festival", "Event" }, { "Festival", "Event" },
{ "HobbyShop", "LocalBusiness" },
{ "HomeAndConstructionBusiness", "LocalBusiness" },
{ "Hostel", "LodgingBusiness" }, { "Hostel", "LodgingBusiness" },
{ "Hotel", "LodgingBusiness" }, { "Hotel", "LodgingBusiness" },
{ "IceCreamShop", "FoodEstablishment" }, { "IceCreamShop", "FoodEstablishment" },
{ "LiteraryEvent", "Event" }, { "LiteraryEvent", "Event" },
{ "Motel", "LodgingBusiness" }, { "Motel", "LodgingBusiness" },
{ "MovieTheater", "LocalBusiness" },
{ "MusicEvent", "Event" }, { "MusicEvent", "Event" },
{ "Resort", "LodgingBusiness" }, { "Resort", "LodgingBusiness" },
{ "Restaurant", "FoodEstablishment" }, { "Restaurant", "FoodEstablishment" },
...@@ -63,6 +72,7 @@ static const struct { ...@@ -63,6 +72,7 @@ static const struct {
{ "ScreeningEvent", "Event" }, { "ScreeningEvent", "Event" },
{ "SocialEvent", "Event" }, { "SocialEvent", "Event" },
{ "SportsEvent", "Event" }, { "SportsEvent", "Event" },
{ "Store", "LocalBusiness" },
{ "TheaterEvent", "Event" }, { "TheaterEvent", "Event" },
{ "VisualArtsEvent", "Event" }, { "VisualArtsEvent", "Event" },
{ "Winery", "FoodEstablishment" }, { "Winery", "FoodEstablishment" },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment