Search code examples
htmlmeta-tagsmetaschema.orgmicrodata

Which type of schema.org should I use for country/city advices?


Could you please help me out, which type of schema.org should I use in this structure?

<h1>Country or city name</h1>
<div id="country_info">some info</div>

<div class="advice">
     <div class="date">03-03-2015</div>
     <div class="tags"><a href="">tag1</a> <a href="">tag2</a></div>
             <div class="text">
             user text...
             </div>
     <div class="author">name</div>
</div>

<div class="advice">
     <div class="date">05-05-2015</div>
     <div class="tags"><a href="">tag5</a> <a href="">tag1</a></div>
             <div class="text">
             user text...
             </div>
     <div class="author">name2</div>
</div>

and so on …

Is it a "Place" and "Comment" types, "Place" with no physical address? Or maybe a "Blog"/"BlogPosting" type? I'm confused.

These user texts are short. Each text is not enough for an article. But the full page becomes very informative.


Solution

  • Start at Thing and check its "More specific Types". Select the types that seem to match and check their definitions. Go as deep/detailed as possible. That’s it.

    You’ll see that each advice is a CreativeWork. Check its "More specific Types". Only you can know what these advices really are.

    • If these are random advices about a country/city, you probably should look at Article. None of its sub-types (BlogPosting, NewsArticle, ScholarlyArticle, TechArticle) seem to be appropriate, so stay with Article. There is no "too short" for an article, they don’t have to be long.

    • If these are advices for a specific problem, Answer could be appropriate.

    • From the information you’ve given in your question, Comment doesn’t seem to be appropriate.

    • It’s only a BlogPosting if these are part of a blog.

    You could use the about property to reference the country (Country/State) or city (City) the advice is about.

    So the structure could look like this in Microdata:

    <section itemprop="about" itemscope itemtype="http://schema.org/City" id="city">
      <h1 itemprop="name">City name</h1>
    
      <article itemscope itemtype="http://schema.org/Article" itemref="city">
      </article>
    
      <article itemscope itemtype="http://schema.org/Article" itemref="city">
      </article>
    
    </section>