Schema.org in a directory website

Is it possible to introduce Schema.org markup (using JSON-LD) in a directory website?

My website shows restaurants from a region, but the restaurants are not mine.

I'm thinking to introduce address, opening time, ….

Answers 1

  • Of course.

    For marking up entities (like restaurants, people, things, ideas, documents, etc.) with the vocabulary Schema.org, it’s irrelevant if these entities belong to you in any kind of way.

    I could, for example, state data about you on my site:

    <div typeof="schema:Person">
      <a property="schema:sameAs" href="http://webmasters.stackexchange.com/users/53655/saimonx">
        <span property="schema:name">saimonx</span>
      </a> 
      has won the 
      <span property="schema:award">foobar award</span>.
    </div>
    

    So it’s possible, and useful, to use the Restaurant type for each restaurant in your directory.

    With the property sameAs you could link to the restaurant’s official website (or its Wikipedia article etc.).


Related Questions