W3C home > Mailing lists > Public > public-rdfa@w3.org > April 2013

Re: owl:sameAs assertions in RDFa

From: Gregg Kellogg <gregg@greggkellogg.com>
Date: Mon, 1 Apr 2013 11:45:34 -0700
Cc: public-rdfa@w3.org
Message-Id: <121304B7-AD1E-4EED-A935-EBD0FD87A52D@greggkellogg.com>
To: Kingsley Idehen <kidehen@openlinksw.com>
On Apr 1, 2013, at 10:10 AM, Kingsley Idehen <kidehen@openlinksw.com> wrote:

> On 4/1/13 12:59 PM, Gregg Kellogg wrote:
>> On Apr 1, 2013, at 8:17 AM, Jeremy Tarling <jeremy.tarling@bbc.co.uk> wrote:
>> 
>>> hello all
>>> 
>>> I am trying to make an owl:sameAs assertion in some RDFa. I have the following code:
>>> 
>>> <span rel="rnews:about" resource="http://www.bbc.co.uk/things/4c0ccb99-7042-49e5-bb44-338b540441eb#id">
>>>    <span rel="owl:sameAs" resource="http://dbpedia.org/resource/Buckinghamshire_County_Council"></span>
>>> </span>
>>> 
>>> (I have declared the rnews and owl prefixes elsewhere in the doc)
>>> 
>>> When I test it only the first statement (rnews:about bbc:thing) is being picked up by linked data extraction tools, the owl:sameAs to the corresponding dbpedia URI is being ignored. Can anyone tell me what I'm doing wrong here please?
>> Using my distiller [1], If I use the followiing input:
>> 
>> <div prefix="rnews: http://iptc.org/std/rNews/2011-10-07#">
>>   <span rel="rnews:about" resource="http://www.bbc.co.uk/things/4c0ccb99-7042-49e5-bb44-338b540441eb#id">
>>      <span rel="owl:sameAs" resource="http://dbpedia.org/resource/Buckinghamshire_County_Council"></span>
>>   </span>
>> </div>
>> 
>> I get the following output:
>> 
>> @prefix owl: <http://www.w3.org/2002/07/owl#> .
>> @prefix rnews: #> .
>> 
>> <> rnews:about > .
>> 
>> <http://www.bbc.co.uk/things/4c0ccb99-7042-49e5-bb44-338b540441eb#id> owl:sameAs <http://dbpedia.org/resource/Buckinghamshire_County_Council> .
>> 
>> Looks okay to me. Note "owl" is defined in the RDFa initial context.
>> 
>> Gregg
>> 
>> [1] http://rdf.greggkellogg.net/distiller
> 
> Gregg,
> 
> Why not share a complete HTML doc skeleton as this little episode could have a lot of future utility. If you don't mind, please just place the HTML doc you used at Web accessible location (URL).
> 
> The owl:sameAs and rdfs:sameAs scenario has already spooked me :-)

Sure, I put up the document at [1] and a hook to my distiller processing the document is at [2]. Note that this example is a simple case of chaining in RDFa, where the object of a parent element becomes the subject of the child element. This works only with @rel (or @rev) and not with @property, as it's considered an /advanced/ feature.

Gregg Kellogg
gregg@greggkellogg.net

[1] http://greggkellogg.net/sameas-example.html
[2] http://rdf.greggkellogg.net/distiller?format=turtle&in_fmt=rdfa&uri=http://greggkellogg.net/sameas-example.html


> Kingsley
>> 
>>> JT
>>> 
>>> -- 
>>> Jeremy Tarling
>>> Data Architect, BBC News
>>> Future Media News & Knowledge
>>> 4th floor New Broadcasting House
>>> London W1A 1AA
>>> tel: 07799 510 992
>>> 
>> 
>> 
>> 
> 
> 
> -- 
> 
> Regards,
> 
> Kingsley Idehen	
> Founder & CEO
> OpenLink Software
> Company Web: http://www.openlinksw.com
> Personal Weblog: http://www.openlinksw.com/blog/~kidehen
> Twitter/Identi.ca handle: @kidehen
> Google+ Profile: https://plus.google.com/112399767740508618350/about
> LinkedIn Profile: http://www.linkedin.com/in/kidehen
> 
> 
> 
> 
> 
Received on Monday, 1 April 2013 18:46:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:15:10 UTC