- From: Ivan Herman <ivan@w3.org>
- Date: Thu, 10 Jan 2008 17:23:40 +0100
- To: Meri Kovach <meri.kovach@gmail.com>
- Cc: public-rdf-in-xhtml-tf@w3.org
Received on Thursday, 10 January 2008 16:23:34 UTC
You just did it:-)
Running your code through an implementation one gets:
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
xmlns:foaf='http://xmlns.com/foaf/0.1/'
xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
xmlns:vcard='http://www.w3.org/2001/vcard-rdf/3.0#'
>
<foaf:Person rdf:about="http://www.ivan-herman.net#meri">
<vcard:Given>Meri</vcard:Given>
<foaf:firstName>Meri</foaf:firstName>
<rdf:type rdf:resource="http://www.w3.org/2001/vcard-rdf/3.0#Name"/>
</foaf:Person>
</rdf:RDF>
This is what you are looking for, isn't it?
Ivan
Meri Kovach wrote:
> Hi all,
>
> could someone give me an example how to write something like this:
>
> <div about="#meri" instanceof="foaf:Person vcard:Name">
>
> <span property="foaf:firstName vcard:Given">
> Meri
> </span>
> </div>
>
> I want to annotate my name with properties form two different vocabularies.
>
> Thnx,
>
> Meri
>
--
Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
PGP Key: http://www.ivan-herman.net/pgpkey.html
FOAF: http://www.ivan-herman.net/foaf.rdf
Received on Thursday, 10 January 2008 16:23:34 UTC