You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Rob Evans <ob...@gmail.com> on 2007/07/31 18:17:48 UTC

Critique my AtomPub CDN

Folks,

I'm interested in getting feedback on this simple atompub Node Type
Definition. My intention was to keep things simple but wonder if this
is too simple. Are there any beginners mistakes being made?

BTW, I've found Jackrabbit and JSR 170 in general to be very easy to
work with and I appreciate your efforts. IMO, JSR 170

Looks like Oracle is supporting the JSR [1] now. Interesting days.

[1] http://www.oracle.com/technology/products/database/oracle11g/pdf/xml-db-11g-whitepaper.pdf


ATOMPUB NODE TYPE
=================================================
<atom = "http://www.w3.org/2007/atom">
<app  = "http://www.w3.org/2007/app">
<ism  = "http://ism.cisco.com/2007/ism/1.0">
<nt   = "http://www.jcp.org/jcr/nt/1.0">
<mix  = "http://www.jcp.org/jcr/mix/1.0">


[atom:Base] >nt:base
  - atom:lang (string)

[atom:Person] > atom:Base
  - atom:name (string) mandatory
  - atom:uri (string)
  - atom:email (string)

[atom:Node] > atom:Base
  - atom:rights  (string)
  + atom:author  (atom:Person) multiple
  - atom:blob    (string) mandatory

[atom:Entry] > atom:Node
  - atom:id (string) mandatory
  - atom:title (string) mandatory
  - atom:published (date)
  - atom:updated (date) mandatory
  - atom:content  (string)
  - atom:link  (string)

[atom:Feed] > atom:Node, mix:referenceable
  - atom:id (string) mandatory
  - atom:icon (string)
  - atom:logo (string)
  - atom:title (string)
  - atom:subtitle (string)
  - atom:updated (date)
  + * (atom:Entry) = atom:Entry multiple

[ism:SubjectArea] > nt:base, mix:referenceable
  - atom:name (string) mandatory
  + * (atom:Feed) = atom:Feed

[app:ServiceDocument] > nt:base, mix:referenceable
  - atom:name (string) mandatory
  - atom:blob (string)

Re: Critique my AtomPub CDN

Posted by Rob Evans <ob...@gmail.com>.
> It would be most interesting to see an open source atom-publishing to
> jcr adapter.
>
> --
> Torgeir Veimo
> torgeir@pobox.com

Then you may be interested in some work I am doing. In a nutshell,
I've written an Abdera [1] storage provider in Jackrabbit and a Flex
based client [2]. This was all done as a proof of concept (POC) and is
subsequently very crufty. I could probably open source the jackrabbit
bits if there is interest.

In case people are wondering the POC has to do with providing an
AtomPub access layer  ontop of a CMDB ala [3]. Think gData meets the
CMDB.


[1] http://incubator.apache.org/abdera/
[2] http://code.google.com/p/pubflex/
[3] http://redmonk.com/cote/2007/02/22/getting-giddy-with-the-cmdb-rest-cheap-spread-and-wet-cis/

Re: Critique my AtomPub CDN

Posted by Torgeir Veimo <to...@pobox.com>.
On 2 Aug 2007, at 18:17, Rob Evans wrote:

> Having said all that, I'd be happy to collaborate with folks to
> improve the model if there is interest.

It would be most interesting to see an open source atom-publishing to  
jcr adapter.

-- 
Torgeir Veimo
torgeir@pobox.com




Re: Critique my AtomPub CDN

Posted by Rob Evans <ob...@gmail.com>.
I actually started with Jukka's definitions but since he only
addressed the Atom model and I'm working with Atom and AtomPub (RFC
4287), I had to do some development of my own. Since I was pressed for
time and wanted to keep things simple, I took the approach you see
bellow.

Having said all that, I'd be happy to collaborate with folks to
improve the model if there is interest.

On 8/2/07, David Nuescheler <da...@day.com> wrote:
> hi rob,
>
> thanks for sharing....
>
> how about this old post from jukka in 2005:
> http://mail-archives.apache.org/mod_mbox/jackrabbit-dev/200511.mbox/%3C437B1D0D.5060902@zitting.name%3E
>
> regards,
> david
>
> On 7/31/07, Rob Evans <ob...@gmail.com> wrote:
> > Folks,
> >
> > I'm interested in getting feedback on this simple atompub Node Type
> > Definition. My intention was to keep things simple but wonder if this
> > is too simple. Are there any beginners mistakes being made?
> >
> > BTW, I've found Jackrabbit and JSR 170 in general to be very easy to
> > work with and I appreciate your efforts. IMO, JSR 170
> >
> > Looks like Oracle is supporting the JSR [1] now. Interesting days.
> >
> > [1] http://www.oracle.com/technology/products/database/oracle11g/pdf/xml-db-11g-whitepaper.pdf
> >
> >
> > ATOMPUB NODE TYPE
> > =================================================
> > <atom = "http://www.w3.org/2007/atom">
> > <app  = "http://www.w3.org/2007/app">
> > <ism  = "http://ism.cisco.com/2007/ism/1.0">
> > <nt   = "http://www.jcp.org/jcr/nt/1.0">
> > <mix  = "http://www.jcp.org/jcr/mix/1.0">
> >
> >
> > [atom:Base] >nt:base
> >   - atom:lang (string)
> >
> > [atom:Person] > atom:Base
> >   - atom:name (string) mandatory
> >   - atom:uri (string)
> >   - atom:email (string)
> >
> > [atom:Node] > atom:Base
> >   - atom:rights  (string)
> >   + atom:author  (atom:Person) multiple
> >   - atom:blob    (string) mandatory
> >
> > [atom:Entry] > atom:Node
> >   - atom:id (string) mandatory
> >   - atom:title (string) mandatory
> >   - atom:published (date)
> >   - atom:updated (date) mandatory
> >   - atom:content  (string)
> >   - atom:link  (string)
> >
> > [atom:Feed] > atom:Node, mix:referenceable
> >   - atom:id (string) mandatory
> >   - atom:icon (string)
> >   - atom:logo (string)
> >   - atom:title (string)
> >   - atom:subtitle (string)
> >   - atom:updated (date)
> >   + * (atom:Entry) = atom:Entry multiple
> >
> > [ism:SubjectArea] > nt:base, mix:referenceable
> >   - atom:name (string) mandatory
> >   + * (atom:Feed) = atom:Feed
> >
> > [app:ServiceDocument] > nt:base, mix:referenceable
> >   - atom:name (string) mandatory
> >   - atom:blob (string)
> >
>

