From: Elias Torres <el...@torrez.us>
Date: Thu, 13 Jul 2006 10:38:15 -0400
Local: Thurs, Jul 13 2006 10:38 am
Subject: Extensions and Extension Attributes
As you already know we are putting the final touches on the Atom/RDF
store and as we work with James Snell from Abdera and author of many extensions, he found a "bug" as we don't support extension attributes. Our store doesn't capture in RDF elements containing extension Here's the problem child #1: <a:link rel="replies" href="foo" thr:count="10" xmlns:thr="urn:foo" /> Here's another problem child #2: <a:id xmlns:x="urn:bar" #1 is not that bad: :link [ a :Link; thr:count "10"; # notice JS extension #2 is where the hill got a little steep: [] :id "urn:lsid:ex.org:entries:1"^^xsd:anyURI . However, Lee remembered to check the hiking module and found this gem: http://www.w3.org/TR/rdf-schema/#ch_value """rdf:value is an instance of rdf:Property that may be used in There's a note to see example 16 in the RDF primer, but that's not http://www.w3.org/TR/2004/REC-rdf-primer-20040210/#rdfvalue """in some cases one of the parts of the structured value is often The most relevant line: "...or other information that qualifies the main [] :id [ # other contextual information.. Now we can go into the extension attributes... [] :id [ x:identifierType rdfs:type atom:extensionAttributeProperty; Now because of atom:extensionAttributeProperty we can figure what Now onto extensions. atom:extension rdfs:type atom:extensionElementProperty; <a:entry> [ :extension "<gd:when startTime="2005-06-06" endTime="2005-06-07" Luckily, the only two things we need to pass to extension elements: Now in case someone brings up the I would like to query the name of the Additionally, we could support :simpleExtension. <a:entry> [ s:when rdf:type atom:simpleExtensionElementProperty . Regards, Ben, Lee and I. You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
From: Henry Story <henry.st...@bblfish.net>
Date: Thu, 13 Jul 2006 19:18:37 +0200
Local: Thurs, Jul 13 2006 1:18 pm
Subject: Re: Extensions and Extension Attributes
On 13 Jul 2006, at 16:38, Elias Torres wrote:
> As you already know we are putting the final touches on the Atom/RDF This is exactly the right time to start playing with extensions. I > store and as we work with James Snell from Abdera and author of many > extensions, he found a "bug" as we don't support extension attributes. have not tried at all yet. (in part because it seems like the most clearly badly designed part of atom - and the thought of all this wasted time because ... ok I'll stop the rant right here.) > [snip] is thr:count a real extension btw? Do we have good examples for > <a:link rel="replies" href="foo" thr:count="10" xmlns:thr="urn:foo" /> > #1 is not that bad: > :link [ a :Link; > thr:count "10"; # notice JS extension this? You probably by now have a list of good extensions. I suppose in the end we will never be able to formulate a general By the way this could be an argument for making Link just simply :link [ a :Link; here we would be very close to the syntax. Of course having something that simplifies things the way we have now So keep this in mind as you work with extensions. > #2 is where the hill got a little steep: reminder to myself: we are dealing with this example: <a:id xmlns:x="urn:bar" > [snip] By the way I wonder how this compares to using owl:sameAs . > Now we can go into the extension attributes... > [] :id [ [] :id [ owl:sameAs "urn:lsid:ex.org:entries:1"^^xsd:anyURI; > x:identifierType rdfs:type atom:extensionAttributeProperty; > Now because of atom:extensionAttributeProperty we can figure what Yes. I agree. This is what one has to do, unless one is given some indication as to the meaning of the extension. In which case one could process it and extract the meaning as a set of tri Yes. That looks good. > Regards, Looks like a really good start. Would you like to write up a little section for the html version explaining this? Perhaps a little further down the road when things have settled a bit (or before to help you think about them). You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
From: Elias Torres <el...@torrez.us>
Date: Thu, 13 Jul 2006 16:58:17 -0400
Local: Thurs, Jul 13 2006 4:58 pm
Subject: Re: Extensions and Extension Attributes
As real as it gets.
http://www.ietf.org/internet-drafts/draft-snell-atompub-feed-thread-1... > Of course having something that simplifies things the way we have now Nothing that I read mentioned owl:sameAs . http://esw.w3.org/topic/InterpretationProperties http://www.w3.org/DesignIssues/InterpretationProperties http://chatlogs.planetrdf.com/rdfig/2003-03-26.html#T18-31-10 You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
From: Henry Story <henry.st...@bblfish.net>
Date: Sat, 15 Jul 2006 19:11:01 +0200
Local: Sat, Jul 15 2006 1:11 pm
Subject: Re: Extensions and Extension Attributes
One major problem with mapping any extensions from xml to rdf has to
do with the "semantic gap" between xml namespaces and rdf names. xml namespaces are sadly enough *not* uris. It is only an rdf/xml interpretation to interpret all elements and attributes as referring to urls. This shows up in a number of ways. The atom namespace for example is: "http://www.w3.org/2005/Atom" So for example for the thread link extension, we cannot really just <http://purl.org/syndication/thread/1.0count> So my thinking is that we should deal with each extension on an case <a:link rel="replies" href="foo" thr:count="10" xmlns:thr="urn:foo" /> we will have to use [] :link [ a :Link; Of course as soon as we have an interpreter for this extension, (a [] :link [ a :Link; This is ugly of course. We need to create a special url for Of course people dealing with xml databases will find it much easier Of course people with xml databases will find it very unpleasant to Henry Story On 13 Jul 2006, at 22:58, Elias Torres wrote: You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
From: Henry Story <henry.st...@bblfish.net>
Date: Sun, 16 Jul 2006 09:46:07 +0200
Local: Sun, Jul 16 2006 3:46 am
Subject: Re: Extensions and Extension Attributes
Well thinking about this a little more I found a solution to the
namespace mismatch problem: Invent a simple awol uri. So to take the thread example <a:link rel="replies" href="foo" thr:count="10" xmlns:thr="http:// we can find a url for thr:count by construction quite simply: http://bblfish.net/work/atom-owl/2006-06-06/ext/http://purl.org/ We can then create our own prefix @prefix thr: <http://bblfish.net/work/atom-owl/2006-06-06/ext/http:// And then we too can write, without fear of trading on someone's toes [] :link [ a :Link; If these spec writers ever decide on an official rdf url for their thr:coundt owl:sameAs thread:count . So the trick is to find a good construction mechanism. It would be Henry On 15 Jul 2006, at 19:11, Henry Story wrote: You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
From: Henry Story <henry.st...@bblfish.net>
Date: Tue, 18 Jul 2006 15:06:55 +0200
Local: Tues, Jul 18 2006 9:06 am
Subject: Re: Extensions and Extension Attributes
And if you want a theoretical explanation here is a sketch of one.
let us define two rdf relations :ElementOrAttribute a owl:Class; :namespace a owl:ObjectProperty; :name a owl:DatatypeProperty; [] cifp:productProperty ( :namespace :name ); So we can describe every xml element and attribute with the above _:ae :namespace "http://www.w3.org/2005/Atom"^^xsd:anyUri; Now I suppose we need a vocabulary to map those things to rdf things. :xml2rdf a owl:ObjectProperty; then we can write _:ae :xml2rdf :entry . So in particular for thr:count we can write [] :namespace "http://purl.org/syndication/thread/1.0"^^xsd:anyUri; This probably needs some more work, but it looks mostly right. Henry [1] On namespace defaulting see also <http://www.w3.org/TR/REC-xml- On 16 Jul 2006, at 09:46, Henry Story wrote: You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
| Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy |
| ©2012 Google |