A little confusion

20 views
Skip to first unread message

demonscars

unread,
Jul 7, 2011, 1:27:26 PM7/7/11
to Schema.org Discussion
I run a site that reviews various things, like movies and tv shows.
I'm running into confusion using the examples given on schema.org
though. The way I have my site set up is that there's the relevant
information about the thing being reviewed listed on top then the text
of the review. So for example a movie review would be something like
this:

-Title of movie
-Movie's poster
-Director
-Writer or writers
-Actors (multiple)
-Genres (multiple)
-MPAA rating
-Body of review
-Author info box (uses rel="author" to point to a profile page then
back to google profile)
-Date/Time published

Would I put all the stuff before the body of the review under <div
itemscope itemtype ="http://schema.org/Movie"> then use the Movie
schema itemprops (also could I put an array like multiple genres under
one itemprop or would I have to mark each individual one?) and then
close that itemtype div and then use the itemtype="http://schema.org/
Review" div for the body of the review?

These pages aren't aggregate reviews either (which is what the example
seems to show), it's one single author long form review.

Philip Jägenstedt

unread,
Jul 7, 2011, 5:28:37 PM7/7/11
to schemaorg-...@googlegroups.com

If I'm not misunderstanding, there are two issues here:

1. information for a single item is spread around the page (for layout reasons)

2. one item is contained within another in the markup (for layout reasons)

For the first problem, if you can find a common ancestor of all your
information, then you don't have a problem, just put
itemscope/itemtype on that ancestor. If that's not practical, however,
you case use itemref to "import" properties from other parts of the
page. The "vCard: Avenue Q" example in
http://foolip.org/microdatajs/live/ demonstrates this. (Warning: I
have no idea if the search engine's Microdata parsers understand
itemref, but it's in the spec.)

For the second problem, it's perfectly OK to nest items if you need
to, that doesn't imply any relationship between them. In this example,
there are two independent items:

<div itemscope itemtype="http://schema.org/Movie">
About the movie...
<div itemscope itemtype="http://schema.org/Review">It was great</div>
</div>

This is certainly wrong, because there's nothing linking the review to
the movie, per-spec Microdata parsers won't make the connection. It's
only if you use itemprop on the inner item that it "belongs" to the
outer item:

<div itemscope itemtype="http://schema.org/Movie">
About the movie...
<div itemprop="review" itemscope
itemtype="http://schema.org/Review">It was great</div>
</div>

(Note: I havent' checked if review is a property of Movie, just giving
an example.)

--
Philip Jägenstedt

demonscars

unread,
Jul 7, 2011, 5:46:31 PM7/7/11
to Schema.org Discussion
Thanks a lot, I think I understand now.

On Jul 7, 5:28 pm, Philip Jägenstedt <phi...@foolip.org> wrote:
> page. The "vCard: Avenue Q" example inhttp://foolip.org/microdatajs/live/demonstrates this. (Warning: I
Reply all
Reply to author
Forward
0 new messages