Re: Disambiguating properties when using typeof lists.

On Mon, Jun 24, 2013 at 5: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>
>

To clarify, here is how your snippet could be written:
<section vocab="http://schema.org/" typeof="Courthouse
GovernmentOrganization">
  <p property="openingHoursSpecification">…</p> <!-- from Place -->
  <p property="contactPoint">…</p> <!-- from Organization -->
  <p property="name">…</p>
</section>

your original snippet was pretty close to it.

Steph.


>
> 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.
>
>

Received on Tuesday, 25 June 2013 15:22:45 UTC