Problems with db2tm

17 views
Skip to first unread message

Jürgen Rheinländer

unread,
Dec 13, 2011, 3:15:46 PM12/13/11
to ontopia
Hi,

I created a topic map based on MySQL with a topic type "Test" and
tried to import 4 data rows using db2tm. After the import I've got
just one instance with the following data:
Item identifier: id = http://www.rheinju6.de/#Test$(id)
Name: name = $(name)

I used the following xml file:
<?xml version="1.0" encoding="UTF-16"?>
-<db2tm name="demo">
<using subject-identifier="http://www.rheinju6.de/" prefix="ex"/>
-<sources> <csv path="./"/> </sources>
-<relation name="test.csv" columns="id name"> -<topic type="ex:Test">
<item-identifier>#Test$(id)</item-identifier><topic-name>$(name)</
topic-name></topic> </relation> </db2tm>

Here is the csv file
1;Hallo
2;Ontopia
3;Juergen
4;Moni

The log files looks like:
INFO 2011-12-13 20:43:48,257 db2tm.DB2TM - Reading DB2TM
configuration file: C:\Program Files\ontopia-5.1.3\apache-tomcat
\webapps\omnigator\plugins\db2tm\db2tm.xml
INFO 2011-12-13 20:43:49,045 db2tm.Processor - Synchronizing
relations: Tue Dec 13 20:43:49 CET 2011
INFO 2011-12-13 20:43:49,054 db2tm.Context - defaulting extent
query for topic type 'ex:Test': direct-instance-of($O, %TYPE%)?
INFO 2011-12-13 20:43:49,157 db2tm.Processor - Synchronized 4
tuples for test.csv, 103/98 ms
INFO 2011-12-13 20:43:49,158 db2tm.Processor - done synchronizing
relations: 4 tuples, 125 ms. Tue Dec 13 20:43:49 CET 2011

Where is my mistake?

Thank you in advance for your help.
Regards
Juergen

Geir Ove Grønmo

unread,
Dec 13, 2011, 3:19:23 PM12/13/11
to ont...@googlegroups.com
The problem seems to be that you're using parenthesis instead of curly braces.

Geir O.

2011/12/13 Jürgen Rheinländer <juergen.rh...@googlemail.com>:

> --
> You received this message because you are subscribed to the Google Groups "ontopia" group.
> To post to this group, send email to ont...@googlegroups.com.
> To unsubscribe from this group, send email to ontopia+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/ontopia?hl=en.
>

--
Geir O.

Reply all
Reply to author
Forward
0 new messages