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: > 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: >> 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" >> 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: >>>> This is exactly the right time to start playing with extensions. I >>>>> [snip] >>>>> #1 is not that bad: >>>>> :link [ a :Link; >>>>> thr:count "10"; # notice JS extension >>>> is thr:count a real extension btw? Do we have good examples for >>> As real as it gets. >>> http://www.ietf.org/internet-drafts/draft-snell-atompub-feed- >>>> 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. >>> Sure. >>>> Of course having something that simplifies things the way we have >>> Not me. >>>> 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] >>>>> [] :id [ >>>> By the way I wonder how this compares to using owl:sameAs . >>> 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 >>>> [] :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 >>>> ok. >>>>> Now onto extensions. >>>>> atom:extension rdfs:type atom:extensionElementProperty; >>>>> <a:entry> >>>>> [ :extension "<gd:when startTime="2005-06-06" endTime="2005-06-07" >>>> Yes. I agree. This is what one has to do, unless one is given some >>>>> Luckily, the only two things we need to pass to extension >>>>> Now in case someone brings up the I would like to query the >>>>> Additionally, we could support :simpleExtension. >>>>> <a:entry> >>>>> [ >>>>> s:when rdf:type atom:simpleExtensionElementProperty . >>>> Yes. That looks good. >>>>> Regards, >>>> Looks like a really good start. Would you like to write up a little >>> k. We'll get to that bridge when we get there. ;) >>>>> 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.
| ||||||||||||||