Re: AW: schema.org+Microdata: additional namespaces?

Hi Greg, all:

> No, it's perfectly acceptably for the @itemprop terms to come from different namespaces, which is why it's appropriate to use absolute URLs in addition to terms relative to @itemtype.
> 
> Gregg

I am not entirely sure, but I thought that the microdata processing rules of the microdata vocabulary from which the main itemtype stems must state whether such full URIs for additional properties are supported or not.
I cannot find any reference for that in the microdata specification, so I might be wrong. 

Martin


On Sep 8, 2012, at 4:56 AM, Gregg Kellogg wrote:

> On Sep 7, 2012, at 6:45 PM, "Cord Wiljes" <cwiljes@cit-ec.uni-bielefeld.de> wrote:
> 
>> Hi Steph,
>>  
>> thank you for the clarification. The itemprop attribute can indeed have several values (separated by spaces). Nevertheless I fear these can only come from the namespace inherited from the itemtype. And since there is only one itemtype allowed there is also only one namespace. So this one would be O.K.:
>> <div itemscope itemtype ="http://schema.org/Movie">
>> <h1 itemprop="name keywords">Avatar</h1>
>> But this one probably would not be O.K.:
>>  
>> <h1 itemprop="name http://purl.org/dc/elements/1.1/title">Avatar</h1>
>>  
>> Cord
>> 
> 
> No, it's perfectly acceptably for the @itemprop terms to come from different namespaces, which is why it's appropriate to use absolute URLs in addition to terms relative to @itemtype.
> 
> Gregg
> 
>> Von: Stéphane Corlosquet [mailto:scorlosquet@gmail.com] 
>> Gesendet: Samstag, 8. September 2012 00:03
>> An: Cord Wiljes
>> Cc: public-vocabs@w3.org
>> Betreff: Re: schema.org+Microdata: additional namespaces?
>>  
>> Hi Cord,
>>  
>>  
>> On Fri, Sep 7, 2012 at 5:40 PM, Cord Wiljes <cwiljes@cit-ec.uni-bielefeld.de> wrote:
>> I just saw at http://www.w3.org/TR/microdata/#attr-itemtype:
>>  
>> The itemtype attribute, if specified, must have a value that is an unordered set of unique space-separated tokens that are case-sensitive, each of which is a valid URL that is an absolute URL, and all of which are defined to use the same vocabulary.
>>  
>> So my example
>>  
>> <h1 itemprop="name http://purl.org/dc/elements/1.1/title">Avatar</h1>
>>  
>> would not be allowed, because it mixes two namespaces (schema: and dc:).
>>  
>> Your first example was perfectly fine, itemprop does allow multiple properties from multiple namespaces, http://www.w3.org/TR/microdata/#names:-the-itemprop-attribute.
>>  
>> The definition you have pasted above with the restriction on the single vocabulary is for the itemtype attribute. Schema.org offers a work around for that via the additionalType property: "An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the 'typeof' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally." - you can see it on all schema.org type pages, e.g. http://schema.org/Person
>>  
>> Steph.
>>  
>>  
>> Cord
>>  
>> Von: Cord Wiljes [mailto:cwiljes@cit-ec.uni-bielefeld.de] 
>> Gesendet: Donnerstag, 6. September 2012 17:29
>> An: public-vocabs@w3.org
>> Betreff: schema.org+Microdata: additional namespaces?
>>  
>> Dear all,
>> 
>> is it possible to use properties from another namespace (like Dublin Core) together with schema.org in Microdata? Using the Avatar example on the schema.org website (http://www.schema.org/docs/gs.html) would the following example work?
>> <div itemscope itemtype ="http://schema.org/Movie" itemid="http://dbpedia.org/resource/Avatar_(2009_film)">
>>    <h1 itemprop="name http://purl.org/dc/elements/1.1/title">Avatar</h1>
>> </div>
>> Or translated into turtle:
>> <http://dbpedia.org/resource/Avatar_(2009_film)>  a  schema:Movie ; 
>>                                                                                 schema:name  "Avatar" ; 
>>                                                                                 dc:title "Avatar" .
>>  
>> 
>>  
>>  

--------------------------------------------------------
martin hepp
e-business & web science research group
universitaet der bundeswehr muenchen

e-mail:  hepp@ebusiness-unibw.org
phone:   +49-(0)89-6004-4217
fax:     +49-(0)89-6004-4620
www:     http://www.unibw.de/ebusiness/ (group)
         http://www.heppnetz.de/ (personal)
skype:   mfhepp 
twitter: mfhepp

Check out GoodRelations for E-Commerce on the Web of Linked Data!
=================================================================
* Project Main Page: http://purl.org/goodrelations/

Received on Tuesday, 11 September 2012 14:13:50 UTC