Hello,

first of all, thanks for the vivid response.

> Actually, I think you need to be careful about what you want here. On the
> one hand, you are talking about individuals (a Pizza is a thing that has a
> base), and on the other hand you are talking about classes - NeopolitanPizza
> is a type of (i.e. is a member of the class of) Pizzas.

no, that is not really what i meant. let us assume that i talk about
two individuals (maybe the pizza example was not stated exactly
right):

:NeapolitanPizza rdf:type :Pizza (Ontology A)
:NeapolitanPizza rdf:type :Pizza (Ontology B)

while the first assertion is in ontology A and the second assertion is
in ontology B. In both ontologies i have different facts modeled about
the Neapolitan Pizza.

For example it can be seen as in ontology A is stored which type of
meat goes on the pizza,  and in ontology B all types of vegetables
that are typical for this pizza are stored. However, just both
representations together will give all the information that is
available about the individual "NeapolitanPizza".


NOTE: For the real implementation in my case it is necessary to keep
the two ontologies seperate due to performance reasons. Therefore, the
suggested method in the sample code does unfortunately not work.


In the implementation I have two separate TDB stores for the two
ontologies (A+B).

Therefore, I need to programmatically assure the fact that the
NeapolitanPizza from TDB store A is the same as NeapolitanPizza from
TDB store B, meaning it just states some extra information about the
same individual.

Does anyone have a suggestion about how to solve this programmatically
in Java code?

I was thinking about creating a controller which accesses both
individuals and kind of masks the underlying two ontologies, so that
it looks as one single individual would be accessed. Then the
individuals in either ontology TDB representation are updated whenever
some fact changes.

However, maybe there exists a more straightforward solution which is
more appropriate.


Thank you for your will to help out,

Best Regards,

Mario

Reply via email to