Class Definition

class @com.yelp #_[thingpedia_name="Yelp"] #_[thingpedia_description="Search restaurants on Yelp"] #_[canonical="yelp"] #_[name="Yelp"] #_[description="Search restaurants on Yelp"] #[license="BSD-3-Clause"] #[license_gplcompatible=true] #[subcategory=enum service] #[version=37] #[package_version=37] { import loader from @org.thingpedia.v2(); import config from @org.thingpedia.config.none(api_key="<hidden>"); entity restaurant #_[description="Restaurants on Yelp"]; entity restaurant_cuisine #_[description="Cuisines in Yelp"]; list query restaurant(out id : Entity(com.yelp:restaurant) #_[canonical={ default="base", base=["name"], property=[] }] #[conflict_filter=["cuisines", "price_range"]] #[unique=true] #[string_values="org.openstreetmap:restaurant"], out image_url : Entity(tt:picture) #_[canonical={ default="base", base=["picture", "image", "photo"] }] #[filterable=false], out link : Entity(tt:url) #_[canonical="link"] #[filterable=false], out cuisines : Array(Entity(com.yelp:restaurant_cuisine)) #_[canonical={ default="property", base=["cuisines", "types of cuisine", "food", "types of food", "category"], property=["# food", "# cuisine", "# category"], adjective=["#"], verb=["serves # cuisine", "serves # food", "offer # cuisine", "offer # food", "serves", "offers"], preposition=["in the # category"], base_projection=["food", "cuisine"], verb_projection=["serve", "offer", "have"] }] #[conflict_filter=["id"]], out price : Enum(cheap, moderate, expensive, luxury) #_[canonical={ default="adjective", base=["price range", "price"], property=["# price"], preposition=["in the # price range"], adjective=["#", "# -ly priced"], adjective_enum={ cheap=["inexpensive"], luxury=["upscale", "fine-dining"] } }] #[conflict_filter=["id"]], out rating : Number #_[canonical={ default="passive_verb", base=["rating", "overall rating", "average rating", "customer rating", "review rating"], passive_verb=["rated # star"], adjective=["# star"], property=["rating", "# star rating"], adjective_argmax=["top rated", "top-rated", "highest rated", "best rated", "best"], adjective_argmin=["worst rated", "worst"], projection_pronoun=["how"], passive_verb_projection=["rated"] }] #_[counted_object="stars"] #[min_number=1] #[max_number=5], out review_count : Number #_[canonical={ default="property", base=["review count"], property=["# reviews"], adjective_argmax=["most reviewed"], adjective_argmin=["least reviewed"] }] #_[counted_object="reviews"], out geo : Location #_[canonical={ default="preposition", base=["address", "location"], preposition=["near #", "in #", "around #"] }], out phone : Entity(tt:phone_number) #_[canonical={ default="npp", base=["telephone", "phone number"] }] #[filterable=false]) #_[canonical="restaurant"] #_[confirmation="restaurants on Yelp"] #_[formatted=[{ type="rdl", displayTitle="${id}", webCallback="${link}", displayText="Offers ${cuisines} food.", pictureUrl="${image_url}" }]] #[minimal_projection=["id"]] #[doc="search for restaurants on Yelp"] #[confirm=false]; }

Dataset

dataset @com.yelp #[language="en"] { }