RDF file design...

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

RDF file design...

Jean Guillaume LALANNE

Hi,

 

I would like to display with a XUL GUI a hierarchical data model. I have a good understanding of the RDF structure of a simple 2 UML classes diagram. But my data modelling is based on 4 UML classes:

 

Class A has N classes B that has N classes C that has N classes D.

 

I have done a simple XML serialization that looks like this:

 

<META>

            <SCHEMA name=”schema1”>

                        <PACKAGE name=”package1”>

                                   <PROCEDURE name=”procedure1”>

                                               <ARGUMENT name=”arg1” type=”typeX” …/>

                                               <ARGUMENT name=”arg2” type=”typeY” …/>

<ARGUMENT name=”arg3” type=”typeX” …/>

                                   </PROCEDURE>

                                   <PROCEDURE name=”procedure2”>

                                               <ARGUMENT name=”arg1” type=”typeX” …/>

 

 

I don’t manage to design a RDF model for these data.

Maybe:

 

            <RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns: METADB ="DATA/rdf#">

 

<RDF:Seq RDF:about="DATA/all">

                        <RDF:li>

                                   <RDF:Seq RDF:about="DATA/SCHEMA/schema1">

                                               <RDF:li>

                                                           <RDF:Seq RDF:about="DATA/SCHEMA/schema1/PACKAGE/package1">

                                                                       <RDF:li>

                                                                                   <RDF:Seq RDF:about=" DATA/SCHEMA/schema1/PACKAGE/package1/PROCEDURE/procedure1">

                                                                                               <RDF:li RDF:resource=" DATA/SCHEMA/schema1/PACKAGE/package1/PROCEDURE/procedure1/ARGUMENT/arg1" />

                                                                                               <RDF:li RDF:resource=" DATA/SCHEMA/schema1/PACKAGE/package1/PROCEDURE/procedure1/ARGUMENT/arg2" />

                                                                                               <RDF:li RDF:resource=" DATA/SCHEMA/schema1/PACKAGE/package1/PROCEDURE/procedure1/ARGUMENT/arg3" />

                                                                                   </RDF:Seq>

                                                                       </RDF:li>

                                                                       <RDF:li>

                                                                                   <RDF:Seq RDF:about=" DATA/SCHEMA/schema1/PACKAGE/package1/PROCEDURE/procedure2">

                                                                                               <RDF:li RDF:resource=" DATA/SCHEMA/schema1/PACKAGE/package1/PROCEDURE/procedure2/ARGUMENT/arg1" />

                                                                                               <RDF:li RDF:resource=" DATA/SCHEMA/schema1/PACKAGE/package1/PROCEDURE/procedure2/ARGUMENT/arg2" />

                                                                                               <RDF:li RDF:resource=" DATA/SCHEMA/schema1/PACKAGE/package1/PROCEDURE/procedure2/ARGUMENT/arg3" />

                                                                                   </RDF:Seq>

                                                                       </RDF:li>

                                                           </RDF:Seq>

                                               </RDF:li>

                                               <RDF:li>

                                                           <RDF:Seq RDF:about=" DATA/SCHEMA/schema1/PACKAGE/package2">

                                                                        …

                                                           </RDF:Seq>

                                               </RDF:li>

                                   </RDF:Seq>

                        </RDF:li>

                        <RDF:li>

                                   <RDF:Seq RDF:about=" DATA/SCHEMA/schema2"/>

                                               …

                        </RDF:li>

            </RDF:Seq>

 

            <RDF:Description RDF:about=" DATA/SCHEMA/schema1/PACKAGE/package1/PROCEDURE/procedure2/ARGUMENT/arg3">

<METADB:type>typeZ</METADB:type>

...

            </RDF:Description>

 

 

But I am not really sure that my RDF serialization is the good one.

 

Any help would be appreciated.

 

Thanks in advance.

 

 

Best Regards   

Jean-Guillaume LALANNE

 


_______________________________________________
dev-tech-rdf mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-rdf