[Cps4] cps/jcr document mapping

Florent Guillaume fg at nuxeo.com
Fri Apr 7 16:25:19 CEST 2006


On 7 Apr 2006, at 16:08, Eric Barroca wrote:
>>> On flexible parts of a data schemas, how do you plan to store  
>>> it ? As child nodes ?
>>
>> There won't be flexible schemas anymore.
>>
>> Instead there will be list properties holding for instance the  
>> list of attached files (maybe empty).
>> If we have specific layout requirements, for instance a specific  
>> order to display:
>>   - attached file 1
>>   - attached file 2
>>   - paragraph of text 1
>>   - attached file 3
>>   - paragraph of text 2
>> Then we'll have a specific additional "layout" field deciding of  
>> this order. In addition to the list of files and the list of  
>> paragraphs.
> I does not answer the current need we have : managing optional  
> complex data blocks.
> The order is not really important. The major point is : I want to  
> add a data block with 2 text fields, 1 attached file and 2 date and  
> is considered as only one block.
>
>> Another way feasible in the JCR would be to have ordered child  
>> nodes (properties are never ordered) for flexible attributes, but  
>> that's quite different from existing CPS schemas. I haven't  
>> thought about that yet...
> We need to manage it with childnodes (like node type  
> cps:contentfragment).

Ok so basically they'll be like small special subdocuments. JCR can  
do that well, they're just subnodes.

> In fact, it's the exact use case of supporting XSD ComplexTypes.
>
> For schemas management, are we still considering to use XSD? I  
> think this approach need ot be kept.

The schema will be defined by the introspection of the node types in  
the JCR at startup. We can convert that to XSD if needed.
But we'll need an internal python representation for them, more  
complex than the existing CPS Schemas which are a list of fields.
I expect we'll end up with a new schemas tool that will be quite  
different.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com




More information about the cps4 mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider

About

This page is a mailing archive for one of the Nuxeo projects.

Project News

[2008/11/18] Nuxeo 5.2.M3 and Nuxeo WebEngine 1.0.RC released![2008/11/13] First Nuxeo Developer Day (1st Dec. 2008) - Still a few seats available[2008/11/13] First Nuxeo Survey[2008/10/08] Nuxeo 5.1.6 Released

Corporate News

[2008/11/20] Nuxeo secures 2 million Euros and strengthens its board of directors and corporate governance[2008/11/17] Nuxeo joins OASIS[2008/10/23] IFRA Expo 2008 Amsterdam, October 27th to 30th, Booth 9363, Hall 9[2008/10/08] Nuxeo announces the appointment of Carina Rimoli as Indirect Sales Manager