Re: Disambiguating properties when using typeof lists.

The full URIs for schema.org properties do not include their class. For
example, the full URI for the "name" property is http://schema.org/name.

FYI, there are a few other issues with the snippet you sent. Schema.org
does not use "title" for the label of things like a Courthouse, but instead
uses "name", and some processors will handle classes in a case sensitive
way, so CourtHouse should be Courthouse.

-Lin


On Mon, Jun 24, 2013 at 10:51 AM, Max Froumentin <
max.froumentin@digital.justice.gov.uk> wrote:

> Hi there,
>
> I'm trying to describe an object (a court house) having two types:
> CourtHouse and GovernmentOrganization, from schema.org.
>
> <section vocab="http://schema.org/" typeof="CourtHouse
> GovernmentOrganization">
>   <p property="openingHoursSpecification">…</p> <!-- from Place -->
>   <p property="contactPoint">…</p> <!-- from Organization -->
> </section>
>
> But it turns out that both types have a "title" property. So if I want
> to use it, I need to disambiguate title. I think I can write:
>
>  <p property="http://schema.org/CourtHouse#title">…</p>
>
> But can I shorten that using prefixes:
>
> <section prefix="sc: http://schema.org/" typeof="sc:CourtHouse
> sc:GovernmentOrganization">
>   <p property="openingHoursSpecification">…</p> <!-- from Place -->
>   <p property="contactPoint">…</p> <!-- from Organization -->
>   <p property="dc:CourtHouse#title">…</p>
> </section>
>
> At least dc:CourtHouse#title is a syntactically correct CURIE, but is
> the whole construct a correct expression of the RDF graph I expect?
>
> Max.
>
>


-- 
Lin Clark
Drupal Consultant

lin-clark.com
twitter.com/linclark

Received on Tuesday, 25 June 2013 14:38:51 UTC