How to tag some information to an association

Forum is for miscellaneous user help requests.

How to tag some information to an association

Postby mordenkainen » Fri Feb 27, 2015 7:41 pm

I'm working with some kind of graph. Each node is represented with corresponding topic. An edge is represented with associations between topic. I'd like to add some additional information to edges such as weights.

The first thing I'd thought of is to create anonymous topic for each edge. Associate with the topic occurences for each parameter that I need to store. And after that made edges tri-associate (node, params, node) instead of bi-associate (node-node). I'm still not sure if it is apropriate way for storing ifromation and I don't know how to create automatically anonymous topics for existing associations.
mordenkainen
 
Posts: 24
Joined: Fri Feb 13, 2015 5:11 pm

Re: How to tag some information to an association

Postby akivela » Fri Feb 27, 2015 9:48 pm

You have figured the right solution, in my mind. Just add the additional information (a weight, for example) to the original binary-association as a third player. Now you have tri-associations. If you need to add more information to the association, add fourth player and so forth.

Topic maps standard speaks of reifiers that can be used to refer any topic map elements, including associations. Would Wandora support these reifiers, one could add the association specific information into this reifier-topic. But Wandora doesn't support reifiers, unfortunately.
akivela
Site Admin
 
Posts: 256
Joined: Tue Sep 18, 2007 10:20 am
Location: Helsinki, Finland

Re: How to tag some information to an association

Postby mordenkainen » Tue Mar 10, 2015 1:50 am

I've come to this example map http://s000.tinyupload.com/index.php?fi ... 5492788821 . Could you provide some commentaries about it?
mordenkainen
 
Posts: 24
Joined: Fri Feb 13, 2015 5:11 pm

Re: How to tag some information to an association

Postby akivela » Tue Mar 10, 2015 5:25 pm

Here is the Wandora project file Mordenkainen submitted for review.
Attachments
test.wpr
(3.53 KiB) Downloaded 805 times
akivela
Site Admin
 
Posts: 256
Joined: Tue Sep 18, 2007 10:20 am
Location: Helsinki, Finland

Re: How to tag some information to an association

Postby akivela » Wed Mar 11, 2015 3:36 pm

Hello

Nice work. You have literally modeled the graph nodes and edges. Nodes are connected to edge topics that carry an occurrence text for distance and time. The idea is that distance and time are properties of the edge.

I have attached two alternative examples that are little simpler, in my mind.

First example (test_v2_1.wpr) models Connected locations with quad-associations. Association roles are Location, Connected location, Distance and Time.

Second example (test_v2_2.wpr) is similar to the first example but models Distances and Times separately. There are two different associations types: Distance and Time. Both association types have tri-associations. Addition to Location and Connected location roles the association contains either Distance or Time role.

What is weak in these alternatives, is the requirement for symmetric associations. If Amber is connected to Ankh-Morpork, there must be a separate association for reverse connection too. Yet another weakness (or strength, it depends) is the distance and time topics. It requires some additional attention when the author edits scalar value topic that may be player in several associations. What is definitely a strength in these examples, is the ease of editing/importing/exporting. One can easily import/export association tables from/to spreadsheet applications such as MS Excel and do some of the editing there. It took me only few minutes to copy stuff from your topic map to Open Office Calc and paste ready associations back to Wandora.

Deciding which way to go, requires a larger vision and is little a matter of taste.

Kind Regards,
Aki / Wandora Team
Attachments
test_v2_1.wpr
(2.91 KiB) Downloaded 819 times
akivela
Site Admin
 
Posts: 256
Joined: Tue Sep 18, 2007 10:20 am
Location: Helsinki, Finland

Re: How to tag some information to an association

Postby akivela » Wed Mar 11, 2015 3:36 pm

And the second example topic map is here.
Attachments
test_v2_2.wpr
(3.07 KiB) Downloaded 789 times
akivela
Site Admin
 
Posts: 256
Joined: Tue Sep 18, 2007 10:20 am
Location: Helsinki, Finland


Return to How to... and problems

Who is online

Users browsing this forum: No registered users and 1 guest

cron