kozchris / tmapix

Automatically exported from code.google.com/p/tmapix
0 stars 0 forks source link

type-instance associations are exported twice #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use an engine which support the 
"http://tmapi.org/features/type-instance-associations" feature, like majortom

2.create a topic and set its type to another topic
3. export to xtm

What is the expected output? 
The XTM file should contain a <instanceOf> tag inside the first topic referring 
tot eh other topic.

What do you see instead?

in addition to the <instanceOf> tag an associtation is created representing the 
type-instance association.

Please provide any additional information below.

I'm not sure if the topic maps engine should return the asssociations for 
type-instance when calling getTypes(). The exporter should check when exporting 
the topic map whether an type-instance association is already exported while 
computing the getTypes() representation.

Original issue reported on code.google.com by h.niederhausen@googlemail.com on 28 Jul 2010 at 11:22

GoogleCodeExporter commented 8 years ago
Possibly, this issue is not XTM-specific. 

Maybe all writers should check if the feature 
<http://tmapi.org/features/type-instance-associations> is enabled.

Original comment by lars.he...@gmail.com on 28 Jul 2010 at 11:38

GoogleCodeExporter commented 8 years ago

Original comment by lars.he...@gmail.com on 28 Jul 2010 at 11:54

GoogleCodeExporter commented 8 years ago
Checking for the feature <http://tmapi.org/features/type-instance-associations> 
does not work since the writers do not have access to the TM system.

Options:
* Check if the association is a type-instance association in the UCS and is not 
reified and omit the assoc
* Do not write any instanceOf shortcut but use associations only

The latter would work well for XTM 2.1 and CTM but may not work well for XTM 
1.0 / 2.0. I'll check that.

Original comment by lars.he...@gmail.com on 28 Jul 2010 at 12:04

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r181.

Original comment by lars.he...@gmail.com on 28 Jul 2010 at 7:16