You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(22) |
Jul
(4) |
Aug
(9) |
Sep
(6) |
Oct
(5) |
Nov
(15) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(4) |
Feb
(10) |
Mar
(12) |
Apr
(16) |
May
(2) |
Jun
(7) |
Jul
(10) |
Aug
(9) |
Sep
(3) |
Oct
(17) |
Nov
(17) |
Dec
(6) |
2003 |
Jan
(12) |
Feb
(15) |
Mar
(25) |
Apr
(20) |
May
(8) |
Jun
(3) |
Jul
(21) |
Aug
(10) |
Sep
(7) |
Oct
(1) |
Nov
(3) |
Dec
(6) |
2004 |
Jan
(5) |
Feb
(16) |
Mar
(34) |
Apr
(26) |
May
(20) |
Jun
(58) |
Jul
(76) |
Aug
(51) |
Sep
(40) |
Oct
(16) |
Nov
(7) |
Dec
(6) |
2005 |
Jan
(10) |
Feb
(1) |
Mar
(17) |
Apr
(8) |
May
(11) |
Jun
(15) |
Jul
(1) |
Aug
(7) |
Sep
(6) |
Oct
(10) |
Nov
(14) |
Dec
(9) |
2006 |
Jan
(11) |
Feb
(22) |
Mar
(17) |
Apr
(1) |
May
(15) |
Jun
(9) |
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
(10) |
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
|
2008 |
Jan
(2) |
Feb
(1) |
Mar
(8) |
Apr
(8) |
May
(12) |
Jun
(9) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Andreas F. <And...@gm...> - 2005-06-07 09:27:12
|
Hi there, i am quite new to all of this. I want to display my XTM files with the Touchgraph library. But Touchgraph has it´s own DTD for it´s input data, as far as i´ve understood. So i´m not able to directly "feed" my XTM files to the Touchgraph API. Or can i do this? Can somebody please point me to a good tutorial, website, example how to do handle XTM files with Touchgraph and how to display XTM files in Touchgraph? Or maybe give me a rough idea, how this is handled (i´ve seen lot´s of applications where XTM files are displayed with the Touchgraph, so there should be a way, which most of the programmers are going). I really thank you in advance for your answers. And sorry if this question seems overly dumb. Any information is highly appreciated. Greetings Andreas -- Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben stern gratis ++ Jetzt anmelden & testen ++ http://www.gmx.net/de/go/promail ++ |
From: Christoph F. <cf...@fo...> - 2005-06-03 08:24:57
|
Hi Dandan, sorry for the late reply, but I was busy theese days since I prepare my vacations. I never tried TMNav with jdk 1.5, neither do I have much experience with 1.5. So, sorry, I don't know what is happening. Most probably you see this behavior where no sorting is actually implemented yet. So whats about adding a Comparator at appropriate places? Regards c Am Montag, den 30.05.2005, 11:24 -0400 schrieb Wang, Dandan: > Hi Christoph, > > I have been using TMNav for quite a long time. We also did some > function development based on the TMNav open source. Everything works > as expected when I use JDK1.4.2_6. > But last week, I updated it to JDK1.5.0_3, and then came the problem: > > With the Tree view, it displays Topics, Occurrences and Role players > in a very random sometimes inconsistent way. For example, Occrrences > supposed to be the last topics to be listed, but they will be shown > before some roleplayer topics. > > When choosing Section Renderer, it also has some disorder problem. > For example, in the Occrrence part, > TYPE DATA > author bob > www.yahoo.com URL > dwa...@ws... Email > > Acutally, URL and Email are both TYPES. > > Now I am sure all these problem are coming from my updating JDK, and > all my workmates here also can not run TMNAV properly becuase they are > using JDK1.5.O. > I recomplied all the source files, but no correct result. > > I wonder if any other users have such kind of problem and could you > please give some opinions. Attachement is screenshot. > > Thanks lot. > > > Dandan Wang -- Christoph Froehlich <cf...@fo...> |
From: Wang, D. <dwa...@ws...> - 2005-05-30 15:24:13
|
Hi Christoph, =20 I have been using TMNav for quite a long time. We also did some function = development based on the TMNav open source. Everything works as expected = when I use JDK1.4.2_6.=20 But last week, I updated it to JDK1.5.0_3, and then came the problem: =20 With the Tree view, it displays Topics, Occurrences and Role players in = a very random sometimes inconsistent way. For example, Occrrences = supposed to be the last topics to be listed, but they will be shown = before some roleplayer topics. =20 When choosing Section Renderer, it also has some disorder problem. For = example, in the Occrrence part,=20 TYPE DATA author bob www.yahoo.com URL dwa...@ws... <mailto:dwa...@ws...> Email =20 Acutally, URL and Email are both TYPES. =20 Now I am sure all these problem are coming from my updating JDK, and all = my workmates here also can not run TMNAV properly becuase they are using = JDK1.5.O. I recomplied all the source files, but no correct result. =20 I wonder if any other users have such kind of problem and could you = please give some opinions. Attachement is screenshot. =20 Thanks lot. =20 =20 Dandan Wang |
From: Christoph F. <cf...@fo...> - 2005-05-29 19:19:11
|
Hi Bret good to hear from you again. It's great news, that you did finish your project. Is it possible to see it running? Or maybe some screenshots? Am Mittwoch, den 25.05.2005, 13:29 -0700 schrieb Bret Cohen: > Christoph, > > If you remember our conversations of last November, > I've now created abstractors that result in the > hypergraphs creating the views of my data that I want! > I'm happy with the results(and so is my professor -- > who now wants to apply for a grant to keep on as a > research assistent to explore new applications for the > topic map hypergraph!). Thanks so much for the help > you have provided me. > > I am now trying to add another feature to trap the > event for when a user clicks on an activity (Topic) > node so that I can create a new hypergraph to show the > sub-activities > for this activity. > > I see that there is an event type EV_TMO_SELECTED, and > that the EventDispatcherImpl has a method, > sendTMOSelected(), for sending notification of such an > event. My question is: > HOW CAN I TRAP WHEN THE USER CLICKS ON THE TOPIC NODE, > SO THAT CAN THEN CALL THE ABOVE METHOD? Do I need to > trap a low-level mouse-click event, or does TMNav > provide for trapping such an event? > I'm not quite sure, if I understand what you are asking. If you want to receive a notification every time a user selects a Node, you should listen to the TMOSelected-event. But I think this is something you already found out. If you want to intercept, before TMOSelected is send, a good starting point would be org.tm4j.tmnav.renderer.CommonRendererMouseAdapter. This is where the low-level MouseEvents are captured. Is this what you are looking for? > Also, I found and fixed (within my copy of the source > code) a bug in the tmnav-0.2.9pre1-src version of > EventDispatchImpl. > (I don't know if you have fixed the bug since then): > > The dispatcher wasn't sending events to the registered > listeners. When I debugged, I noticed that the > dispatcher's send() method wasn't able to access the > changes to the listeners HashMap created when a new > listener was added. I fixed the problem (within my > copy of the code) by making the HashMap a static final > variable as follows: > > // private HashMap listeners = new HashMap(); > private static final HashMap listeners = new > HashMap(); > Sorry I do not comprehend. As far as I see, EventDispatcherImpl works like expected. Is it possible for you to send me a testcase that illustrates the problem? > I've also written a monograph that explains how I used > TM4J and TMNav to develop my application. I don't know > if it would be useful for other developers, or to > include parts within the TMNav documentation. > This is great. I would definitly love to have a look it. Can you send it to me? Thanks Christoph > Bret Cohen > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com -- Christoph Froehlich <cf...@fo...> |
From: Bret C. <bre...@ya...> - 2005-05-25 20:29:31
|
Christoph, If you remember our conversations of last November, I've now created abstractors that result in the hypergraphs creating the views of my data that I want! I'm happy with the results(and so is my professor -- who now wants to apply for a grant to keep on as a research assistent to explore new applications for the topic map hypergraph!). Thanks so much for the help you have provided me. I am now trying to add another feature to trap the event for when a user clicks on an activity (Topic) node so that I can create a new hypergraph to show the sub-activities for this activity. I see that there is an event type EV_TMO_SELECTED, and that the EventDispatcherImpl has a method, sendTMOSelected(), for sending notification of such an event. My question is: HOW CAN I TRAP WHEN THE USER CLICKS ON THE TOPIC NODE, SO THAT CAN THEN CALL THE ABOVE METHOD? Do I need to trap a low-level mouse-click event, or does TMNav provide for trapping such an event? Also, I found and fixed (within my copy of the source code) a bug in the tmnav-0.2.9pre1-src version of EventDispatchImpl. (I don't know if you have fixed the bug since then): The dispatcher wasn't sending events to the registered listeners. When I debugged, I noticed that the dispatcher's send() method wasn't able to access the changes to the listeners HashMap created when a new listener was added. I fixed the problem (within my copy of the code) by making the HashMap a static final variable as follows: // private HashMap listeners = new HashMap(); private static final HashMap listeners = new HashMap(); I've also written a monograph that explains how I used TM4J and TMNav to develop my application. I don't know if it would be useful for other developers, or to include parts within the TMNav documentation. Bret Cohen __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Kal A. <ka...@te...> - 2005-05-19 07:31:42
|
Hello again, I've checked in the source code with just a couple of minor changes 1) I changed the package to org.tm4j.ant.dbtasks...I'm not sure that I like the package name that much, but it was the best I could come up with, and it keeps the org.tm4j.ant package as a simple container for all Ant related stuff as subpackages 2) I've added the TM4J standard header with an acknowledgement to Peter. Great stuff! I guess I need to start thinking about really making that 1.0 release soon ;-) Cheers, Kal Kal Ahmed wrote: > Hi Peter, > > This stuff looks great! It would be really useful for doing scripted > maintenance / update tasks on topic maps. I'm going to check this > stuff in to the tree as soon as I get a chance to build it locally > (might not be until this evening). > > Thanks very much! > > Kal > > Peter Klotz wrote: > >> Hi, >> >> TM4j has already today one file-oriented topicmap merge task but I >> needed some more tasks especially some that manipulate topicmaps in >> the provider. I would like to donate this back the TM4J project as >> more people might be interested in these. Would somebody with >> committer rights please have a look at the tasks and integrate them >> into the CVS? >> >> All tasks work the same, a dburl must be specified for either a Ozone >> or Hibernate persistence backend as all tasks work on a provider not >> in memory. Topicmaps are referenced by a uri attribute. >> The following tasks are included: >> >> <antlib> >> <typedef name="create" classname="org.tm4j.ant.CreateTopicMap"/> >> <typedef name="exist" classname="org.tm4j.ant.ExistTopicMap"/> >> <typedef name="export" classname="org.tm4j.ant.ExportTopicMap"/> >> <typedef name="load" classname="org.tm4j.ant.LoadTopicMap"/> >> <typedef name="merge" classname="org.tm4j.ant.MergeTopicMap"/> >> <typedef name="remove" classname="org.tm4j.ant.RemoveTopicMap"/> >> <typedef name="list" classname="org.tm4j.ant.ListTopicMap"/> >> <typedef name="topic" classname="org.tm4j.ant.CreateTopic"/> >> <typedef name="association" >> classname="org.tm4j.ant.CreateAssociation"/> >> <typedef name="occurrence" classname="org.tm4j.ant.CreateOccurrence"/> >> <typedef name="rmtopic" classname="org.tm4j.ant.RemoveTopic"/> >> </antlib> >> >> I use the technique of antlib and namespaces as one can see in the >> included test build.xml. >> >> <?xml version="1.0"?> >> <project name="TM4J" default="usage" xmlns:tm="http://tm4j.org/ant"> >> >> ^^^^^^^^^^^^ >> <description> >> test case for tm4j ant tasks >> </description> >> ... >> <typedef resource="org/tm4j/ant/antlib.xml" uri="http://tm4j.org/ant"> >> ^^^^^^^^^^^^^^ >> ^^^^^^^^^^^^ >> <classpath> >> ... >> </classpath> >> </typedef> >> >> I put the tasks into the package org.tm4j.ant not .taskdefs in order >> to keep them separate from the still needed file-oriented merge task, >> but this can be changed of course. >> >> Regards, Peter >> >> ------------------------------------------------------------------------ >> >> <?xml version="1.0"?> >> <project name="TM4J" default="usage" xmlns:tm="http://tm4j.org/ant"> >> <description> >> test case for tm4j ant tasks >> </description> >> >> <property name="dir.base" value="../.."/> >> <property name="dir.build" value="${dir.base}/build"/> >> <property name="dir.lib" value="${dir.base}/lib"/> >> >> <tstamp/> >> <typedef resource="org/tm4j/ant/antlib.xml" uri="http://tm4j.org/ant"> >> <classpath> >> <fileset dir="${dir.build}/lib"> >> <include name="tm4*-${DSTAMP}.jar"/> >> </fileset> >> <fileset dir="${dir.lib}"> >> <include name="*.jar"/> >> </fileset> >> <fileset dir="${dir.lib}/ozone"> >> <include name="*.jar"/> >> </fileset> >> <fileset dir="${dir.lib}/hibernate"> >> <include name="*.jar"/> >> </fileset> >> </classpath> >> </typedef> >> >> <property name="dir.dest" value="."/> >> <property name="dir.src" value="../topicmaps"/> >> <property name="dir.res" value="../../resource/tests"/> >> >> <!-- >> - all the provider-oriented ant tasks need a DB URL >> - either ozone or hibernate, memory does not really make sense >> --> >> <property name="tm.dburl" value="ozonedb:remote://localhost:3333"/> >> <property name="tm.uri" >> value="http://www.tm4j.org/examples/topicmaps/kings_and_queens.xtm"/> >> >> <target name="test"> >> <antcall target="new"/> >> <antcall target="create"/> >> <antcall target="exist"/> >> <antcall target="load"/> >> <antcall target="export"/> >> <antcall target="list"/> >> <antcall target="merge"/> >> <antcall target="remove"/> >> </target> >> >> <!-- create a fresh new topicmap --> >> <target name="new" description="new topicmap"> >> <tm:create dburl="${tm.dburl}" >> uri="http://www.tm4j.org/examples/topicmaps/test.xtm"/> >> </target> >> >> <!-- create topics, occurrences and associations in topicmap --> >> <target name="create" description="create topics in topicmap"> >> <tm:topic dburl="${tm.dburl}" >> uri="http://www.tm4j.org/examples/topicmaps/test.xtm" topic="type1" >> name="atype"/> >> <tm:topic dburl="${tm.dburl}" >> uri="http://www.tm4j.org/examples/topicmaps/test.xtm" topic="topic1" >> name="aname"/> >> <tm:topic dburl="${tm.dburl}" >> uri="http://www.tm4j.org/examples/topicmaps/test.xtm" topic="topic2" >> name="anothername" type="atype"/> >> <tm:occurrence dburl="${tm.dburl}" >> uri="http://www.tm4j.org/examples/topicmaps/test.xtm" topic="topic1" >> occurrence="occ1" data="data in attribute"/> >> <tm:occurrence dburl="${tm.dburl}" >> uri="http://www.tm4j.org/examples/topicmaps/test.xtm" topic="topic1" >> occurrence="occ2" dataUri="http://www.tm4j.org"/> >> <tm:occurrence dburl="${tm.dburl}" >> uri="http://www.tm4j.org/examples/topicmaps/test.xtm" topic="topic1" >> occurrence="occ3">data as CDATA</tm:occurrence> >> <tm:topic dburl="${tm.dburl}" >> uri="http://www.tm4j.org/examples/topicmaps/test.xtm" topic="type2" >> name="aassoctype"/> >> <tm:association dburl="${tm.dburl}" >> uri="http://www.tm4j.org/examples/topicmaps/test.xtm" topic="assoc1" >> type="type2" roleType1="type1" rolePlayer1="topic1" roleType2="type1" >> rolePlayer2="topic2"/> >> </target> >> >> <!-- check for existence of topicmap --> >> <condition property="tm.exist"> >> <tm:exist dburl="${tm.dburl}" uri="${tm.uri}"/> >> </condition> >> <target name="exist" description="check existence of topicmap" >> if="tm.exist"> >> <echo message="topicmap exists"/> >> </target> >> >> <!-- load a topicmap from a XTM file --> >> <target name="load" description="load topicmap"> >> <tm:load dburl="${tm.dburl}" uri="${tm.uri}" >> srcfile="${dir.src}/kings_and_queens.xtm"/> >> <tm:load dburl="${tm.dburl}"> >> <fileset dir="${dir.res}"> >> <include name="simpsons.xtm"/> >> <include name="blockworld.xtm"/> >> </fileset> >> </tm:load> >> </target> >> >> <!-- export/dump a topicmap to a XTM file --> >> <target name="export" description="export topicmap"> >> <tm:export dburl="${tm.dburl}" uri="${tm.uri}" >> destFile="${dir.dest}/topicmap.xtm"/> >> <tm:export dburl="${tm.dburl}" >> uri="http://www.tm4j.org/examples/topicmaps/test.xtm" >> destFile="${dir.dest}/test.xtm"/> >> </target> >> >> <!-- list available topicmaps --> >> <target name="list" description="list topicmaps"> >> <tm:list dburl="${tm.dburl}" outputproperty="topicmaps"/> >> <echo message="Available topicmaps: ${topicmaps}"/> >> </target> >> >> <!-- merge two topicmaps --> >> <target name="merge" description="merge topicmap"> >> <tm:load dburl="${tm.dburl}" >> uri="http://www.tm4j.org/examples/topicmaps/merge.xtm" >> srcfile="${dir.res}/merge1.xml"/> >> <tm:merge dburl="${tm.dburl}" >> uri="http://www.tm4j.org/examples/topicmaps/merge.xtm" >> srcfile="${dir.res}/merge2.xml"/> >> <tm:export dburl="${tm.dburl}" >> uri="http://www.tm4j.org/examples/topicmaps/merge.xtm" >> destFile="${dir.dest}/merge.xtm"/> >> </target> >> >> <!-- remove topicmap --> >> <target name="remove" description="remove topicmap"> >> <tm:topic dburl="${tm.dburl}" >> uri="http://www.tm4j.org/examples/topicmaps/test.xtm" topic="assoc1"/> >> <tm:remove dburl="${tm.dburl}" uri="${tm.uri}"/> >> <tm:remove dburl="${tm.dburl}" >> uri="http://www.tm4j.org/examples/topicmaps/test.xtm"/> >> </target> >> </project> >> >> >> > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users > > |
From: Kal A. <ka...@te...> - 2005-05-18 08:51:33
|
Hi Peter, This stuff looks great! It would be really useful for doing scripted maintenance / update tasks on topic maps. I'm going to check this stuff in to the tree as soon as I get a chance to build it locally (might not be until this evening). Thanks very much! Kal Peter Klotz wrote: > Hi, > > TM4j has already today one file-oriented topicmap merge task but I > needed some more tasks especially some that manipulate topicmaps in > the provider. I would like to donate this back the TM4J project as > more people might be interested in these. Would somebody with > committer rights please have a look at the tasks and integrate them > into the CVS? > > All tasks work the same, a dburl must be specified for either a Ozone > or Hibernate persistence backend as all tasks work on a provider not > in memory. Topicmaps are referenced by a uri attribute. > The following tasks are included: > > <antlib> > <typedef name="create" classname="org.tm4j.ant.CreateTopicMap"/> > <typedef name="exist" classname="org.tm4j.ant.ExistTopicMap"/> > <typedef name="export" classname="org.tm4j.ant.ExportTopicMap"/> > <typedef name="load" classname="org.tm4j.ant.LoadTopicMap"/> > <typedef name="merge" classname="org.tm4j.ant.MergeTopicMap"/> > <typedef name="remove" classname="org.tm4j.ant.RemoveTopicMap"/> > <typedef name="list" classname="org.tm4j.ant.ListTopicMap"/> > <typedef name="topic" classname="org.tm4j.ant.CreateTopic"/> > <typedef name="association" classname="org.tm4j.ant.CreateAssociation"/> > <typedef name="occurrence" classname="org.tm4j.ant.CreateOccurrence"/> > <typedef name="rmtopic" classname="org.tm4j.ant.RemoveTopic"/> > </antlib> > > I use the technique of antlib and namespaces as one can see in the > included test build.xml. > > <?xml version="1.0"?> > <project name="TM4J" default="usage" xmlns:tm="http://tm4j.org/ant"> > > ^^^^^^^^^^^^ > <description> > test case for tm4j ant tasks > </description> > ... > <typedef resource="org/tm4j/ant/antlib.xml" uri="http://tm4j.org/ant"> > ^^^^^^^^^^^^^^ > ^^^^^^^^^^^^ > <classpath> > ... > </classpath> > </typedef> > > I put the tasks into the package org.tm4j.ant not .taskdefs in order > to keep them separate from the still needed file-oriented merge task, > but this can be changed of course. > > Regards, Peter > >------------------------------------------------------------------------ > ><?xml version="1.0"?> ><project name="TM4J" default="usage" xmlns:tm="http://tm4j.org/ant"> > <description> > test case for tm4j ant tasks > </description> > > <property name="dir.base" value="../.."/> > <property name="dir.build" value="${dir.base}/build"/> > <property name="dir.lib" value="${dir.base}/lib"/> > > <tstamp/> > <typedef resource="org/tm4j/ant/antlib.xml" uri="http://tm4j.org/ant"> > <classpath> > <fileset dir="${dir.build}/lib"> > <include name="tm4*-${DSTAMP}.jar"/> > </fileset> > <fileset dir="${dir.lib}"> > <include name="*.jar"/> > </fileset> > <fileset dir="${dir.lib}/ozone"> > <include name="*.jar"/> > </fileset> > <fileset dir="${dir.lib}/hibernate"> > <include name="*.jar"/> > </fileset> > </classpath> > </typedef> > > <property name="dir.dest" value="."/> > <property name="dir.src" value="../topicmaps"/> > <property name="dir.res" value="../../resource/tests"/> > > <!-- > - all the provider-oriented ant tasks need a DB URL > - either ozone or hibernate, memory does not really make sense > --> > <property name="tm.dburl" value="ozonedb:remote://localhost:3333"/> > <property name="tm.uri" value="http://www.tm4j.org/examples/topicmaps/kings_and_queens.xtm"/> > > <target name="test"> > <antcall target="new"/> > <antcall target="create"/> > <antcall target="exist"/> > <antcall target="load"/> > <antcall target="export"/> > <antcall target="list"/> > <antcall target="merge"/> > <antcall target="remove"/> > </target> > > <!-- create a fresh new topicmap --> > <target name="new" description="new topicmap"> > <tm:create dburl="${tm.dburl}" uri="http://www.tm4j.org/examples/topicmaps/test.xtm"/> > </target> > > <!-- create topics, occurrences and associations in topicmap --> > <target name="create" description="create topics in topicmap"> > <tm:topic dburl="${tm.dburl}" uri="http://www.tm4j.org/examples/topicmaps/test.xtm" topic="type1" name="atype"/> > <tm:topic dburl="${tm.dburl}" uri="http://www.tm4j.org/examples/topicmaps/test.xtm" topic="topic1" name="aname"/> > <tm:topic dburl="${tm.dburl}" uri="http://www.tm4j.org/examples/topicmaps/test.xtm" topic="topic2" name="anothername" type="atype"/> > <tm:occurrence dburl="${tm.dburl}" uri="http://www.tm4j.org/examples/topicmaps/test.xtm" topic="topic1" occurrence="occ1" data="data in attribute"/> > <tm:occurrence dburl="${tm.dburl}" uri="http://www.tm4j.org/examples/topicmaps/test.xtm" topic="topic1" occurrence="occ2" dataUri="http://www.tm4j.org"/> > <tm:occurrence dburl="${tm.dburl}" uri="http://www.tm4j.org/examples/topicmaps/test.xtm" topic="topic1" occurrence="occ3">data as CDATA</tm:occurrence> > <tm:topic dburl="${tm.dburl}" uri="http://www.tm4j.org/examples/topicmaps/test.xtm" topic="type2" name="aassoctype"/> > <tm:association dburl="${tm.dburl}" uri="http://www.tm4j.org/examples/topicmaps/test.xtm" topic="assoc1" type="type2" roleType1="type1" rolePlayer1="topic1" roleType2="type1" rolePlayer2="topic2"/> > </target> > > <!-- check for existence of topicmap --> > <condition property="tm.exist"> > <tm:exist dburl="${tm.dburl}" uri="${tm.uri}"/> > </condition> > <target name="exist" description="check existence of topicmap" if="tm.exist"> > <echo message="topicmap exists"/> > </target> > > <!-- load a topicmap from a XTM file --> > <target name="load" description="load topicmap"> > <tm:load dburl="${tm.dburl}" uri="${tm.uri}" srcfile="${dir.src}/kings_and_queens.xtm"/> > <tm:load dburl="${tm.dburl}"> > <fileset dir="${dir.res}"> > <include name="simpsons.xtm"/> > <include name="blockworld.xtm"/> > </fileset> > </tm:load> > </target> > > <!-- export/dump a topicmap to a XTM file --> > <target name="export" description="export topicmap"> > <tm:export dburl="${tm.dburl}" uri="${tm.uri}" destFile="${dir.dest}/topicmap.xtm"/> > <tm:export dburl="${tm.dburl}" uri="http://www.tm4j.org/examples/topicmaps/test.xtm" destFile="${dir.dest}/test.xtm"/> > </target> > > <!-- list available topicmaps --> > <target name="list" description="list topicmaps"> > <tm:list dburl="${tm.dburl}" outputproperty="topicmaps"/> > <echo message="Available topicmaps: ${topicmaps}"/> > </target> > > <!-- merge two topicmaps --> > <target name="merge" description="merge topicmap"> > <tm:load dburl="${tm.dburl}" uri="http://www.tm4j.org/examples/topicmaps/merge.xtm" srcfile="${dir.res}/merge1.xml"/> > <tm:merge dburl="${tm.dburl}" uri="http://www.tm4j.org/examples/topicmaps/merge.xtm" srcfile="${dir.res}/merge2.xml"/> > <tm:export dburl="${tm.dburl}" uri="http://www.tm4j.org/examples/topicmaps/merge.xtm" destFile="${dir.dest}/merge.xtm"/> > </target> > > <!-- remove topicmap --> > <target name="remove" description="remove topicmap"> > <tm:topic dburl="${tm.dburl}" uri="http://www.tm4j.org/examples/topicmaps/test.xtm" topic="assoc1"/> > <tm:remove dburl="${tm.dburl}" uri="${tm.uri}"/> > <tm:remove dburl="${tm.dburl}" uri="http://www.tm4j.org/examples/topicmaps/test.xtm"/> > </target> ></project> > > > |
From: Peter K. <pet...@bl...> - 2005-05-18 08:28:20
|
Hi, TM4j has already today one file-oriented topicmap merge task but I needed some more tasks especially some that manipulate topicmaps in the provider. I would like to donate this back the TM4J project as more people might be interested in these. Would somebody with committer rights please have a look at the tasks and integrate them into the CVS? All tasks work the same, a dburl must be specified for either a Ozone or Hibernate persistence backend as all tasks work on a provider not in memory. Topicmaps are referenced by a uri attribute. The following tasks are included: <antlib> <typedef name="create" classname="org.tm4j.ant.CreateTopicMap"/> <typedef name="exist" classname="org.tm4j.ant.ExistTopicMap"/> <typedef name="export" classname="org.tm4j.ant.ExportTopicMap"/> <typedef name="load" classname="org.tm4j.ant.LoadTopicMap"/> <typedef name="merge" classname="org.tm4j.ant.MergeTopicMap"/> <typedef name="remove" classname="org.tm4j.ant.RemoveTopicMap"/> <typedef name="list" classname="org.tm4j.ant.ListTopicMap"/> <typedef name="topic" classname="org.tm4j.ant.CreateTopic"/> <typedef name="association" classname="org.tm4j.ant.CreateAssociation"/> <typedef name="occurrence" classname="org.tm4j.ant.CreateOccurrence"/> <typedef name="rmtopic" classname="org.tm4j.ant.RemoveTopic"/> </antlib> I use the technique of antlib and namespaces as one can see in the included test build.xml. <?xml version="1.0"?> <project name="TM4J" default="usage" xmlns:tm="http://tm4j.org/ant"> ^^^^^^^^^^^^ <description> test case for tm4j ant tasks </description> ... <typedef resource="org/tm4j/ant/antlib.xml" uri="http://tm4j.org/ant"> ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ <classpath> ... </classpath> </typedef> I put the tasks into the package org.tm4j.ant not .taskdefs in order to keep them separate from the still needed file-oriented merge task, but this can be changed of course. Regards, Peter -- Peter Klotz blue elephant systems GmbH Tel.: +49 711 451017-570 Wollgrasweg 49 Fax.: +49 711 451017-573 D-70599 Stuttgart Email: pet...@bl... WWW: www.blue-elephant-systems.com Sitz : Stuttgart, AG Stuttgart, HRB 24106 Geschäftsführer: Joachim Hörnle, Thomas Gentsch, Holger Dietrich |
From: George T. <geo...@fr...> - 2005-05-12 19:37:18
|
Thank you Lars Definitely I'll take a look in these Cheers ----- Original Message ----- From: "Lars Heuer" <he...@se...> To: "George Tryfon" <geo...@fr...> Cc: <tm4...@li...> Sent: Thursday, May 12, 2005 4:56 PM Subject: Re: [TM4J-users] use of rmi? > Hi George, > > > Are there any thought on passing TMAPI through RMI or... web servicess? > > Is anybody else things it would be a nice thing? > > I wouldn't go the way to pass TMAPI through RMI. > > I think it's better to exchange Topic Map Fragments in some dialect. > A begin might be Ontopias TMRAP or SNAPI > <http://sf.net/projects/snapi/>. > SNAPI's approach is nice, but the development seems to be stalled. > TMRAP is very simple and should be easily translatable from the TM4J > API to TMAPI. > <http://cvs.sourceforge.net/viewcvs.py/tm4j/tm4web/tmrap/> > > Another, more advanced way would be adapting the NetworkedPlanet WS. > <http://www.networkedplanet.com/technology/webservices/intro.html> > > The service interface is very similiar to TMAPI methods so it would be > easily translatable to TMAPI. > > BTW: If you translate TMRAP to TMAPI, the TMAPI-Utils > <http://sf.net/projects/tmapi-utils/> project would be glad if you > contribute your code to the project. :) > > Best regards, > Lars > -- > http://semagia.com > ____________________________________________________________________ http://www.freemail.gr - äùñåÜí õðçñåóßá çëåêôñïíéêïý ôá÷õäñïìåßïõ. http://www.freemail.gr - free email service for the Greek-speaking. |
From: Lars H. <he...@se...> - 2005-05-12 13:54:36
|
Hi George, > Are there any thought on passing TMAPI through RMI or... web servicess? > Is anybody else things it would be a nice thing? I wouldn't go the way to pass TMAPI through RMI. I think it's better to exchange Topic Map Fragments in some dialect. A begin might be Ontopias TMRAP or SNAPI <http://sf.net/projects/snapi/>. SNAPI's approach is nice, but the development seems to be stalled. TMRAP is very simple and should be easily translatable from the TM4J API to TMAPI. <http://cvs.sourceforge.net/viewcvs.py/tm4j/tm4web/tmrap/> Another, more advanced way would be adapting the NetworkedPlanet WS. <http://www.networkedplanet.com/technology/webservices/intro.html> The service interface is very similiar to TMAPI methods so it would be easily translatable to TMAPI. BTW: If you translate TMRAP to TMAPI, the TMAPI-Utils <http://sf.net/projects/tmapi-utils/> project would be glad if you contribute your code to the project. :) Best regards, Lars -- http://semagia.com |
From: George T. <geo...@fr...> - 2005-05-11 19:09:21
|
Hello Christoph, (I posted this before in wrong address, sory) Thank you for your notice I looked at Kamal and it seems to me that Kamal is exporting "panckouche" I would prefer TMAPI (I suppose there was no TMAPI when Kamal started) Cheers Yorgos > Hi Yorgos > > there is a subproject of tm4j, called Kamal, with the goal to implement > a WebService-Wrapper around tm4j. > > It was maintained by Martin Stockhammer and it's quite a while that he > was activily working on it. At least, there was no cvs activity over th= e > last months. Maritn never did a release but I think he was pretty close > to it. > > Maybe this could be a starting point for you. > > bye > c > > > > Am Dienstag, den 10.05.2005, 21:32 +0300 schrieb George Tryfon: > > Hello all > > > > Are there any thought on passing TMAPI through RMI or... web services= s? > > Is anybody else things it would be a nice thing? > > > > Greetings > > Yorgos > > > > > > ____________________________________________________________________ > > http://www.freemail.gr - =E4=F9=F1=E5=DC=ED =F5=F0=E7=F1=E5=F3=DF=E1 = =E7=EB=E5=EA=F4=F1=EF=ED=E9=EA=EF=FD =F4=E1=F7=F5=E4=F1=EF=EC=E5=DF=EF=F5= . > > http://www.freemail.gr - free email service for the Greek-speaking. > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by Oracle Space Sweepstakes > > Want to be the first software developer in space? > > Enter now for the Oracle Space Sweepstakes! > > http://ads.osdn.com/?ad_id=3D7393&alloc_id=3D16281&op=3Dclick > > _______________________________________________ > > Tm4j-users mailing list > > Tm4...@li... > > https://lists.sourceforge.net/lists/listinfo/tm4j-users > -- > Christoph Froehlich <cf...@fo...> > ____________________________________________________________________ http://www.freemail.gr - =E4=F9=F1=E5=DC=ED =F5=F0=E7=F1=E5=F3=DF=E1 =E7=EB= =E5=EA=F4=F1=EF=ED=E9=EA=EF=FD =F4=E1=F7=F5=E4=F1=EF=EC=E5=DF=EF=F5. http://www.freemail.gr - free email service for the Greek-speaking. |
From: Christoph F. <cf...@fo...> - 2005-05-11 06:50:24
|
Hi Yorgos there is a subproject of tm4j, called Kamal, with the goal to implement a WebService-Wrapper around tm4j. It was maintained by Martin Stockhammer and it's quite a while that he was activily working on it. At least, there was no cvs activity over the last months. Maritn never did a release but I think he was pretty close to it. Maybe this could be a starting point for you. bye c Am Dienstag, den 10.05.2005, 21:32 +0300 schrieb George Tryfon: > Hello all > > Are there any thought on passing TMAPI through RMI or... web servicess? > Is anybody else things it would be a nice thing? > > Greetings > Yorgos > > > ____________________________________________________________________ > http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου. > http://www.freemail.gr - free email service for the Greek-speaking. > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users -- Christoph Froehlich <cf...@fo...> |
From: George T. <geo...@fr...> - 2005-05-10 18:30:13
|
Hello all Are there any thought on passing TMAPI through RMI or... web servicess? Is anybody else things it would be a nice thing? Greetings Yorgos ____________________________________________________________________ http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου. http://www.freemail.gr - free email service for the Greek-speaking. |
From: Conal T. <Con...@vu...> - 2005-04-29 03:31:21
|
The website of the New Zealand Electronic Text Centre has been re-launched, with TM4J as a key software component. http://www.nzetc.org/ The website is a digital library, providing access to a couple of hundred digitised books and manuscripts. The site has been running for about 3 years, but this week we've upgraded it significantly, putting it on a new foundation - a topic map.=20 The topic map presently contains 46807 topics, 192492 associations, and 43942 occurrences; roughly 150Mb of XTM. We are using tm4j's "in-memory" back-end, running on Java 1.4.1 on Windows 2000. The topic map consumes approximately 1.3GB of RAM. The front end of the site uses Cocoon to render pages (each of which represents a topic, and some "neighbouring" topics). We use Cocoon's templating system "jxtemplate" to render each topic. JXTemplate is designed to be very like XSLT, with an expression language called "JXPath" which is more-or-less a superset of XPath, but which also allows for traversal of Java objects via path expressions, e.g. "$topic/occurrences[type=3D$ontology/html]". This avoids the conceptual mis-match that can occur when using XSLT, which is tree-oriented, to style XTM, which really represents a cyclic graph. We had to write a few Java functions to add JXPath support for topic sorting, traversal of the type hierarchy, and a few other features, but nothing too hard. We use several different templates to render the different types of topics. The source material for the site is a collection of TEI (Text Encoding for Interchange) XML files, each of which is an encoding of a source object (i.e. a book). Most of the topic map is harvested from these files using XSLT. Each book, chapter, subsection, figure, author, publisher, etc, is represented by a topic, names are harvested from headings and captions in the text, and the containment hierarchy is represented by associations. These associations are used to generate tables of contents, as well as to provide "next" and "previous" links between web pages.=20 For each fragment of TEI text, we harvest 2 HTML occurrences which are alternative representations of that piece of text. One is a "scholarly" (fussy) view, in which page numbers, errors, deletions and corrections (in manuscripts), etc are all rendered, and the other is a "basic" (simplified) view, in which spelling errors are silently corrected, page numbers are not displayed, etc. These alternatives are distinguished with "basic" and "scholarly" scoping topics. At present only the scholarly view is visible on the public website, but we plan to make the basic view visible during next week. Cocoon XSLT pipelines are used to transform the TEI into HTML (and some other formats). Names of people, places, etc, are also marked up in the TEI, and these are also harvested as topics, with associations linking each person to the places in the texts where they are mentioned, the figures in which they are depicted, and to the texts which they wrote. We use a MADS XML file to maintain an authoritative list of names, from which we also harvest some biographical notes and links to external websites. Consequently, the system can generate a web page to represent each person, providing links to all the places in the library where they are mentioned, all the texts they wrote, and a thumbnail gallery of the pictures in which they appear, and links to relevant external sites. e.g. http://www.nzetc.org/tm/scholarly/name-207418.html The ontology used is a subset of the CIDOC CRM (a museum ontology). In future we plan to harvest dates from the texts, and provide timeline-based access to the texts. Our main technical concern is to replace the in-memory back-end with a database, since we are running out of memory and will need to scale up the topic map as our collection grows, and as we add more semantic markup to the TEI.=20 As the lead developer on this project, I want to take this opportunity to publicly express our gratitude to Kal Ahmed, and to all the TM4J contributors, for enabling us to get this project off the ground. Thanks heaps!!=20 Regards Con -- Conal Tuohy Senior Programmer +64-4-463-6844 +64-21-237-2498 co...@nz... New Zealand Electronic Text Centre www.nzetc.org ---- "I believe we were all glad to leave New Zealand. It is not a pleasant place. Amongst the natives there is absent that=20 charming simplicity which is found in Tahiti; and the greater part of the English are the very refuse of society. Neither=20 is the country itself attractive. I look back but to one=20 bright spot, and that is Waimate, with its Christian=20 inhabitants." - Charles Darwin |
From: Dicheva, D. <dic...@ws...> - 2005-04-18 17:31:10
|
Christoph, > it seems to me, that your new panckoucke.jar is not taken=20 > into account by the classloader.=20 yes, that's what happens but I don't see why ... > Are you sure, that you=20 > replaced the old panckoucke-jar in the lib folder with your version? >=20 > Maybe you just copied your new jar to the lib directory=20 > without removing the old one from there?? =20 I think so, will check very carefully again .. thanks, Darina >=20 > Am Sonntag, den 17.04.2005, 19:18 -0400 schrieb Dicheva, Darina: > > Hi, > >=20 > > I wonder if anybody could advise on the following: > >=20 > > I am trying to add scoping in our viewer based on TMNav. For that=20 > > purpose I would like to take from the interface (in TMNav)=20 > themes set=20 > > by the user for filtering out TM objects. I need to pass=20 > these themes=20 > > over to the Panckoucke index abstractors, so that they only=20 > include in=20 > > the models the qualifying objects. > >=20 > > For this purpose I introduced a 4th parameter in the Panckoucke's=20 > > ModelProvider getModel method: > >=20 > >=20 > > public AModel getModel(AMMember member, String abstractorClassname, > > AbstractionContext options, ScopesStore scopesStore) > >=20 > > (I have added a ScopesStore class in Panckoucke for storing the=20 > > current sets of chosen themes for each of the open TMs. I=20 > am not sure=20 > > if it is a good solution, but didn't manage to use any of=20 > the current classes, e.g. > > AbstractionContext.) > >=20 > > The problem is that when this method is called in the TMNav's=20 > > IndexProvider and RendererView classes I get compilation=20 > errors (see=20 > > below). My question is: Could I (and if so how) change a Panckoucke=20 > > class so that this change is recognised by TMNav? I do=20 > produce a new=20 > > jar file after compiling Panckoucke and copy it to the TMNav lib=20 > > folder ... > >=20 > > I would appreciate a lot any feedback. > > Many thanks, > > Darina > >=20 > > ------------------------------- > >=20 > > Buildfile: C:\workspace\TMNav\build.xml > > build: > > [javac] Compiling 5 source files to=20 > C:\workspace\TMNav\buildclasses > > [javac] > > C:\workspace\TMNav\src\org\tm4j\tmnav\app\ix\IndexProvider.java:82: > > cannot find symbol > > [javac] symbol : method > >=20 > getModel(org.tm4j.panckoucke.model.AMMember,java.lang.String,<nulltype > > >, > > org.tm4j.panckoucke.store.ScopesStore) > > [javac] location: interface=20 > org.tm4j.panckoucke.model.ModelProvider > > [javac] AModel model =3D modelProvider.getModel(member,=20 > > abstractorClassname, null, scopesStore); > > [javac] ^ > > [javac] > > C:\workspace\TMNav\src\org\tm4j\tmnav\app\ui\RendererView.java:425: > > cannot find symbol > > [javac] symbol : method > >=20 > getModel(org.tm4j.panckoucke.model.AMMember,java.lang.String,org.tm4j. > > pa=20 > >=20 > nckoucke.abstraction.AbstractionContext,org.tm4j.panckoucke.store.Scop > > es > > Store) > > [javac] location: interface=20 > org.tm4j.panckoucke.model.ModelProvider > > [javac] model =3D mp.getModel(member,=20 > > ad.getClassname(),abstractionEnv.getAbstractionContext(), > > navCtx.getScopesStore()); > > [javac] ^ > > [javac] 2 errors > > BUILD FAILED: C:\workspace\TMNav\build.xml:66: Compile=20 > failed; see the=20 > > compiler error output for details. > > Total time: 1 second > >=20 > >=20 > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide Read honest=20 > & candid=20 > > reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start=20 > reading now. > > http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=3Dclick > > _______________________________________________ > > Tm4j-users mailing list > > Tm4...@li... > > https://lists.sourceforge.net/lists/listinfo/tm4j-users > -- > Christoph Froehlich <cf...@fo...> >=20 >=20 |
From: Christoph F. <cf...@fo...> - 2005-04-18 09:09:45
|
Hi Darina, it seems to me, that your new panckoucke.jar is not taken into account by the classloader. Are you sure, that you replaced the old panckoucke-jar in the lib folder with your version? Maybe you just copied your new jar to the lib directory without removing the old one from there?? Bye c Am Sonntag, den 17.04.2005, 19:18 -0400 schrieb Dicheva, Darina: > Hi, > > I wonder if anybody could advise on the following: > > I am trying to add scoping in our viewer based on TMNav. For that > purpose I would like to take from the interface (in TMNav) themes set by > the user for filtering out TM objects. I need to pass these themes over > to the Panckoucke index abstractors, so that they only include in the > models the qualifying objects. > > For this purpose I introduced a 4th parameter in the Panckoucke's > ModelProvider getModel method: > > > public AModel getModel(AMMember member, String abstractorClassname, > AbstractionContext options, ScopesStore scopesStore) > > (I have added a ScopesStore class in Panckoucke for storing the current > sets of chosen themes for each of the open TMs. I am not sure if it is a > good solution, but didn't manage to use any of the current classes, e.g. > AbstractionContext.) > > The problem is that when this method is called in the TMNav's > IndexProvider and RendererView classes I get compilation errors (see > below). My question is: Could I (and if so how) change a Panckoucke > class so that this change is recognised by TMNav? I do produce a new > jar file after compiling Panckoucke and copy it to the TMNav lib folder > ... > > I would appreciate a lot any feedback. > Many thanks, > Darina > > ------------------------------- > > Buildfile: C:\workspace\TMNav\build.xml > build: > [javac] Compiling 5 source files to C:\workspace\TMNav\buildclasses > [javac] > C:\workspace\TMNav\src\org\tm4j\tmnav\app\ix\IndexProvider.java:82: > cannot find symbol > [javac] symbol : method > getModel(org.tm4j.panckoucke.model.AMMember,java.lang.String,<nulltype>, > org.tm4j.panckoucke.store.ScopesStore) > [javac] location: interface org.tm4j.panckoucke.model.ModelProvider > [javac] AModel model = modelProvider.getModel(member, > abstractorClassname, null, scopesStore); > [javac] ^ > [javac] > C:\workspace\TMNav\src\org\tm4j\tmnav\app\ui\RendererView.java:425: > cannot find symbol > [javac] symbol : method > getModel(org.tm4j.panckoucke.model.AMMember,java.lang.String,org.tm4j.pa > nckoucke.abstraction.AbstractionContext,org.tm4j.panckoucke.store.Scopes > Store) > [javac] location: interface org.tm4j.panckoucke.model.ModelProvider > [javac] model = mp.getModel(member, > ad.getClassname(),abstractionEnv.getAbstractionContext(), > navCtx.getScopesStore()); > [javac] ^ > [javac] 2 errors > BUILD FAILED: C:\workspace\TMNav\build.xml:66: Compile failed; see the > compiler error output for details. > Total time: 1 second > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users -- Christoph Froehlich <cf...@fo...> |
From: Dicheva, D. <dic...@ws...> - 2005-04-17 23:18:26
|
Hi, I wonder if anybody could advise on the following: I am trying to add scoping in our viewer based on TMNav. For that purpose I would like to take from the interface (in TMNav) themes set by the user for filtering out TM objects. I need to pass these themes over to the Panckoucke index abstractors, so that they only include in the models the qualifying objects.=20 For this purpose I introduced a 4th parameter in the Panckoucke's ModelProvider getModel method: public AModel getModel(AMMember member, String abstractorClassname, AbstractionContext options, ScopesStore scopesStore) (I have added a ScopesStore class in Panckoucke for storing the current sets of chosen themes for each of the open TMs. I am not sure if it is a good solution, but didn't manage to use any of the current classes, e.g. AbstractionContext.) The problem is that when this method is called in the TMNav's IndexProvider and RendererView classes I get compilation errors (see below). My question is: Could I (and if so how) change a Panckoucke class so that this change is recognised by TMNav? I do produce a new jar file after compiling Panckoucke and copy it to the TMNav lib folder ... I would appreciate a lot any feedback. Many thanks, Darina ------------------------------- Buildfile: C:\workspace\TMNav\build.xml build: [javac] Compiling 5 source files to C:\workspace\TMNav\buildclasses [javac] C:\workspace\TMNav\src\org\tm4j\tmnav\app\ix\IndexProvider.java:82: cannot find symbol [javac] symbol : method getModel(org.tm4j.panckoucke.model.AMMember,java.lang.String,<nulltype>, org.tm4j.panckoucke.store.ScopesStore) [javac] location: interface org.tm4j.panckoucke.model.ModelProvider [javac] AModel model =3D modelProvider.getModel(member, abstractorClassname, null, scopesStore); [javac] ^ [javac] C:\workspace\TMNav\src\org\tm4j\tmnav\app\ui\RendererView.java:425: cannot find symbol [javac] symbol : method getModel(org.tm4j.panckoucke.model.AMMember,java.lang.String,org.tm4j.pa nckoucke.abstraction.AbstractionContext,org.tm4j.panckoucke.store.Scopes Store) [javac] location: interface org.tm4j.panckoucke.model.ModelProvider [javac] model =3D mp.getModel(member, ad.getClassname(),abstractionEnv.getAbstractionContext(), navCtx.getScopesStore()); [javac] ^ [javac] 2 errors BUILD FAILED: C:\workspace\TMNav\build.xml:66: Compile failed; see the compiler error output for details. Total time: 1 second |
From: Ketil S. <st...@on...> - 2005-04-05 17:23:00
|
I'm having problems compressing the last part of my Topic Map. I have used TM4J compress script under Linux to compress these files: http://www.stud.ntnu.no/groups/it3803gr3/result/ass_rol_types.xtm http://www.stud.ntnu.no/groups/it3803gr3/result/topicTypes.xtm http://www.stud.ntnu.no/groups/it3803gr3/result/topicTest.xtm http://www.stud.ntnu.no/groups/it3803gr3/result/assRolesTest.xtm Into this file: http://www.stud.ntnu.no/groups/it3803gr3/result/mergeTest1.xtm This works fine. But then I'm going to merge this with the associations in this file: http://www.stud.ntnu.no/groups/it3803gr3/result/assTest.xtm With this command (as used before): compress -o testMerge2.xtm testMerge1.xtm assTest.xtm And I get this error message: Cannot find CatalogManager.properties java.io.FileNotFoundException: /home/others/homer/groups/i/it3803gr3/result/id2002ieee_transactions_on_para llel_and_distributed_systems (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:103) at java.io.FileInputStream.<init>(FileInputStream.java:66) at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:6 9) at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection .java:156) at org.tm4j.net.URILocatorResolver.resolve(URILocatorResolver.java:131) at org.tm4j.net.SimpleLocatorResolverManager.resolve(SimpleLocatorResolverManag er.java:84) at org.tm4j.topicmap.TopicMapProviderBase.mergeTopicMap(TopicMapProviderBase.ja va:458) at org.tm4j.topicmap.utils.TopicMapMerger.mergeExternallyReferencedTopicMaps(To picMapMerger.java:619) at org.tm4j.topicmap.utils.TopicMapMerger.merge(TopicMapMerger.java:593) at org.tm4j.topicmap.cmd.AppBase.loadTopicMapList(AppBase.java:147) at org.tm4j.topicmap.cmd.Compress.run(Compress.java:48) at org.tm4j.topicmap.cmd.AppBase.initialise(AppBase.java:169) at org.tm4j.topicmap.cmd.Compress.main(Compress.java:71) Error caught while attempting to merge from resource: file:/home/others/homer/groups/i/it3803gr3/result/id2002ieee_transactions_on _parallel_and_distributed_systems. Cause: java.io.FileNotFoundException: /home/others/homer/groups/i/it3803gr3/result/id2002ieee_transactions_on_para llel_and_distributed_systems (No such file or directory) at org.tm4j.topicmap.TopicMapProviderBase.mergeTopicMap(TopicMapProviderBase.ja va:464) at org.tm4j.topicmap.utils.TopicMapMerger.mergeExternallyReferencedTopicMaps(To picMapMerger.java:619) at org.tm4j.topicmap.utils.TopicMapMerger.merge(TopicMapMerger.java:593) at org.tm4j.topicmap.cmd.AppBase.loadTopicMapList(AppBase.java:147) at org.tm4j.topicmap.cmd.Compress.run(Compress.java:48) at org.tm4j.topicmap.cmd.AppBase.initialise(AppBase.java:169) at org.tm4j.topicmap.cmd.Compress.main(Compress.java:71) ERROR: Error caught while attempting to merge from resource: file:/home/others/homer/groups/i/it3803gr3/result/id2002ieee_transactions_on _parallel_and_distributed_systems. Cause: java.io.FileNotFoundException: /home/others/homer/groups/i/it3803gr3/result/id2002ieee_transactions_on_para llel_and_distributed_systems (No such file or directory) What is this? I understand that there's something wrong with my assTest.xtm, and it seems that java tries to read another non-existing file, but I can't understand why. I'd be most grateful for any help, ideas or solutions. Regards Ketil Stadskleiv |
From: Kal A. <ka...@te...> - 2005-04-04 16:30:16
|
Hi Ketil, The problem is the references in your Topics.xtm. When you have a <topicRef xlink:href="#books"/> element, the reference is to a topic with the URL <path>/Topics.xtm#books. When you merge in topicTypes.xtm, the <topic id="books"> element has the source locator <path>/topicTypes.xtm#books. I see that you have some relative URIs in topicTypes.xtm for subject identifiers. What I advise you to do is to: 1) Convert those relative URIs to absolute URIs with a full domain name e.g. http://www.online.no/psi/types/books 2) Either 2a) Replace the topicRefs in Topics.xtm with subjectIndicatorRefs using the full URIs OR 2b) Create "stub" topics for your topic types in topics.xtm that only have the id and the full subject identifier e.g. <topic id="books"> <subjectIdentity><subjectIndicatorRef xlink:href="http://www.online.no/psi/types/books"/></subjectIdentity> </topic> If you do (2a) you are basically replacing a reference to a topic with a reference to a subject identifier, that will get resolved during merging. Actually what happens "behind the scenes" is that a stub topic gets autogenerated for you. If you do (2b) then you can carry on using the shorter topic refs in your topics.xtm because the topics.xtm#books topic will get merged with the topicTypes.xtm#books topic by their subject identifier. (2b) could result in a smaller Topics.xtm file if you have lots of references, but I think that is really the only difference between the two approaches. Hope this helps, Kal Ketil Stadskleiv wrote: >I have a Topic Map consisting of two files (so far). > >- One with different topics >- One with all the topic-types referred to in the other file. > >If I cut and paste the content of these files into one it works just fine, >but I need to do this automaticly using CMD. > >------------------------------------------------ >Topics.xtm: > ><?xml version="1.0" encoding="UTF-8"?> ><!DOCTYPE topicMap SYSTEM "http://www.topicmaps.org/xtm/1.0/xtm1.dtd"> ><topicMap xmlns="http://www.topicmaps.org/xtm/1.0/" >xmlns:xlink="http://www.w3.org/1999/xlink"> ><!--Book--> > <topic id="id2002IEEE_Transactions_on_Parallel_and_Distributed_Systems"> > <instanceOf> > <topicRef xlink:href="#books" /> > </instanceOf> > > <subjectIdentity> > <subjectIndicatorRef >xlink:href="/topics/2002IEEE_Transactions_on_Parallel_and_Distributed_System >s" /> > </subjectIdentity> > > <baseName> > <baseNameString>IEEE Transactions on Parallel and Distributed >Systems 2002</baseNameString> > </baseName> > </topic> > ><!--Journal--> > <topic id="Transactions_on_Parallel_and_Distributed_Systems131"> > <instanceOf> > <topicRef xlink:href="#journals" /> > </instanceOf> > > <subjectIdentity> > <subjectIndicatorRef >xlink:href="/topics/Transactions_on_Parallel_and_Distributed_Systems131" /> > </subjectIdentity> > > <baseName> > <baseNameString>IEEE Transactions on Parallel and Distributed >Systems January 2002</baseNameString> > </baseName> > </topic> > ><!--Publisher--> > <topic id="idPublished_by_the_IEEE_Computer_Society"> > <instanceOf> > <topicRef xlink:href="#organizations" /> > </instanceOf> > > <subjectIdentity> > <subjectIndicatorRef >xlink:href="/topics/Published_by_the_IEEE_Computer_Society" /> > </subjectIdentity> > > <baseName> > ><baseNameString>Published_by_the_IEEE_Computer_Society</baseNameString> > </baseName> > </topic> > ><!--Article--> > <topic id="id10.1041_l0001s-2002"> > <instanceOf> > <topicRef xlink:href="#articles" /> > </instanceOf> > > <subjectIdentity> > <subjectIndicatorRef >xlink:href="/topics/IEEE_TRANSACTIONS_ON_PARALLEL_AND_DISTRIBUTED_SYSTEMS" >/> > </subjectIdentity> > > <baseName> > <baseNameString>IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED >SYSTEMS (10.1041/l0001s-2002)</baseNameString> > </baseName> > </topic> > ><!--YearMonth--> > <topic id="id2002january"> > <instanceOf> > <topicRef xlink:href="#date" /> > </instanceOf> > > <subjectIdentity> > <subjectIndicatorRef xlink:href="/topics/2002January" /> > </subjectIdentity> > > <baseName> > <baseNameString>2002 January</baseNameString> > </baseName> > </topic> > ><!--Article--> > <topic id="id10.1041_l0004s-2001"> > <instanceOf> > <topicRef xlink:href="#articles" /> > </instanceOf> > > <subjectIdentity> > <subjectIndicatorRef >xlink:href="/topics/IEEE_TRANSACTIONS_ON_PARALLEL_AND_DISTIBUTED_SYSTEMS" /> > </subjectIdentity> > > <baseName> > <baseNameString>IEEE TRANSACTIONS ON PARALLEL AND DISTIBUTED >SYSTEMS (10.1041/l0004s-2001)</baseNameString> > </baseName> > </topic> > ><!--Year--> > <topic id="id2002"> > <instanceOf> > <topicRef xlink:href="#date" /> > </instanceOf> > > <subjectIdentity> > <subjectIndicatorRef xlink:href="/topics/2002" /> > </subjectIdentity> > > <baseName> > <baseNameString>2002</baseNameString> > </baseName> > </topic> > ><!--Year--> > <topic id="id2002"> > <instanceOf> > <topicRef xlink:href="#date" /> > </instanceOf> > > <subjectIdentity> > <subjectIndicatorRef xlink:href="/topics/2002" /> > </subjectIdentity> > > <baseName> > <baseNameString>2002</baseNameString> > </baseName> > </topic> ></topicMap> > >------------------------------------------------ >topicTypes.xtm: > ><?xml version="1.0" encoding="UTF-8"?> ><topicMap xmlns="http://www.topicmaps.org/xtm/1.0/" >xmlns:xlink="http://www.w3.org/1999/xlink"> ><!--Topic Types--> > <topic id="organizations"> > <subjectIdentity> > <subjectIndicatorRef xlink:href="/topicType/organizations" /> > </subjectIdentity> > > <baseName> > <baseNameString>Organization</baseNameString> > </baseName> > </topic> > > <topic id="books"> > <subjectIdentity> > <subjectIndicatorRef xlink:href="/topicType/books" /> > </subjectIdentity> > > <baseName> > <baseNameString>Books</baseNameString> > </baseName> > </topic> > > <topic id="journals"> > <subjectIdentity> > <subjectIndicatorRef xlink:href="/topicType/journals" /> > </subjectIdentity> > > <baseName> > <baseNameString>Journals</baseNameString> > </baseName> > </topic> > > <topic id="articles"> > <subjectIdentity> > <subjectIndicatorRef xlink:href="/topicType/articles" /> > </subjectIdentity> > > <baseName> > <baseNameString>Articles</baseNameString> > </baseName> > </topic> > > <topic id="date"> > <subjectIdentity> > <subjectIndicatorRef xlink:href="/topicType/date" /> > </subjectIdentity> > > <baseName> > <baseNameString>Date</baseNameString> > </baseName> > </topic> > > <topic id="person"> > <subjectIdentity> > <subjectIndicatorRef xlink:href="/topicType/person" /> > </subjectIdentity> > > <baseName> > <baseNameString>Person</baseNameString> > </baseName> > </topic> ></topicMap> >-------------------------------------------------- > >I use the command line tool in TM4J: > >compress -o testMerge.xtm Topics.xtm topicTypes.xtm > >And the result is this: > >---------------------------------------- >testMerge.xtm: > ><?xml version="1.0" encoding="UTF-8"?> ><topicMap id="x1kq61aj4o-0" >xml:base="file:/home/others/homer/groups/i/it3803gr3/result/topicTest.xtm" >xmlns="http://www.topicmaps.org/xtm/1.0/" >xmlns:xlink="http://www.w3.org/1999/xlink"> > <topic id="x1kq61ajdo-13"> > <subjectIdentity> > <subjectIndicatorRef xlink:href="/topicType/articles" /> > </subjectIdentity> > > <baseName id="x1kq61ajdo-14"> > <baseNameString>Articles</baseNameString> > </baseName> > </topic> > > <topic id="id2002"> > <instanceOf> > <topicRef xlink:href="#date" /> > </instanceOf> > > <subjectIdentity> > <subjectIndicatorRef xlink:href="/topics/2002" /> > </subjectIdentity> > > <baseName id="x1kq61ajdo-b"> > <baseNameString>2002</baseNameString> > </baseName> > </topic> > > <topic id="id10.1041_l0001s-2002"> > <instanceOf> > <topicRef xlink:href="#articles" /> > </instanceOf> > > <subjectIdentity> > <subjectIndicatorRef >xlink:href="/topics/IEEE_TRANSACTIONS_ON_PARALLEL_AND_DISTRIBUTED_SYSTEMS" >/> > </subjectIdentity> > > <baseName id="x1kq61ajdo-7"> > <baseNameString>IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED >SYSTEMS (10.1041/l0001s-2002)</baseNameString> > </baseName> > </topic> > > <topic id="id10.1041_l0004s-2001"> > <instanceOf> > <topicRef xlink:href="#articles" /> > </instanceOf> > > <subjectIdentity> > <subjectIndicatorRef >xlink:href="/topics/IEEE_TRANSACTIONS_ON_PARALLEL_AND_DISTIBUTED_SYSTEMS" /> > </subjectIdentity> > > <baseName id="x1kq61ajdo-a"> > <baseNameString>IEEE TRANSACTIONS ON PARALLEL AND DISTIBUTED >SYSTEMS (10.1041/l0004s-2001)</baseNameString> > </baseName> > </topic> > > <topic id="journals" /> > > <topic id="id2002IEEE_Transactions_on_Parallel_and_Distributed_Systems"> > <instanceOf> > <topicRef xlink:href="#books" /> > </instanceOf> > > <subjectIdentity> > <subjectIndicatorRef >xlink:href="/topics/2002IEEE_Transactions_on_Parallel_and_Distributed_System >s" /> > </subjectIdentity> > > <baseName id="x1kq61ajdo-1"> > <baseNameString>IEEE Transactions on Parallel and Distributed >Systems 2002</baseNameString> > </baseName> > </topic> > > <topic id="x1kq61ajdo-11"> > <subjectIdentity> > <subjectIndicatorRef xlink:href="/topicType/journals" /> > </subjectIdentity> > > <baseName id="x1kq61ajdo-12"> > <baseNameString>Journals</baseNameString> > </baseName> > </topic> > > <topic id="books" /> > > <topic id="x1kq61ajdo-f"> > <subjectIdentity> > <subjectIndicatorRef xlink:href="/topicType/books" /> > </subjectIdentity> > > <baseName id="x1kq61ajdo-10"> > <baseNameString>Books</baseNameString> > </baseName> > </topic> > > <topic id="Transactions_on_Parallel_and_Distributed_Systems131"> > <instanceOf> > <topicRef xlink:href="#journals" /> > </instanceOf> > > <subjectIdentity> > <subjectIndicatorRef >xlink:href="/topics/Transactions_on_Parallel_and_Distributed_Systems131" /> > </subjectIdentity> > > <baseName id="x1kq61ajdo-3"> > <baseNameString>IEEE Transactions on Parallel and Distributed >Systems January 2002</baseNameString> > </baseName> > </topic> > > <topic id="x1kq61ajdo-15"> > <subjectIdentity> > <subjectIndicatorRef xlink:href="/topicType/date" /> > </subjectIdentity> > > <baseName id="x1kq61ajdo-16"> > <baseNameString>Date</baseNameString> > </baseName> > </topic> > > <topic id="articles" /> > > <topic id="organizations" /> > > <topic id="idPublished_by_the_IEEE_Computer_Society"> > <instanceOf> > <topicRef xlink:href="#organizations" /> > </instanceOf> > > <subjectIdentity> > <subjectIndicatorRef >xlink:href="/topics/Published_by_the_IEEE_Computer_Society" /> > </subjectIdentity> > > <baseName id="x1kq61ajdo-5"> > ><baseNameString>Published_by_the_IEEE_Computer_Society</baseNameString> > </baseName> > </topic> > > <topic id="x1kq61ajdo-d"> > <subjectIdentity> > <subjectIndicatorRef xlink:href="/topicType/organizations" /> > </subjectIdentity> > > <baseName id="x1kq61ajdo-e"> > <baseNameString>Organization</baseNameString> > </baseName> > </topic> > > <topic id="person"> > <subjectIdentity> > <subjectIndicatorRef xlink:href="/topicType/person" /> > </subjectIdentity> > > <baseName id="x1kq61ajdo-17"> > <baseNameString>Person</baseNameString> > </baseName> > </topic> > > <topic id="id2002january"> > <instanceOf> > <topicRef xlink:href="#date" /> > </instanceOf> > > <subjectIdentity> > <subjectIndicatorRef xlink:href="/topics/2002January" /> > </subjectIdentity> > > <baseName id="x1kq61ajdo-9"> > <baseNameString>2002 January</baseNameString> > </baseName> > </topic> > > <topic id="date" /> ></topicMap> > > >------------------------------------------------------------------------- > >I you can see I have som duplicate topics in topics.xtm, but the compress >tool seem to handle these just fine. But my problem is the Topic Types. >They are changed into this: ><topic id="articles" /> ><topic id="organizations" /> etc... > >And therefor when I test my Topic Map in TM4L viewer I have five Topic Types >without names, and the original Topic Types are only empty Topics. > >Why does this happen? >What can I do to avoid this? > >I's be most grateful for any help. > >Regards > >Ketil Stadskleiv > > > > > > > > > > > > > > > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Tm4j-users mailing list >Tm4...@li... >https://lists.sourceforge.net/lists/listinfo/tm4j-users > > > > |
From: Conal T. <co...@pa...> - 2005-04-04 09:04:41
|
In your topic map file Topics.xtm there is a topic which is an instance of the class "articles": <topic id="id10.1041_l0001s-2002"> <instanceOf> <topicRef xlink:href="#articles" /> </instanceOf> <!-- ... --> </topic> The uri "#articles" points to a topic in the same map (i.e. in Topics.xtm) which has id = "articles". But there's no such topic in Topics.xtm, so TM4J creates the topic like this: <topic id="articles"/>. You need to refer to the "articles" topic in the ontological topic map "topicTypes.xtm". e.g. <topic id="id10.1041_l0001s-2002"> <instanceOf> <topicRef xlink:href="topicTypes.xtm#articles" /> </instanceOf> <!-- ... --> </topic> NB merging topic maps from 2 files is not the same as concatenating the 2 files. e.g. if you merge these 2 topic map files, the 2 topics do NOT merge: <!-- a.xtm --> <topicMap id="a"> <topic id="foo"/> </topicMap> <!-- b.xtm --> <topicMap id="b"> <topic id="foo"/> </topicMap> Hope that helps. C |
From: Ketil S. <st...@on...> - 2005-04-04 08:05:24
|
I have a Topic Map consisting of two files (so far). - One with different topics - One with all the topic-types referred to in the other file. If I cut and paste the content of these files into one it works just fine, but I need to do this automaticly using CMD. ------------------------------------------------ Topics.xtm: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE topicMap SYSTEM "http://www.topicmaps.org/xtm/1.0/xtm1.dtd"> <topicMap xmlns="http://www.topicmaps.org/xtm/1.0/" xmlns:xlink="http://www.w3.org/1999/xlink"> <!--Book--> <topic id="id2002IEEE_Transactions_on_Parallel_and_Distributed_Systems"> <instanceOf> <topicRef xlink:href="#books" /> </instanceOf> <subjectIdentity> <subjectIndicatorRef xlink:href="/topics/2002IEEE_Transactions_on_Parallel_and_Distributed_System s" /> </subjectIdentity> <baseName> <baseNameString>IEEE Transactions on Parallel and Distributed Systems 2002</baseNameString> </baseName> </topic> <!--Journal--> <topic id="Transactions_on_Parallel_and_Distributed_Systems131"> <instanceOf> <topicRef xlink:href="#journals" /> </instanceOf> <subjectIdentity> <subjectIndicatorRef xlink:href="/topics/Transactions_on_Parallel_and_Distributed_Systems131" /> </subjectIdentity> <baseName> <baseNameString>IEEE Transactions on Parallel and Distributed Systems January 2002</baseNameString> </baseName> </topic> <!--Publisher--> <topic id="idPublished_by_the_IEEE_Computer_Society"> <instanceOf> <topicRef xlink:href="#organizations" /> </instanceOf> <subjectIdentity> <subjectIndicatorRef xlink:href="/topics/Published_by_the_IEEE_Computer_Society" /> </subjectIdentity> <baseName> <baseNameString>Published_by_the_IEEE_Computer_Society</baseNameString> </baseName> </topic> <!--Article--> <topic id="id10.1041_l0001s-2002"> <instanceOf> <topicRef xlink:href="#articles" /> </instanceOf> <subjectIdentity> <subjectIndicatorRef xlink:href="/topics/IEEE_TRANSACTIONS_ON_PARALLEL_AND_DISTRIBUTED_SYSTEMS" /> </subjectIdentity> <baseName> <baseNameString>IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS (10.1041/l0001s-2002)</baseNameString> </baseName> </topic> <!--YearMonth--> <topic id="id2002january"> <instanceOf> <topicRef xlink:href="#date" /> </instanceOf> <subjectIdentity> <subjectIndicatorRef xlink:href="/topics/2002January" /> </subjectIdentity> <baseName> <baseNameString>2002 January</baseNameString> </baseName> </topic> <!--Article--> <topic id="id10.1041_l0004s-2001"> <instanceOf> <topicRef xlink:href="#articles" /> </instanceOf> <subjectIdentity> <subjectIndicatorRef xlink:href="/topics/IEEE_TRANSACTIONS_ON_PARALLEL_AND_DISTIBUTED_SYSTEMS" /> </subjectIdentity> <baseName> <baseNameString>IEEE TRANSACTIONS ON PARALLEL AND DISTIBUTED SYSTEMS (10.1041/l0004s-2001)</baseNameString> </baseName> </topic> <!--Year--> <topic id="id2002"> <instanceOf> <topicRef xlink:href="#date" /> </instanceOf> <subjectIdentity> <subjectIndicatorRef xlink:href="/topics/2002" /> </subjectIdentity> <baseName> <baseNameString>2002</baseNameString> </baseName> </topic> <!--Year--> <topic id="id2002"> <instanceOf> <topicRef xlink:href="#date" /> </instanceOf> <subjectIdentity> <subjectIndicatorRef xlink:href="/topics/2002" /> </subjectIdentity> <baseName> <baseNameString>2002</baseNameString> </baseName> </topic> </topicMap> ------------------------------------------------ topicTypes.xtm: <?xml version="1.0" encoding="UTF-8"?> <topicMap xmlns="http://www.topicmaps.org/xtm/1.0/" xmlns:xlink="http://www.w3.org/1999/xlink"> <!--Topic Types--> <topic id="organizations"> <subjectIdentity> <subjectIndicatorRef xlink:href="/topicType/organizations" /> </subjectIdentity> <baseName> <baseNameString>Organization</baseNameString> </baseName> </topic> <topic id="books"> <subjectIdentity> <subjectIndicatorRef xlink:href="/topicType/books" /> </subjectIdentity> <baseName> <baseNameString>Books</baseNameString> </baseName> </topic> <topic id="journals"> <subjectIdentity> <subjectIndicatorRef xlink:href="/topicType/journals" /> </subjectIdentity> <baseName> <baseNameString>Journals</baseNameString> </baseName> </topic> <topic id="articles"> <subjectIdentity> <subjectIndicatorRef xlink:href="/topicType/articles" /> </subjectIdentity> <baseName> <baseNameString>Articles</baseNameString> </baseName> </topic> <topic id="date"> <subjectIdentity> <subjectIndicatorRef xlink:href="/topicType/date" /> </subjectIdentity> <baseName> <baseNameString>Date</baseNameString> </baseName> </topic> <topic id="person"> <subjectIdentity> <subjectIndicatorRef xlink:href="/topicType/person" /> </subjectIdentity> <baseName> <baseNameString>Person</baseNameString> </baseName> </topic> </topicMap> -------------------------------------------------- I use the command line tool in TM4J: compress -o testMerge.xtm Topics.xtm topicTypes.xtm And the result is this: ---------------------------------------- testMerge.xtm: <?xml version="1.0" encoding="UTF-8"?> <topicMap id="x1kq61aj4o-0" xml:base="file:/home/others/homer/groups/i/it3803gr3/result/topicTest.xtm" xmlns="http://www.topicmaps.org/xtm/1.0/" xmlns:xlink="http://www.w3.org/1999/xlink"> <topic id="x1kq61ajdo-13"> <subjectIdentity> <subjectIndicatorRef xlink:href="/topicType/articles" /> </subjectIdentity> <baseName id="x1kq61ajdo-14"> <baseNameString>Articles</baseNameString> </baseName> </topic> <topic id="id2002"> <instanceOf> <topicRef xlink:href="#date" /> </instanceOf> <subjectIdentity> <subjectIndicatorRef xlink:href="/topics/2002" /> </subjectIdentity> <baseName id="x1kq61ajdo-b"> <baseNameString>2002</baseNameString> </baseName> </topic> <topic id="id10.1041_l0001s-2002"> <instanceOf> <topicRef xlink:href="#articles" /> </instanceOf> <subjectIdentity> <subjectIndicatorRef xlink:href="/topics/IEEE_TRANSACTIONS_ON_PARALLEL_AND_DISTRIBUTED_SYSTEMS" /> </subjectIdentity> <baseName id="x1kq61ajdo-7"> <baseNameString>IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS (10.1041/l0001s-2002)</baseNameString> </baseName> </topic> <topic id="id10.1041_l0004s-2001"> <instanceOf> <topicRef xlink:href="#articles" /> </instanceOf> <subjectIdentity> <subjectIndicatorRef xlink:href="/topics/IEEE_TRANSACTIONS_ON_PARALLEL_AND_DISTIBUTED_SYSTEMS" /> </subjectIdentity> <baseName id="x1kq61ajdo-a"> <baseNameString>IEEE TRANSACTIONS ON PARALLEL AND DISTIBUTED SYSTEMS (10.1041/l0004s-2001)</baseNameString> </baseName> </topic> <topic id="journals" /> <topic id="id2002IEEE_Transactions_on_Parallel_and_Distributed_Systems"> <instanceOf> <topicRef xlink:href="#books" /> </instanceOf> <subjectIdentity> <subjectIndicatorRef xlink:href="/topics/2002IEEE_Transactions_on_Parallel_and_Distributed_System s" /> </subjectIdentity> <baseName id="x1kq61ajdo-1"> <baseNameString>IEEE Transactions on Parallel and Distributed Systems 2002</baseNameString> </baseName> </topic> <topic id="x1kq61ajdo-11"> <subjectIdentity> <subjectIndicatorRef xlink:href="/topicType/journals" /> </subjectIdentity> <baseName id="x1kq61ajdo-12"> <baseNameString>Journals</baseNameString> </baseName> </topic> <topic id="books" /> <topic id="x1kq61ajdo-f"> <subjectIdentity> <subjectIndicatorRef xlink:href="/topicType/books" /> </subjectIdentity> <baseName id="x1kq61ajdo-10"> <baseNameString>Books</baseNameString> </baseName> </topic> <topic id="Transactions_on_Parallel_and_Distributed_Systems131"> <instanceOf> <topicRef xlink:href="#journals" /> </instanceOf> <subjectIdentity> <subjectIndicatorRef xlink:href="/topics/Transactions_on_Parallel_and_Distributed_Systems131" /> </subjectIdentity> <baseName id="x1kq61ajdo-3"> <baseNameString>IEEE Transactions on Parallel and Distributed Systems January 2002</baseNameString> </baseName> </topic> <topic id="x1kq61ajdo-15"> <subjectIdentity> <subjectIndicatorRef xlink:href="/topicType/date" /> </subjectIdentity> <baseName id="x1kq61ajdo-16"> <baseNameString>Date</baseNameString> </baseName> </topic> <topic id="articles" /> <topic id="organizations" /> <topic id="idPublished_by_the_IEEE_Computer_Society"> <instanceOf> <topicRef xlink:href="#organizations" /> </instanceOf> <subjectIdentity> <subjectIndicatorRef xlink:href="/topics/Published_by_the_IEEE_Computer_Society" /> </subjectIdentity> <baseName id="x1kq61ajdo-5"> <baseNameString>Published_by_the_IEEE_Computer_Society</baseNameString> </baseName> </topic> <topic id="x1kq61ajdo-d"> <subjectIdentity> <subjectIndicatorRef xlink:href="/topicType/organizations" /> </subjectIdentity> <baseName id="x1kq61ajdo-e"> <baseNameString>Organization</baseNameString> </baseName> </topic> <topic id="person"> <subjectIdentity> <subjectIndicatorRef xlink:href="/topicType/person" /> </subjectIdentity> <baseName id="x1kq61ajdo-17"> <baseNameString>Person</baseNameString> </baseName> </topic> <topic id="id2002january"> <instanceOf> <topicRef xlink:href="#date" /> </instanceOf> <subjectIdentity> <subjectIndicatorRef xlink:href="/topics/2002January" /> </subjectIdentity> <baseName id="x1kq61ajdo-9"> <baseNameString>2002 January</baseNameString> </baseName> </topic> <topic id="date" /> </topicMap> ------------------------------------------------------------------------- I you can see I have som duplicate topics in topics.xtm, but the compress tool seem to handle these just fine. But my problem is the Topic Types. They are changed into this: <topic id="articles" /> <topic id="organizations" /> etc... And therefor when I test my Topic Map in TM4L viewer I have five Topic Types without names, and the original Topic Types are only empty Topics. Why does this happen? What can I do to avoid this? I's be most grateful for any help. Regards Ketil Stadskleiv |
From: Richard G. <ric...@ya...> - 2005-03-16 16:32:37
|
Thanks, Lars. I've haven't done anything with Python before, but I''ve donloaded the script and I'll check it out. Cheers, Richard. --- Lars Heuer <he...@se...> wrote: > Hi Richard, > > Last comment. Promised. :) Next time I'll put all information in one > e-mail. ;) > > [...] > > I'm starting to look at TMAPI, and trying to rework some of my > > TM4J programs using the TM4J TMAPI > > implementation.One thing I use quite a lot with TM4J is assigning topic and and assoication > ID's > [...] > > If you want to convert your application semi automatical, you may be > interested in a little Python script you can find here: > http://cvs.sourceforge.net/viewcvs.py/tmapi-utils/tmapi-utils/utils/ > > I used it to translate the tologx package to TMAPI. Maybe you can > adapt it. > If you find more terms that may be useful for translation from TM4J > API to TMAPI please send me comment. :) > > Best regards, > Lars > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users > Send instant messages to your online friends http://uk.messenger.yahoo.com |
From: Lars H. <he...@se...> - 2005-03-16 12:44:40
|
Hi Richard, [...] > and it works in the TM4J TMAPI implementation, although it I'm > getting problems if I try it in the > XTM4XMLDB implementation, but I'll post the details of that on the XTM4XMLDB list. The XTM4XMLDB impl. is based on tinyTiM and tinyTiM has not implemented Locator.resolveRelative(String). But Stefan can say more on this topic. :) Best regards, Lars -- http://semagia.com |
From: Richard G. <ric...@ya...> - 2005-03-16 10:58:37
|
Hi Lars, Thanks for all the tips. I tried the Locator sourceLoc = tm.getBaseLocator().resolveRelative("#" + myId); tmObject.addSourceLocator(sourceLoc); Locator myLoc = tm.getBaseLocator().resolveRelative("#" + myId); TopicMapObjectsIndex.getTopicMapObjectBySourceLocator(myLoc); and it works in the TM4J TMAPI implementation, although it I'm getting problems if I try it in the XTM4XMLDB implementation, but I'll post the details of that on the XTM4XMLDB list. Cheers, Richard. --- Lars Heuer <he...@se...> wrote: > Hi, > > Stefan's path goes in the right direction, just an additional comment. > > > Just call TopicMapObject.addSourceLocator(baselocator+"#"+id) > > Should be: > Locator sourceLoc = tm.getBaseLocator().resolveRelative("#" + myId); > tmObject.addSourceLocator(sourceLoc); > > Now you can fetch the TopicMapObject via the > Locator myLoc = tm.getBaseLocator().resolveRelative("#" + myId); > TopicMapObjectsIndex.getTopicMapObjectBySourceLocator(myLoc); > > If you want to look up objects by their id you may remember them via a > HashMap for example. > > Map map = new HashMap(); > map.put("written-by", assoc.getObjectId()); > [...] > > Association written_by = tm.getObjectById(map.get("written-by")); > > Regarding the question if we (TMAPI.org) plan to support factory > methods with an additional id argument: No, not planned. > > > When it comes to serialisation the xtm serialiser will check if the > > sourcelocator starts with the baselocator address. If thats the case, > > your id is used. > > This behavior may be given, but is not something TMAPI or a standard > forces. Beside that a TopicMapObject may have more than one source > locator that starts with the base locator reference. The concrete id > may be choosen randomly from that set of source locators. > > Best regards, > Lars > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users > Send instant messages to your online friends http://uk.messenger.yahoo.com |
From: Lars H. <he...@se...> - 2005-03-14 13:44:47
|
Hi Richard, Last comment. Promised. :) Next time I'll put all information in one e-mail. ;) [...] > I'm starting to look at TMAPI, and trying to rework some of my > TM4J programs using the TM4J TMAPI > implementation.One thing I use quite a lot with TM4J is assigning topic and and assoication ID's [...] If you want to convert your application semi automatical, you may be interested in a little Python script you can find here: http://cvs.sourceforge.net/viewcvs.py/tmapi-utils/tmapi-utils/utils/ I used it to translate the tologx package to TMAPI. Maybe you can adapt it. If you find more terms that may be useful for translation from TM4J API to TMAPI please send me comment. :) Best regards, Lars |