W3C home > Mailing lists > Public > public-vocabs@w3.org > May 2015

duplicate properties or duplicate content?

From: Gunnar Bittersmann <gunnar@bittersmann.de>
Date: Tue, 5 May 2015 08:10:09 +0200
Message-Id: <E5525154-8CEB-40AF-A907-F0C3623E964A@bittersmann.de>
To: "public-vocabs@w3.org" <public-vocabs@w3.org>
Hi there,
Is there any way in RFDa to gather related property values that are distributed across the document?

Example: `addressLocality` and `streetAddress` in:

On their Earth-wide tour the Kronos ensemble “Art Is a Weapon” will guest on 9 May 2315 at Warsaw’s Och-teatr to perform Wil'yam Shex'pir’s “Hamlet” in original Klingon language.
Address: Grójecka 65, begin 20:00

For “Warsaw” and “Och-teatr” I would open a `location` container:

<article typeof="TheaterEvent" vocab="http://schema.org/">
   <p>…at
       <span property="location" typeof="PerformingArtsTheater">
           <span property="address" typeof="PostalAddress">
               <span property="addressLocality">Warsaw</span>’s
           </span>
           <span property="name" lang="pl">Och-teatr</span>
       </span>
       to perform
       <span property="workPerformed" typeof="CreativeWork">…</span>
   </p>

The `location` container has to be closed because it’s followed by information that belongs into the `workPerformed` container.

In the next paragraph, `location` information continues:

   <p>
       <span property="location" typeof="PerformingArtsTheater">
   Address:
           <span property="address" typeof="PostalAddress">
               <span property="streetAddress"><span lang="pl">Grójecka</span> 65</span>, …
           </span>
       </span>
       …
   </p>
</article>

Using the `performance` predicate twice does not mean that their object nodes are identical, does it? Is there any way to make them the same?

Or would I have to notate all `location` information in one place, using `meta` elements?

<article typeof="TheaterEvent" vocab="http://schema.org/">
   <p>…at
       <span property="location" typeof="PerformingArtsTheater">
           <span property="address" typeof="PostalAddress">
               <span property="addressLocality">Warsaw</span>’s
               <meta property="streetAddress" content="Grójecka 65"/>
           </span>
           <span property="name" lang="pl">Och-teatr</span>
       </span>
       to perform
       <span property="workPerformed" typeof="CreativeWork">…</span>
   </p>

And no further RDFa attributes down below?

   <p>
Address: <span lang="pl">Grójecka</span> 65, …
       …
   </p>
</article>

That would mean duplicated content: “Grójecka 65” appears twice. Is there any way to avoid this?

Thanks,
Gunnar
Received on Tuesday, 5 May 2015 06:21:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:49:40 UTC