W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > January 2008

Re: annotate same data with different vocabularies

From: Ivan Herman <ivan@w3.org>
Date: Thu, 10 Jan 2008 17:31:28 +0100
Message-ID: <47864860.2080305@w3.org>
To: Meri Kovach <meri.kovach@gmail.com>
Cc: public-rdf-in-xhtml-tf@w3.org


Ivan Herman wrote:
> 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>
> 

(My test file included a <base> statement for 
<http://www.ivan-herman.net>, hence the vanity URL:-)

Ivan


> 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:31:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 10 January 2008 16:31:21 GMT