Re: On using qualified names for properties

On 10 May 2012 12:03, Adrian Giurca <giurca@tu-cottbus.de> wrote:
> Sorry I'm coming in with another question:
>
> Do you consider that http://schema.org/Thing/name and
> http://schema.org/CreativeWork/name
>
> as two distinct properties?

I prefer that we understand it as a single property that can be used
in multiple situations.

Sometimes this approach means that documentation from the most general
level can seem awkward or too vague at more specific levels, e.g. name
in http://schema.org/Book says "The  name of the item." rather than
"The name of the book.", but on balance it is simpler to treat
properties as context-free. There are ways we could add more context
specific documentation (and usage rules) in later.

> On 5/10/2012 11:29 AM, Егор Антонов wrote:
> Does it actually means, that there is no conflicting property names in
> different types yet?
> Shouldn't we use http://schema.org/ + class name + property name to make
> properties URIs really U?

I don't believe we have any conflicts yet, because we have
uppercase-vs-lowercase as a way of keeping things separate. But yes,
as the vocabulary grows, there are greater opportunities for overlap.

An additional reason to stay with the flat model of
'http://schema.org/' + property name, is that this is how RDFa
composes property URIs. For example in
https://dvcs.w3.org/hg/webschema/raw-file/default/schema.org/drafts/examples/site/testcases/rdfa/sdo_eg_rdfa_1.html
we only need the string 'http://schema.org/' once, and the parser
generates property URIs such as http://schema.org/image:

<div vocab="http://schema.org/" typeof="Person">
  <span property="name">Jane Doe</span>
  <img src="janedoe.jpg" property="image" />
  <span property="jobTitle">Professor</span>
  <div property="address" typeof="PostalAddress">
    <span property="streetAddress">
      20341 Whitworth Institute
      405 N. Whitworth
    </span>
    <span property="addressLocality">Seattle</span>,
    <span property="addressRegion">WA</span>
    <span property="postalCode">98052</span>
  </div>
</div>

Dan

Received on Thursday, 10 May 2012 10:29:47 UTC