This factor reports whether RankGear finds a BarOrPub @type value in a page’s raw HTML — a simple present-or-absent (1 / 0) reading. It matches the source text rather than validating a JSON-LD graph, so a match confirms the string is on the page, not that the markup is well-formed or true.
| Factor ID | RG-SCJ-030 |
|---|---|
| Family | Structured Data — JSON-LD |
| Measurement | Binary presence (0 / 1) |
| Measured zone | Raw rendered HTML |
What it measures
This factor reports whether RankGear finds an @type value of BarOrPub in the raw source. BarOrPub is the schema.org type for a venue such as a bar or public house, and its presence signals that the page describes a real drinking or hospitality establishment with structured details attached.
How RankGear measures it
RankGear searches the raw HTML for the string "@type": "BarOrPub", allowing flexible whitespace around the tokens and optionally a schema: prefix. Matching is case-insensitive, so capitalization differences do not change the result. A match returns 1; no match returns 0.
What RankGear looks for
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BarOrPub",
"name": "The Anchor",
"address": { "@type": "PostalAddress", "streetAddress": "12 Dock Rd" },
"openingHours": "Mo-Su 16:00-23:00"
}
</script>| Value | Meaning |
|---|---|
| 1 | A BarOrPub @type string was found in the raw HTML (whitespace-flexible, optional schema: prefix, case-insensitive). |
| 0 | No matching BarOrPub string was found. |
How to optimize it
Use BarOrPub only for a genuine venue, and back it with accurate location, hours, contact, menu, and reservation details. Treat this factor as an observation of what your markup declares, not a target to chase — adding the string without a real venue behind it does not help, and a returned 1 is only meaningful when the surrounding structured data is complete and correct.
Important considerations
- RankGear pattern-matches the source text rather than parsing or validating a JSON-LD graph.
- A matching string that sits outside a valid JSON-LD script — in a comment, an example block, or plain text — can still produce a 1.
- Capitalization differences do not affect detection.
- All structured data must match visible, truthful content on the page.
- Presence of this markup relates to how RankGear reads a page within a measured result set; it is a prioritization signal, not something that on its own makes a page rank or guarantees a position.
Related factors
Part of the Factors reference · how RankGear measures · glossary.