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

Hi Folks,

I'm busy with learning RDFa Lite and therefore am working on some code
examples which originally were written HTML + Microdata, and for learning
purposes, now need to be translated into HTML + RDFa Lite. And as expected,
I've hit a bump in the road when it came to the subject of property
copying. Now some time ago Manu Sporny pointed out to me, that if I have
any questions about RDFa Lite, the public-rdfa group is the place to be.
And therefore I thought I'd come to you and see if anybody can enlighten me.

I would like to know if there is way I can copy just some of the
properties, that lie within a bigger pattern? There probably is a good way
to do it but unfortunately the solution eludes me.

To illustrate my issue I have made 2 smaller examples, which hopefully help
explain my predicament:

[1] Microdata:
<body itemscope itemtype="http://schema.org/ItemPage"
itemref="copyright-holder">
<article itemprop="text">
<div itemscope itemtype="http://schema.org/Article">
<meta itemprop="publisher" itemscope itemtype="http://schema.org/Corporation"
itemref="publisher-url publisher-description">

<h1 itemprop="Name">How to copy properties in RDFa Lite & Microdata</h1>
 </div>
</article>

<footer itemprop="mentions" itemscope itemtype="http://schema.org/WPFooter">
 <div itemprop="text">
<p itemscope>
 <span id="copyright-holder" itemprop="copyrightHolder" itemscope itemtype="
http://schema.org/Corporation">
 <a id="publisher-url" itemprop="url" href="http://www.example.org" title>
 <span itemprop="name">Corporation name</span>
 </a>

<span id="publisher-description" itemprop="description">Corporation
description</span>
 </span>
 </p>
 </div>
</footer>
</body>

In the above example the ItemPage gets additional properties by pointing to
#copyright-holder. At the same time the Article gets additional properties
that lie within #copyright-holder and thus does not get all of the
properties the ItemPage gets. The Article gets these extra properties by
pointing directly to the properties with the id's #publisher-url &
#publisher-description. Now I have made it halfway in translating this to
RDFa Lite but got stuck on copying the properties for the Article

[2] RDFa Lite
<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>

In the RDFa Lite example the ItemPage gets it's properties perfectly by
copying them from the pattern #copyright-holder. But how can I to mark it
up so that the Article gets it's properties as well? Would I need to markup
a new pattern within the pattern, can I copy properties directly as I do in
the Microdata example or would I need to do it in a completely different
way altogether?

Thanks in advance for any help,
Jarno

Received on Saturday, 8 March 2014 21:38:41 UTC