ontopia / ontopia

The open source tools for building, maintaining and deploying Topic Maps-based applications.
https://ontopia.net
Apache License 2.0
54 stars 12 forks source link

Association/Role Type(s) "Superclass/subclass" do not contain TMDM Psi's #177

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

How I found out:
In a given tm:
1. Run as tolog-query: "insert foo ako bar ." (bar was already existing in
my case)
2. try to find foo under bar using '+' in ontopoly
3. When looking at the Omnnigator page of the tm (the first menu item to
the left), you will find a nameless topic under Association Types with the
TMDM Psi plus the "original" Superclass/subclass from ontopia.

What is the expected output? What do you see instead?
the insert statement inserts the topic allright, but creates a new,
nameless topic with the TMDM Psi for typing the
Superclass/subclass-relation to "bar". 

The "original" Superclass/subclass topic does not cover the TMDM psi but only:

    * http://psi.ontopia.net/ontology/superclass-subclass
    * http://www.topicmaps.org/xtm/1.0/core.xtm#superclass-subclass

I tried:
merge i"http://psi.ontopia.net/ontology/superclass-subclass",
i"http://psi.topicmaps.org/iso13250/model/supertype-subtype"

as an update statement and it seems to incorporate the TMDM Psi in a
correct manner.

The same problem occurs for the roletypes "subtype" and "supertype":

merge i"http://psi.topicmaps.org/iso13250/model/subtype",
i"http://psi.ontopia.net/ontology/subclass"

and

merge i"http://psi.topicmaps.org/iso13250/model/supertype",
i"http://psi.ontopia.net/ontology/superclass"

work as well. Still the topic won't show beneath its intended superclass
("bar") in ontopoly :(

I am using r771 from svn.

I am grateful for any advice! Please let me know when you need more
information.

Thank you
Matthias

Original issue reported on code.google.com by maf...@googlemail.com on 4 Jan 2010 at 3:26

GoogleCodeExporter commented 9 years ago
You're right. The Ontopoly ontology does not contain any of the TMDM PSIs. I 
guess 
it would be nice if it did. This will require us to make a new version of the 
ontology though, which involves a little extra work. The first we need to do is 
come 
up with a list of the PSIs that should be added. Then we have to implement the 
upgrade code, increment the version number, and upgrade all existing topic maps.

Original comment by indiapaleale@gmail.com on 15 Feb 2010 at 8:33

GoogleCodeExporter commented 9 years ago
This isn't just an Ontopoly issue, but one that applies across the entire suite.

Import "foo ako bar ." from a CTM file and you get TMDM PSIs. The engine 
utilities, 
tolog, Omnigator, and Ontopoly all fail to recognize these...

Original comment by lar...@gmail.com on 15 Feb 2010 at 9:17

GoogleCodeExporter commented 9 years ago
Issue 271 has been merged into this issue.

Original comment by lar...@gmail.com on 21 Jun 2010 at 8:14

GoogleCodeExporter commented 9 years ago
This problem seems to be located in the 
net.ontopia.topicmaps.utils.TypeHierarchyUtils (as indicated by the testcases 
provided in issue 271). This class only uses the XTM super-subtype PSI set to 
find super-sub associations. Should we extend this to cover all PSI sets?

Original comment by qsieb...@gmail.com on 15 Sep 2011 at 8:52