Re: Critique my AtomPub CDN

Posted by David Nuescheler <da...@day.com>.
hi rob,

thanks for sharing....

how about this old post from jukka in 2005:
http://mail-archives.apache.org/mod_mbox/jackrabbit-dev/200511.mbox/%3C437B1D0D.5060902@zitting.name%3E

regards,
david

On 7/31/07, Rob Evans <ob...@gmail.com> wrote:
> Folks,
>
> I'm interested in getting feedback on this simple atompub Node Type
> Definition. My intention was to keep things simple but wonder if this
> is too simple. Are there any beginners mistakes being made?
>
> BTW, I've found Jackrabbit and JSR 170 in general to be very easy to
> work with and I appreciate your efforts. IMO, JSR 170
>
> Looks like Oracle is supporting the JSR [1] now. Interesting days.
>
> [1] http://www.oracle.com/technology/products/database/oracle11g/pdf/xml-db-11g-whitepaper.pdf
>
>
> ATOMPUB NODE TYPE
> =================================================
> <atom = "http://www.w3.org/2007/atom">
> <app  = "http://www.w3.org/2007/app">
> <ism  = "http://ism.cisco.com/2007/ism/1.0">
> <nt   = "http://www.jcp.org/jcr/nt/1.0">
> <mix  = "http://www.jcp.org/jcr/mix/1.0">
>
>
> [atom:Base] >nt:base
>   - atom:lang (string)
>
> [atom:Person] > atom:Base
>   - atom:name (string) mandatory
>   - atom:uri (string)
>   - atom:email (string)
>
> [atom:Node] > atom:Base
>   - atom:rights  (string)
>   + atom:author  (atom:Person) multiple
>   - atom:blob    (string) mandatory
>
> [atom:Entry] > atom:Node
>   - atom:id (string) mandatory
>   - atom:title (string) mandatory
>   - atom:published (date)
>   - atom:updated (date) mandatory
>   - atom:content  (string)
>   - atom:link  (string)
>
> [atom:Feed] > atom:Node, mix:referenceable
>   - atom:id (string) mandatory
>   - atom:icon (string)
>   - atom:logo (string)
>   - atom:title (string)
>   - atom:subtitle (string)
>   - atom:updated (date)
>   + * (atom:Entry) = atom:Entry multiple
>
> [ism:SubjectArea] > nt:base, mix:referenceable
>   - atom:name (string) mandatory
>   + * (atom:Feed) = atom:Feed
>
> [app:ServiceDocument] > nt:base, mix:referenceable
>   - atom:name (string) mandatory
>   - atom:blob (string)
>

Re: Critique my AtomPub CDN

Posted by Rob Evans <ob...@gmail.com>.
> >
> > ATOMPUB NODE TYPE
> > =================================================
> > <atom = "http://www.w3.org/2007/atom">
> > <app  = "http://www.w3.org/2007/app">
> > ...
>
> OK, here's the first mistake :-): Don't use namespace URIs you do not own.
>
> Best regards, Julian
>

Good point. I can see how this could lead to mayhem.

Thanks.

Re: Critique my AtomPub CDN

Posted by Julian Reschke <ju...@gmx.de>.
Rob Evans wrote:
> Folks,
> 
> I'm interested in getting feedback on this simple atompub Node Type
> Definition. My intention was to keep things simple but wonder if this
> is too simple. Are there any beginners mistakes being made?
> 
> BTW, I've found Jackrabbit and JSR 170 in general to be very easy to
> work with and I appreciate your efforts. IMO, JSR 170
> 
> Looks like Oracle is supporting the JSR [1] now. Interesting days.
> 
> [1] http://www.oracle.com/technology/products/database/oracle11g/pdf/xml-db-11g-whitepaper.pdf
> 
> 
> ATOMPUB NODE TYPE
> =================================================
> <atom = "http://www.w3.org/2007/atom">
> <app  = "http://www.w3.org/2007/app">
> ...

OK, here's the first mistake :-): Don't use namespace URIs you do not own.

Best regards, Julian