in a directory website

Is it possible to introduce 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, 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="">
        <span property="schema:name">saimonx</span>
      has won the 
      <span property="schema:award">foobar award</span>.

    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