XooCode(){

BarOrPub

BarOrPub is a direct FoodEstablishment subtype for bars, pubs, cocktail lounges, and drinking establishments. For brewpubs that brew their own beer on premises, dual-type with Brewery.

Full example of schema.org/BarOrPub json-ld markup

The markup is verified as valid with Rich Results Test from Google.

schema.org/BarOrPub
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BarOrPub",
  "name": "The Stack Frame",
  "address": { "@type": "PostalAddress", "streetAddress": "52 Main St", "addressLocality": "Dunmore", "addressRegion": "PA", "postalCode": "18512", "addressCountry": "US" },
  "telephone": "+1-570-555-0721",
  "openingHours": "Mo-Th 16:00-01:00, Fr-Sa 16:00-02:00, Su 17:00-00:00",
  "priceRange": "$$$",
  "servesCuisine": ["Cocktails", "Small plates"],
  "hasMenu": "https://xoocode.com/shops/stack-frame/menu",
  "url": "https://xoocode.com/shops/stack-frame"
}
</script>

Minimal valid version

The smallest markup that still produces a valid BarOrPub entity. Use it as the floor. Reach for the advanced example above when you want search engines and AI agents to understand more about your content.

schema.org/BarOrPub (minimal)
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BarOrPub",
  "name": "The Stack Frame",
  "address": { "@type": "PostalAddress", "streetAddress": "52 Main St", "addressLocality": "Dunmore", "addressRegion": "PA", "postalCode": "18512", "addressCountry": "US" }
}
</script>

Google rich results this unlocks

BarOrPub is a structural type. It does not produce a rich result on its own.

Its value comes from combining it with a primary type whose markup earns a rich result (Article, Product, Event, and so on). BarOrPub becomes the trunk that the primary type branches off viamainEntityorbreadcrumb. Include it on every page as the backbone of your markup.

Common BarOrPub mistakes

Mistakes that pass validation but silently fail to earn rich results or mislead consumers walking the graph. Avoid these and your markup will be ahead of most sites in the wild.

  1. 01

    Using BarOrPub for a nightclub

    Wrong
    BarOrPub for a dance club
    Right
    NightClub (EntertainmentBusiness subtype) for nightlife-first venues; BarOrPub for drink-first

    NightClub and BarOrPub serve different search intents and local-pack categories.

About the example data

"The Stack Frame", a fictional craft cocktail bar in downtown Dunmore.

Comments

Loading comments...

Leave a comment