Regarding mapping using SPIN Map

6 views
Skip to first unread message

mnk.ya...@gmail.com

unread,
Apr 10, 2021, 1:52:31 AM4/10/21
to TopBraid Suite Users
Hello Everyone,
I Have a doubt in mapping
When we are using SPIN Map and suppose classes has properties which have some value in common. e.g. Class A has property name drug which has 1000 drug instances and Class B has property name Drugname which also has 800 drug instances. Then how we map them which function to use like build URI. Can we get some inferences after this mapping
Please Suggest!!

Irene Polikoff

unread,
Apr 10, 2021, 4:06:53 AM4/10/21
to topbrai...@googlegroups.com
SPINMap uses  certain built in functions to transform data. For example, buildURI will generate a URI by using some strings as input. When using SPINMap there is a source class and a target class. The transformation transforms data about instances of the source class to create instances of the target class. These ‘to be created instances’ of the target class need URIs. Build URI can be used to generate URIs for the new instances out of some data of the source instances. It could also be used to build relationships between the new instances of the target class and some other resources.

It is not clear from this email what type of transformation you want to achieve. I think you are saying that you already have instances of class A and instances of class B and they both have some string properties with values that are drag names. What do you want to happen?

Do you want to create instances of B from instances of A? What transformations do you need to accomplish this?

If, for example:
-Class A instances have a property p1 with the string names of drugs
-Class B instances should have a property p2 that links them to instances of the class Drug
- Instances of Drug have URIs that can be derived from a name of a drug i.e., the p1 values

Then, as you create instances of B from instances of A, you could use build URI to create relationships from the text values of p1 to create values of p2.


On Apr 10, 2021, at 1:52 AM, mnk.ya...@gmail.com <mnk.ya...@gmail.com> wrote:


--
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/e7f37501-64c2-4da0-b4c2-09d702af0398n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages