schemaorg-coda :: Example

eg-0454

From v29.4

JSON-LD

{
      "@context": "https://schema.org",
      "@type": "VisualArtwork",
      "name": "La trahison des images",
      "alternateName": "The Treachery of Images",
      "image": "http://upload.wikimedia.org/wikipedia/en/b/b9/MagrittePipe.jpg",
      "description": "The painting shows a pipe. Below it, Magritte...",
      "creator": [
        {
          "@type": "Person",
          "name": "René Magritte",
          "sameAs": "https://www.freebase.com/m/06h88"
        }
      ],
      "width": [
        {
          "@type": "Distance",
          "name": "940 mm"
        }
      ],
      "height": [
        {
          "@type": "Distance",
          "name": "635 mm"
        }
      ],
      "artMedium": "oil",
      "artworkSurface": "canvas"
    }

RDFa

<div vocab="https://schema.org/" typeof="VisualArtwork">
        <link property="sameAs" href="http://rdf.freebase.com/rdf/m.0439_q" />
        <h1 property="name" lang="fr">La trahison des images </h1>
        <p>
            A <span property="artform">painting</span> also known as
            <span>The Treason of Images</span> or
            <span property="alternateName">The Treachery of Images</span>.
        </p>
        <img property="image" src="http://upload.wikimedia.org/wikipedia/en/b/b9/MagrittePipe.jpg" />
        <div property="description">
            <p>
                The painting shows a pipe. Below it, Magritte painted,
                <q lang="fr">Ceci n'est pas une pipe.</q>, French for
                "This is not a pipe."
            </p>
            <p>
                His statement is taken to mean that the painting itself is not a pipe.
                The painting is merely an image of a pipe. Hence, the description,
                "this is not a pipe."
            </p>
            <p>
                Similarly, the image shown above is neither a pipe nor even a painting,
                but rather a digital photograph.
            </p>
            <p>
                The painting is sometimes given as an example of meta message conveyed
                by paralanguage. Compare with Korzybski's <q>The word is not the thing</q>
                and <q>The map is not the territory</q>.
        </div>
        <ul>
            <li>Artist:
                <span property="creator" typeof="Person">
                    <a property="sameAs" href="https://www.freebase.com/m/06h88">
                        <span property="name">René Magritte</span>
                    </a>
                </span>
            </li>
            <li>Dimensions:
                <span property="width" typeof="Distance">940 mm</span> ×
                <span property="height" typeof="Distance">635 mm</span>
            </li>
            <li>Materials:
                <span property="artMedium">oil</span> on <span property="artworkSurface">canvas</span>
            </li>
        </ul>
    </div>

Microdata

<div itemscope itemtype="https://schema.org/VisualArtwork">
        <link itemprop="sameAs" href="http://rdf.freebase.com/rdf/m.0439_q" />
        <h1 itemprop="name" lang="fr">La trahison des images </h1>
        <p>
            A <span itemprop="artform">painting</span> also known as
            <span>The Treason of Images</span> or
            <span itemprop="alternateName">The Treachery of Images</span>.
        </p>
        <img itemprop="image" src="http://upload.wikimedia.org/wikipedia/en/b/b9/MagrittePipe.jpg" />
        <div itemprop="description">
            <p>
                The painting shows a pipe. Below it, Magritte painted,
                <q lang="fr">Ceci n'est pas une pipe.</q>, French for
                "This is not a pipe."
            </p>
            <p>
                His statement is taken to mean that the painting itself is not a pipe.
                The painting is merely an image of a pipe. Hence, the description,
                "this is not a pipe."
            </p>
            <p>
                Similarly, the image shown above is neither a pipe nor even a painting,
                but rather a digital photograph.
            </p>
            <p>
                The painting is sometimes given as an example of meta message conveyed
                by paralanguage. Compare with Korzybski's <q>The word is not the thing</q>
                and <q>The map is not the territory</q>.
        </div>
        <ul>
            <li>Artist:
                <span itemprop="creator" itemscope itemtype="https://schema.org/Person">
                    <a itemprop="sameAs" href="https://www.freebase.com/m/06h88">
                        <span itemprop="name">René Magritte</span>
                    </a>
                </span>
            </li>
            <li>Dimensions:
                <span itemprop="width" itemscope itemtype="https://schema.org/Distance">940 mm</span> ×
                <span itemprop="height" itemscope itemtype="https://schema.org/Distance">635 mm</span>
            </li>
            <li>Materials:
                <span itemprop="artMedium">oil</span> on <span itemprop="artworkSurface">canvas</span>
            </li>
        </ul>
    </div>

Pre-Markup

Fairly straightforward painting markup.

    <div>
        <h1 lang="fr">La trahison des images </h1>
        <p>
            A painting also known as The Treason of Images or
            The Treachery of Images.
        </p>
        <img src="http://upload.wikimedia.org/wikipedia/en/b/b9/MagrittePipe.jpg" />
        <div>
            <p>
                The painting shows a pipe. Below it, Magritte painted,
                <q lang="fr">Ceci n'est pas une pipe.</q>, French for
                "This is not a pipe."
            </p>
            <p>
                His statement is taken to mean that the painting itself is not a pipe.
                The painting is merely an image of a pipe. Hence, the description,
                "this is not a pipe."
            </p>
            <p>
                Similarly, the image shown above is neither a pipe nor even a painting,
                but rather a digital photograph.
            </p>
            <p>
                The painting is sometimes given as an example of meta message conveyed
                by paralanguage. Compare with Korzybski's <q>The word is not the thing</q>
                and <q>The map is not the territory</q>.
        </div>
        <ul>
            <li>Artist: <a href="https://www.freebase.com/m/06h88">René Magritte</a></li>
            <li>Dimensions: 940 mm × 635 mm</li>
            <li>Materials: oil on canvas</li>
        </ul>
    </div>