Niclas Hedhman wrote:
> On Monday 14 April 2008 11:40, Niclas Hedhman wrote:
>> ApplicationModel -> "qi4j:model:"
>> ApplicationInstance -> "qi4j:instance:" [host] ":" [jvminstance] ":"
>> [applicationInstance.name]
>>
>> LayerModel -> [applicationModel] "/" [layerModel.name]
>> LayerInstance -> [applicationInstance] "/" [layerInstance.name]
>>
>> ModuleModel -> [layerModel] "/" [moduleModel.name]
>> ModuleInstance -> [layerInstance] "/" [moduleInstance.name]
> 
> 
> I was looking at adding the above to the codebase, but could not access the 
> ApplicationModel from the LayerModel. At first I thought, ok let's add that. 
> Then I realized; Hold on a second. The layer model shouldn't know where it 
> will be used, but at the same time ApplicationModel knows which LayerModels 
> it contains, and LayerModels knows which ModuleModels they contain.
> Well, that comes from an ApplicationModel consists of A,B & C LayerModels, 
> which may be used elsewhere.
> 
> It is highly confusing that the ApplicationModel knows which LayerModels it 
> contains, but that each LayerModel can't know which Application it is used 
> in.
> 
> Nevertheless, need new URI algorithm;
> 
> ApplicationModel -> "qi4j:model:application:" [applicationModel.name]
> LayerModel -> "qi4j:model:layer:" [layerModel.name]
> ModuleModel -> "qi4j:model:module:" [moduleModel.name]

The problem comes when we start mixing data from many applications, 
because they will all have layers called "Domain layer", but it's not 
going to be the same, since they are in different applications.

Why isn't it possible to use the application name as prefix? Sounds like 
a matter of how the RDF is constructed/extracted more than anything 
else. If you traverse the application top-down you will have the prefix 
available when outputting the layer, right?

/Rickard

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to