Re: how do I copy some properties that are part of a bigger pattern

"..the @resource attributes get in the way.."
Could you explain this to me a bit more please Gregg? Because if I parse my
last markup through the Structured data linter and RDFa Play I get 100% the
same outcome as with your markup. Yandex and Google see the same data as
well (in a ever so slightly different manner).

When I look at the output these parsers have no trouble extracting the
@resources as different rdfanodes. Unless I'm completely overlooking
something, or am breaking some cardinal rules, which both are feasible
since I just got around to looking more deeply into RDFa Lite.


2014-03-09 1:33 GMT+01:00 Gregg Kellogg <gregg@greggkellogg.net>:

> Hi Jarno, I don't think you can do precicely what you want, since if a
> pattern is included in another pattern, the @resource attributes get in the
> way. You can do it by adding some more rdfa:copy properties. This is what I
> came up with:
>
> <body vocab="http://schema.org/" resource="#item-page" typeof="ItemPage">
>   <link property="rdfa:copy" href="#copyright-holder">
>
>   <article property="text">
>     <div resource="#article" typeof="Article">
>       <div property="publisher" typeof="Corporation">
>         <link property="rdfa:copy" href="#publisher-url"/>
>         <link property="rdfa:copy" href="#publisher-description"/>
>       </div>
>
>
>       <h1 property="Name">How to copy properties in RDFa Lite &amp;
> Microdata</h1>
>     </div>
>   </article>
>
>   <footer property="mentions" typeof="WPFooter">
>     <div property="text">
>       <p resource="#copyright-holder" typeof="rdfa:Pattern">
>         <span property="copyrightHolder" typeof="Corporation">
>           <link property="rdfa:copy" href="#publisher-url"/>
>           <link property="rdfa:copy" href="#publisher-description"/>
>           <span resource="#publisher-url" typeof="rdfa:Pattern">
>             <a id="publisher-url" property="url" href="
> http://www.example.org" title>
>               <span property="name">Corporation name</span>
>             </a>
>           </span>
>
>           <span resource="#publisher-description" typeof="rdfa:Pattern">
>             <span id="publisher-description"
> property="description">Corporation description</span>
>           </span>
>         </span>
>       </p>
>     </div>
>   </footer>
> </body>
>
> Gregg Kellogg
> gregg@greggkellogg.net
>
> On Mar 8, 2014, at 2:37 PM, Jarno van Driel <jarnovandriel@gmail.com>
> wrote:
>
> <body vocab="http://schema.org/" resource="#item-page" typeof="ItemPage">
> <link property="rdfa:copy" href="#copyright-holder">
>
> <article property="text">
> <div resource="#article" typeof="Article">
>  <link property="publisher" typeof="Corporation" href=?????>
>
>  <h1 property="Name">How to copy properties in RDFa Lite & Microdata</h1>
> </div>
> </article>
>
> <footer property="mentions" typeof="WPFooter">
>  <div property="text">
>  <p resource="#copyright-holder" typeof="rdfa:Pattern">
>  <span property="copyrightHolder" typeof="Corporation">
>  <a id="publisher-url" property="url" href="http://www.example.org" title>
>  <span property="name">Corporation name</span>
>  </a>
>
> <span id="publisher-description" property="description">Corporation
> description</span>
>  </span>
> </p>
>  </div>
> </footer>
> </body>
>
>
>

Received on Sunday, 9 March 2014 00:50:55 UTC