Whats the correct use of schema for local business address, there doesn't seem to be a facility for town, city and county?? In the example below I would use addressRegion twice but I'm thinking its wrong to use twice?
<div itemscope itemtype="http://schema.org/LocalBusiness">
<span itemprop="name">Company Name</span>
<span itemprop="streetAddress">Some Road Name</span>
<span itemprop="addressLocality">Town</span>
<span itemprop="addressRegion">City</span>
<span itemprop="addressRegion">County</span>
<span itemprop="postalCode">Postcode</span>
</div>
I'm looking into this right now.
The "county" is an obselete bit of UK postal addresses. As one tedious example, an address in Bristol has no county at all, since it's a unitary authority.
addressRegion is given in the example documents as the state, i.e "CA". My suspicion therefore is that it ought to look like
streetAddress = 12 Acacia Avenue, Town
addressLocality = Bristol
addressRegion = England
postalCode = BS1 1AA
...but I wonder where would be a sensible place to ask?
Related
I am trying to click on text at this url http://ecos.fws.gov/ecp0/profile/speciesProfile?sId=6994, but can't come up with the right syntax.
What I want to do is click on "View All", but unfortunately there are multiple "View all"s in the html. The html looks like this:
<li style="margin-bottom:1em;">
<p><strong>Population location:</strong>Â Wherever found west of Mobile and Tombigbee Rivers in AL, MS, and LA</p>
<p><strong>Listing status:</strong>Â
<span class="listingThreat">Threatened</span>
</p>
<ul>
<ul>
<li><b>States/US Territories</b> in which this population is known to or is believed to occur:Â
Alabama
, Louisiana
, Mississippi
</li>
<li><b>US Counties</b> in which this population is known to or is believed to occur:Â
View All</li>
<li><b>USFWS Refuges</b> in which this population is known to occur:Â
Bogue Chitto National Wildlife Refuge, Egmont Key National Wildlife Refuge, Grand Bay National Wildlife Refuge, Hobe Sound National Wildlife Refuge, Mississippi Sandhill Crane National Wildlife Refuge<br/>
</li>
</ul>
</ul>
</li>
I basically need to select where li style is "margin-bottom:1em;" and contains both "Threatened" and "View All". Unfortunately, for the url provided, there are two "View Alls", and both are within a li of style = "margin-bottome:1em;".
I just can't think of a way to uniquely identify the first "View All". I am thinking some kind of conditional path, but not sure
Try this xpath out - "//span[#class='listingThreat']/ancestor::li//a[text()='View All']"
Only the current active tab is showing the corresponding content, while clicking to other tab for example a href="b", the corresponding content of id="b" is not showing. the same is applicable to all other tabs.
Peter Pan, CEO
Danny Witherspoon, CFO
Agumbe Tang, CTO
Alberto Somayya, Exec.Chef
<div class="tab-content">
<div role="tabpanel" class="tab-pane fade in active" id="peter">
<h3>Peter Pan<small>Chief Epicurious Officer</small></h3>
<p>Our CEO, Peter, credits his hardworking East Asian immigrant parents who undertook the arduous journey to the shores of America with the intention of giving their children the best future. His mother's wizardy in the kitchen whipping up the tastiest dishes with whatever is available inexpensively at the supermarket, was his first inspiration to create the fusion cuisines for which <em>The Frying Pan</em> became well known. He brings his zeal for fusion cuisines to this restaurant, pioneering cross-cultural culinary connections.</p></div>
<div role="tabpanel" class="tab-pane fade" id="danny">
<h3>Danny Witherson <small>Chief Epicurious Officer</small></h3>
<p>Our CFO, Danny, as he is affectionately referred to by his colleagues, comes from a long established family tradition in farming and produce. His experiences growing up on a farm in the Australian outback gave him great appreciation for varieties of food sources. As he puts it in his own words, <em>Everything that runs, wins, and everything that stays, pays!</em></p> </div>
<div role="tabpanel" class="tab-pane fade" id="agumbe">
<h3>Agumbe Tang <small>Chief Taste Officer</small></h3>
<p>Blessed with the most discerning gustatory sense, Agumbe, our CFO, personally ensures that every dish that we serve meets his exacting tastes. Our chefs dread the tongue lashing that ensues if their dish does not meet his exacting standards. He lives by his motto, <em>You click only if you survive my lick.</em></p></div>
<div role="tabpanel" class="tab-pane fade" id="alberto">
<h3>Alberto Somayya <small>Executive Chef</small></h3>
<p>Award winning three-star Michelin chef with wide International experience having worked closely with whos-who in the culinary world, he specializes in creating mouthwatering Indo-Italian fusion experiences. He says, <em>Put together the cuisines from the two craziest cultures, and you get a winning hit! Amma Mia!</em></p>
</div>
</div>
Try include the following two lines in your html header area. It should work now.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
That's because you forgot to add the script code. In this Coursera course, every HTML file will have the following code written in before </footer>
<!-- jQuery first, then Popper.js, then Bootstrap JS. -->
<script src="node_modules/jquery/dist/jquery.slim.min.js"></script>
<script src="node_modules/popper.js/dist/umd/popper.min.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
add this snippet in your aboutus.html file and it will work.
Hello i have a site with flash games and i need to add star rating for each game in google search like for amazon 'here' but without review just rating its possible ? google dont punish me for that because its not an article ?
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
Rated: <span itemprop="ratingValue">4</span>/<span itemprop="bestRating">5</span>
</div>
I tested the code here https://developers.google.com/structured-data/testing-tool/ but i have error
Thanks
This is an example of a valid code (not related to games, but you'll get the idea). You could test it in the tool:
<div itemscope itemtype="http://schema.org/Product">
<span itemprop="name">Kenmore White 17" Microwave</span>
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
Rated <span itemprop="ratingValue">4</span> stars -
Based on <span itemprop="reviewCount">250</span> reviews
</div>
</div>
Now, you can't really put whatever you want there. In order to use the star rating you have to put reviewCount or ratingCount. Those are just mandatory.
There are two problems coming up from the tester
it doesn't know what Thing you are rating, you need to tell it you are rating a game, and what the game is called
you gave a best rating but no ratingCount, how many people rated it? If you don't know set to '1' and use a <meta> tag to hide this
Use this:
<div itemscope itemtype="http://schema.org/VideoGame">
Download
<img alt="Super Game logo" src="/images/screenshots/supergame/cover.jpg"/>
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
Rated: <span itemprop="ratingValue">4</span>/<span itemprop="bestRating">5</span>
Based on <span itemprop="ratingCount">1</span> rating(s).
</div>
</div>
The page http://schema.org/VideoGame has more examples, and google may ask for a few more properties like name or headline for the game. Google can suddenly decide things are compulsory when they were not last month.
I'm working on a website for a friend (www.texasfriendlydds.com) and am trying to give them an edge with Rich Snippets that Google allegedly loves. It's a defensive driving school with 10 locations in the Austin area. I've placed the schema.org code within the address of each location, but while searching 'defensive driving austin' - I do not see any of the locations listed. I have 10 of the following code for each location(different address for each):
<div itemscope itemtype="http://schema.org/LocalBusiness">
<span itemprop="name">Texas Friendly Defensive Driving</span><br />
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">13201 Ranch Road 620</span><br />
<span itemprop="addressLocality">Austin</span> <span itemprop="addressRegion">TX</span> <span itemprop="postalCode">78750</span>
</div>
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<span itemprop="ratingValue">4.6</span> stars - based on <span itemprop="reviewCount">24</span> reviews
</div>
Free meal w/ <span itemprop="priceRange">$40 tuition</span><br /><br />
<meta itemprop="openingHours" content="Thursdays 3:30pm - 9:30pm"><b>Thursdays 3:30pm - 9:30pm</b><br />
</div>
In addition, at the bottom of the page, I aggregate all the reviews in attempt to get organic search rich snippet star-ratings to no avail. I've compared my code directly with the following site:
- http://www.microdatagenerator.com/aggregate-rating-schema-generator/
They were exactly the same (minus the values). You can find their snippets by Googling 'aggregate rating schema' and find the 2nd listing with rich snippet stars and 956 ratings. At one point I read that you need to show proof of your ratings, but this site doesn't do that and they have them.
I've used the Google Structured Data Testing Tool (https://developers.google.com/structured-data/testing-tool/) and everything comes out peachy. So why in the world am I not seeing any results from this?
We (Google) don't accept rich snippets for homepages; rich snippet annotations should be placed on leaf pages.
Any idea how to markup a floor number with schema.org microdata for a local business' postal address?
<div itemscope itemtype="http://schema.org/LocalBusiness">
<span itemprop="legalName">Company Limited</span>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<div itemprop="streetAddress">Billy Street 100</div>
<div>10th Floor</div>
<div><span itemprop="addressLocality">Paris</span>,
<span itemprop="addressRegion">TX</span>
<span itemprop="postalCode">75462</span></div>
<div itemprop="addressCountry">United States</div>
</div>
</div>
Also, is the above markup semantic?
If there's no floor number, should I use RDFa?
Unfortunately, schema.org doesn't have a property for secondary address line, which is where the floor number would go. postOfficeBoxNumber is as close as it gets, but it looks like it's reserved specifically for PO Box numbers, not the whole line that contains PO Box.
Perhaps you could put floor number in streetAddress, on a new line using a <br> tag.
Although I know a lot about street addresses (I work at SmartyStreets), I'm not a microdata expert: but from what I can tell, yes, the markup looks okay to me.
And you could use RDFa instead if you'd like: Google supports it for its rich snippets. Or you could have some fun and extend schema.org for your needs.