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: Christoph F. <cf...@fo...> - 2004-09-15 07:28:58
|
Hi Vidar Am Di, den 14.09.2004 schrieb Vidar Gundersen um 19:55: > ===== Opprinnelig melding fra Christoph Froehlich | Tue, 14 Sep 2004: > > If you are sure, would you mind to send me one the maps that tmnav > > wasn't able to read? > > ===== Original message from SourceForge net | Tue, 14 Sep 2004: > > It seems to me that tm4j currently does not support the > > # (line) comments: > > The first three lines of the offending map: > > @"utf-8" > > #TOPICMAP jills-tm > > #INCLUDE "dc.ltmm" > > i guess # are not line comments, but processing directives: > http://www.ontopia.net/download/ltm.html#N227 > Ah, sorry, I haven't read the specs (carefully). Nevertheless it seems to me, that tm4j does not implement them. I think we should mention this in the docs. bye c > > kind regards, > Vidar Gundersen -- Christoph Froehlich <cf...@fo...> |
From: <ric...@ya...> - 2004-09-14 12:54:54
|
Thanks, Kal. That was exactly what I wanted. I'm not quite sure how I missed seeing that method myself. Cheers, Richard. --- Kal Ahmed <ka...@te...> wrote: > Hi Richard > > The method you want is Topic.setSubject(Locator). > > See http://tm4j.org/org.tm4j.topicmap.Topic.setSubject_Locator_.html > > Cheers, > > Kal > > On Mon, 2004-09-13 at 16:05, Richard Gregory wrote: > > Hi All, > > > > I've just been reading an article by Steve Pepper [1] on how topic maps have two ways of > assigning > > subject identity (and how this could be applied to RDF), to distinguish addressable and > > non-addressable subjects. Addressable subjects can use <resourceRef>: > > > > <subjectIdentity> > > <resourceRef/> > > </subjectIdentity> > > > > and to distinguish, non-addressable subjects can use <subjectIndicatorRef> top refer to a PSI > > > > <subjectIdentity> > > <subjectIndicatorRef/> > > </subjectIdentity> > > > > The only method I have found in tm4j is topic.addSubjectIndicator() which add a subject > indicator > > to a topic with: > > > > <subjectIdentity> > > <subjectIndicatorRef/> > > </subjectIdentity> > > > > Is there any way, with tm4j, to create? > > > > <subjectIdentity> > > <resourceRef/> > > </subjectIdentity> > > > > Thanks, > > > > Richard > > > > 1 http://www.ontopia.net/topicmaps/materials/identitycrisis.html > > > > > > > > > > > > ___________________________________________________________ALL-NEW Yahoo! Messenger - all new > features - even more fun! http://uk.messenger.yahoo.com > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > > Project Admins to receive an Apple iPod Mini FREE for your judgement on > > who ports your project to Linux PPC the best. Sponsored by IBM. > > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > > _______________________________________________ > > Tm4j-users mailing list > > Tm4...@li... > > https://lists.sourceforge.net/lists/listinfo/tm4j-users > -- > Kal Ahmed <ka...@te...> > techquila > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users > ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com |
From: Kal A. <ka...@te...> - 2004-09-13 17:13:26
|
Hi Richard The method you want is Topic.setSubject(Locator). See http://tm4j.org/org.tm4j.topicmap.Topic.setSubject_Locator_.html Cheers, Kal On Mon, 2004-09-13 at 16:05, Richard Gregory wrote: > Hi All, > > I've just been reading an article by Steve Pepper [1] on how topic maps have two ways of assigning > subject identity (and how this could be applied to RDF), to distinguish addressable and > non-addressable subjects. Addressable subjects can use <resourceRef>: > > <subjectIdentity> > <resourceRef/> > </subjectIdentity> > > and to distinguish, non-addressable subjects can use <subjectIndicatorRef> top refer to a PSI > > <subjectIdentity> > <subjectIndicatorRef/> > </subjectIdentity> > > The only method I have found in tm4j is topic.addSubjectIndicator() which add a subject indicator > to a topic with: > > <subjectIdentity> > <subjectIndicatorRef/> > </subjectIdentity> > > Is there any way, with tm4j, to create? > > <subjectIdentity> > <resourceRef/> > </subjectIdentity> > > Thanks, > > Richard > > 1 http://www.ontopia.net/topicmaps/materials/identitycrisis.html > > > > > > ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users -- Kal Ahmed <ka...@te...> techquila |
From: <ric...@ya...> - 2004-09-13 15:07:08
|
Hi All, I've just been reading an article by Steve Pepper [1] on how topic maps have two ways of assigning subject identity (and how this could be applied to RDF), to distinguish addressable and non-addressable subjects. Addressable subjects can use <resourceRef>: <subjectIdentity> <resourceRef/> </subjectIdentity> and to distinguish, non-addressable subjects can use <subjectIndicatorRef> top refer to a PSI <subjectIdentity> <subjectIndicatorRef/> </subjectIdentity> The only method I have found in tm4j is topic.addSubjectIndicator() which add a subject indicator to a topic with: <subjectIdentity> <subjectIndicatorRef/> </subjectIdentity> Is there any way, with tm4j, to create? <subjectIdentity> <resourceRef/> </subjectIdentity> Thanks, Richard 1 http://www.ontopia.net/topicmaps/materials/identitycrisis.html ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com |
From: Conal T. <co...@pa...> - 2004-09-13 06:59:26
|
> > But ... it took a long time (30 minutes or so) to open TMNav and > > display the map, so I assume this is the same performance problem I > > had when trying to export from Hibernate to XTM using a > > TopicMapWalker. I'm going to have to look into this problem further > > :-( > > > Just curious. How large is your map? (Kilobytes of the xtm file, count > of topics, associations, occurrences) It's grown a bit today, but it's roughly 900k bytes. 3000 topics, most with 1 name, about 100 associations (or about 3000 if you count "instanceOf" associations), and about 20 occurrences. Very soon it will be enlarged to > 10k topics and probably 20k associations. |
From: Christoph F. <cf...@fo...> - 2004-09-13 04:34:14
|
Am Mo, den 13.09.2004 schrieb Conal Tuohy um 1:52: > Thanks Christoph. I've downloaded and run the new version. I have > configured it to recognise my Hibernate/MySQL provider. It works! > fine > But ... it took a long time (30 minutes or so) to open TMNav and > display the map, so I assume this is the same performance problem I > had when trying to export from Hibernate to XTM using a > TopicMapWalker. I'm going to have to look into this problem further > :-( > Just curious. How large is your map? (Kilobytes of the xtm file, count of topics, associations, occurrences) > I still have one question though: at the bottom left of the TMNav > window, in the status bar area, there are two fluctuating figures: > "13548KB / 57224KB" - what does this imply? Do they represent memory > in use/available? > Almost. It indicates roughly the amount of *free* and *total* memory. bye c > Con > > > -----Original Message----- > > From: Christoph Froehlich [mailto:cf...@fo...] > > Sent: Friday, 10 September 2004 10:45 p.m. > > To: Conal Tuohy > > Cc: tm4...@li...; Tobias Hofmann > > Subject: Re: [TM4J-users] Configuring TMNav to load TM from > hibernate > > > > > > Hi Conal, hi Tobi > > > > I found the bug, removed it, and made a new release. > > TMNav 0.2.9pre1. It's in the tmnav-development branch.[1] > > > > > > > > The format of some of the entries in the config files did change in > > 0.2.9. Furthermore I reorganized the package structure, which > > means that > > the renderes can't be found under there former classnames. > > > > To work with 0.2.9, please do the following: > > - rename your .tmnav-directory > > - start 0.2.9. once. TMNav will create new default config files in > the > > .tmnav directory. (It might be a good idea to supply the -f option > for > > the first startup. -f resets all settings from previous sessions, > but > > I'm not sure if it is really necessary) > > - quit tmnav. > > - add your changes to the new config files (the syntax for > > the provider > > element did not change. You should be able to just copy it.) > > - restart 0.2.9 > > > > > > I hope this version will do it for you > > > > bye > > c > > > > > > [1] I made the mistake to upload a false binary version, and I'm not > > allowed to overwrite it. Instead I have to wait 24 hours until it is > > purged from the upload server. This means that I will add the binary > > tomorrow to the release. > > > > > > > > > > > > Am Fr, den 10.09.2004 schrieb Conal Tuohy um 8:10: > > > I have configured TMNav to add the hibernate provider. WHen > > I go to the "manage providers" dialog I can see the Hibernate > > provider, and when I select it I can see the locator of my > > topic map. But how do I load this topic map? If I type this > > (http) locator into the Load dialog box then TMNav tries to > > load the topic map via http. But my map is already inside > > hibernate, and I just want to visualise it. What am I doing wrong? > > > > > > Cheers > > > > > > Con > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > > > Project Admins to receive an Apple iPod Mini FREE for your > > judgement on > > > who ports your project to Linux PPC the best. Sponsored by IBM. > > > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > > > _______________________________________________ > > > Tm4j-users mailing list > > > Tm4...@li... > > > https://lists.sourceforge.net/lists/listinfo/tm4j-users > > -- > > Christoph Froehlich <cf...@fo...> > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement > on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users -- Christoph Froehlich <cf...@fo...> |
From: Conal T. <Con...@vu...> - 2004-09-12 23:55:10
|
Thanks Christoph. I've downloaded and run the new version. I have = configured it to recognise my Hibernate/MySQL provider. It works! But ... it took a long time (30 minutes or so) to open TMNav and display = the map, so I assume this is the same performance problem I had when = trying to export from Hibernate to XTM using a TopicMapWalker. I'm going = to have to look into this problem further :-( I still have one question though: at the bottom left of the TMNav = window, in the status bar area, there are two fluctuating figures: = "13548KB / 57224KB" - what does this imply? Do they represent memory in = use/available? Con > -----Original Message----- > From: Christoph Froehlich [mailto:cf...@fo...] > Sent: Friday, 10 September 2004 10:45 p.m. > To: Conal Tuohy > Cc: tm4...@li...; Tobias Hofmann > Subject: Re: [TM4J-users] Configuring TMNav to load TM from hibernate >=20 >=20 > Hi Conal, hi Tobi >=20 > I found the bug, removed it, and made a new release.=20 > TMNav 0.2.9pre1. It's in the tmnav-development branch.[1] >=20 >=20 >=20 > The format of some of the entries in the config files did change in > 0.2.9. Furthermore I reorganized the package structure, which=20 > means that > the renderes can't be found under there former classnames. >=20 > To work with 0.2.9, please do the following: > - rename your .tmnav-directory > - start 0.2.9. once. TMNav will create new default config files in the > .tmnav directory. (It might be a good idea to supply the -f option for > the first startup. -f resets all settings from previous sessions, but > I'm not sure if it is really necessary)=20 > - quit tmnav. > - add your changes to the new config files (the syntax for=20 > the provider > element did not change. You should be able to just copy it.) > - restart 0.2.9 >=20 >=20 > I hope this version will do it for you >=20 > bye > c >=20 >=20 > [1] I made the mistake to upload a false binary version, and I'm not > allowed to overwrite it. Instead I have to wait 24 hours until it is > purged from the upload server. This means that I will add the binary > tomorrow to the release. >=20 >=20 > =20 >=20 >=20 > Am Fr, den 10.09.2004 schrieb Conal Tuohy um 8:10: > > I have configured TMNav to add the hibernate provider. WHen=20 > I go to the "manage providers" dialog I can see the Hibernate=20 > provider, and when I select it I can see the locator of my=20 > topic map. But how do I load this topic map? If I type this=20 > (http) locator into the Load dialog box then TMNav tries to=20 > load the topic map via http. But my map is already inside=20 > hibernate, and I just want to visualise it. What am I doing wrong? > >=20 > > Cheers > >=20 > > Con > >=20 > >=20 > > ------------------------------------------------------- > > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > > Project Admins to receive an Apple iPod Mini FREE for your=20 > judgement on > > who ports your project to Linux PPC the best. Sponsored by IBM.=20 > > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > > _______________________________________________ > > Tm4j-users mailing list > > Tm4...@li... > > https://lists.sourceforge.net/lists/listinfo/tm4j-users > --=20 > Christoph Froehlich <cf...@fo...> >=20 >=20 |
From: Conal T. <Con...@vu...> - 2004-09-12 22:57:26
|
Thanks Kal! I opened a transaction before walking my topic map, but sadly it hasn't = speeded it up at all :-( Here's the code I used: /* get the topic map from the topic map manager */ var TopicMapManager =3D = cocoon.getComponent("org.tm4j.tm4web.cocoon.TopicMapManagerComponent"); var map =3D TopicMapManager.getTopicMap("nzetc"); cocoon.releaseComponent(TopicMapManager); /* write the topic map to a file */ var walker =3D new Packages.org.tm4j.topicmap.utils.TopicMapWalker(); var writer =3D new Packages.org.tm4j.topicmap.utils.XTMWriter(); var file =3D new java.io.File(export_filename); var os =3D new java.io.FileOutputStream(file); var of =3D new Packages.org.apache.xml.serialize.OutputFormat(); of.setEncoding("UTF-8"); of.setIndenting(true); of.setIndent(2); var serializer =3D new = Packages.org.apache.xml.serialize.XMLSerializer(os, of); walker.setHandler(writer); writer.setContentHandler(serializer); =09 var txn =3D map.getProvider().openTransaction(); try { walker.walk(map); } finally { txn.abort(); } =09 /* walker.walk(map); */ cocoon.sendPage("export/nzetc.xtm"); Cheers Con > My guess is that the walk is just doing to many transactions. If you > don't have an "outer" transaction wrapping that walk, then=20 > each call to > the API will result in a separate transaction against the database - > which amounts to quite a lot of transactions to walk the whole map. >=20 > What I would recommend you try is creating a transaction to=20 > wrap around > the walk. If a transaction is already in progress, then the TM4J > Hibernate code will use that txn instead of creating one. >=20 > The code would be something like this: >=20 > ProviderTransaction txn =3D provider.getTransaction(); > try { > walker.walk(); > } finally { > txn.abort(); > } |
From: George T. <geo...@fr...> - 2004-09-12 18:34:02
|
Hello, when I call PanckouckeContext.getAbstractorIDs (), I get only "compact", and "extended" what is the meaning of having registered the abstractors in the Panckoucke Context for the moment? Giorgos --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.745 / Virus Database: 497 - Release Date: 27/8/2004 ____________________________________________________________________ http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου. http://www.freemail.gr - free email service for the Greek-speaking. |
From: Christoph F. <cf...@fo...> - 2004-09-11 19:06:30
|
Today, I added the binary release of tmnav 0.2.9pre1 to the tm4j-download area [1] c [1]http://sourceforge.net/project/showfiles.php?group_id=27895 -- Christoph Froehlich <cf...@fo...> |
From: Christoph F. <cf...@fo...> - 2004-09-10 21:56:06
|
Hi Conal, this seems to be a bug in tmnav. Expected behavior is, that after opening the provider (which happens during startup) all topicmaps that are provided by this provider should be accessible automatically through the "loaded topicmaps panel". This works for me locally with postgres but you are the second who is reporting this problem with mysql. I'll check that. c Am Fr, den 10.09.2004 schrieb Conal Tuohy um 8:10: > I have configured TMNav to add the hibernate provider. WHen I go to > the "manage providers" dialog I can see the Hibernate provider, and > when I select it I can see the locator of my topic map. But how do I > load this topic map? If I type this (http) locator into the Load > dialog box then TMNav tries to load the topic map via http. But my map > is already inside hibernate, and I just want to visualise it. What am > I doing wrong? > > Cheers > > Con > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement > on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users -- Christoph Froehlich <cf...@fo...> |
From: Christoph F. <cf...@fo...> - 2004-09-10 10:51:20
|
Hi Conal, hi Tobi I found the bug, removed it, and made a new release. TMNav 0.2.9pre1. It's in the tmnav-development branch.[1] The format of some of the entries in the config files did change in 0.2.9. Furthermore I reorganized the package structure, which means that the renderes can't be found under there former classnames. To work with 0.2.9, please do the following: - rename your .tmnav-directory - start 0.2.9. once. TMNav will create new default config files in the .tmnav directory. (It might be a good idea to supply the -f option for the first startup. -f resets all settings from previous sessions, but I'm not sure if it is really necessary) - quit tmnav. - add your changes to the new config files (the syntax for the provider element did not change. You should be able to just copy it.) - restart 0.2.9 I hope this version will do it for you bye c [1] I made the mistake to upload a false binary version, and I'm not allowed to overwrite it. Instead I have to wait 24 hours until it is purged from the upload server. This means that I will add the binary tomorrow to the release. Am Fr, den 10.09.2004 schrieb Conal Tuohy um 8:10: > I have configured TMNav to add the hibernate provider. WHen I go to the "manage providers" dialog I can see the Hibernate provider, and when I select it I can see the locator of my topic map. But how do I load this topic map? If I type this (http) locator into the Load dialog box then TMNav tries to load the topic map via http. But my map is already inside hibernate, and I just want to visualise it. What am I doing wrong? > > Cheers > > Con > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users -- Christoph Froehlich <cf...@fo...> |
From: Kal A. <ka...@te...> - 2004-09-10 09:43:45
|
Hi Conal, My guess is that the walk is just doing to many transactions. If you don't have an "outer" transaction wrapping that walk, then each call to the API will result in a separate transaction against the database - which amounts to quite a lot of transactions to walk the whole map. What I would recommend you try is creating a transaction to wrap around the walk. If a transaction is already in progress, then the TM4J Hibernate code will use that txn instead of creating one. The code would be something like this: ProviderTransaction txn = provider.getTransaction(); try { walker.walk(); } finally { txn.abort(); } Hopefully that should give you a major increase in performance as it will reduce the number of transactions used and allow client-side caching done by Hibernate to be effective. Cheers, Kal On Fri, 2004-09-10 at 06:38, Conal Tuohy wrote: > I am developing an application which uses tm4j with Hibernate as the provider. > > The application is a website built with Cocoon. The topic map is harvested from a bunch of sources, and defines the information architecture of the site. Each page on the site represents a topic with all its associated topics and other characteristics. So each page requires querying for a few topics only. This works OK. > > My problem is that I also want to be able to visualise the entire map, to check my harvesting/merging/etc; to do this I've exported the entire map, and it takes about an hour (on a 2.6GHz P4 with 2GB RAM). This seems like a long time to export 838kb of XTM code containing about 2800 topics, but only a few dozen associations. Is this to be expected? Or is there something peculiar in this? The MySQL database is local, and the export is definitely processor-bound. About 97% of the processor time is used by Tomcat (which is the container in which tm4j is running), and the remainder is used by MySQL. > > Some people have reported very slow performance with IMPORTING into hibernate - I haven't noticed that. Certainly it takes only a minute or so to harvest all these topics (which includes transforming them from other XML formats into XTM) and insert them into tm4j. > > I see now that it's possible to configure TMNav to use the hibernate provider - so maybe I don't need to do this export at all. I don't know if this will speed up the visualisation - I'm certainly going to try that, but I'm still keen to hear if someone can tell me I'm doing something wrong - especially if it's something small and easy to fix :-) > > I'm appending the JavaScript code which does the export, calling Java classes to do the actual work. This code runs inside of Cocoon, as a "flowscript". > > Thanks > > Con > > > -- > Conal Tuohy > Senior Programmer > New Zealand Electronic Text Centre > www.nzetc.org > > JavaScript code: > > function export_map() { > /* this program exports the "nzetc" topicmap to an XTM file, and then calls a Cocoon pipeline to display that XTM file */ > > /* this file to export into */ > var export_filename = cocoon.parameters["filename"]; > > /* get the topic map from the topic map manager */ > var TopicMapManager = cocoon.getComponent("org.tm4j.tm4web.cocoon.TopicMapManagerComponent"); > var map = TopicMapManager.getTopicMap("nzetc"); > cocoon.releaseComponent(TopicMapManager); > > /* write the topic map to a file */ > var walker = new Packages.org.tm4j.topicmap.utils.TopicMapWalker(); > var writer = new Packages.org.tm4j.topicmap.utils.XTMWriter(); > var file = new java.io.File(export_filename); > var os = new java.io.FileOutputStream(file); > var of = new Packages.org.apache.xml.serialize.OutputFormat(); > of.setEncoding("UTF-8"); > of.setIndenting(true); > of.setIndent(2); > var serializer = new Packages.org.apache.xml.serialize.XMLSerializer(os, of); > walker.setHandler(writer); > writer.setContentHandler(serializer); > walker.walk(map); > cocoon.sendPage("export/nzetc.xtm"); > } > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users -- Kal Ahmed <ka...@te...> techquila |
From: Conal T. <Con...@vu...> - 2004-09-10 06:15:18
|
I have configured TMNav to add the hibernate provider. WHen I go to the = "manage providers" dialog I can see the Hibernate provider, and when I = select it I can see the locator of my topic map. But how do I load this = topic map? If I type this (http) locator into the Load dialog box then = TMNav tries to load the topic map via http. But my map is already inside = hibernate, and I just want to visualise it. What am I doing wrong? Cheers Con |
From: Conal T. <Con...@vu...> - 2004-09-10 06:15:02
|
I am developing an application which uses tm4j with Hibernate as the = provider.=20 The application is a website built with Cocoon. The topic map is = harvested from a bunch of sources, and defines the information = architecture of the site. Each page on the site represents a topic with = all its associated topics and other characteristics. So each page = requires querying for a few topics only. This works OK. My problem is that I also want to be able to visualise the entire map, = to check my harvesting/merging/etc; to do this I've exported the entire = map, and it takes about an hour (on a 2.6GHz P4 with 2GB RAM). This = seems like a long time to export 838kb of XTM code containing about 2800 = topics, but only a few dozen associations. Is this to be expected? Or is = there something peculiar in this? The MySQL database is local, and the = export is definitely processor-bound. About 97% of the processor time is = used by Tomcat (which is the container in which tm4j is running), and = the remainder is used by MySQL.=20 Some people have reported very slow performance with IMPORTING into = hibernate - I haven't noticed that. Certainly it takes only a minute or = so to harvest all these topics (which includes transforming them from = other XML formats into XTM) and insert them into tm4j. I see now that it's possible to configure TMNav to use the hibernate = provider - so maybe I don't need to do this export at all. I don't know = if this will speed up the visualisation - I'm certainly going to try = that, but I'm still keen to hear if someone can tell me I'm doing = something wrong - especially if it's something small and easy to fix :-) = I'm appending the JavaScript code which does the export, calling Java = classes to do the actual work. This code runs inside of Cocoon, as a = "flowscript". Thanks Con -- Conal Tuohy Senior Programmer New Zealand Electronic Text Centre www.nzetc.org JavaScript code: function export_map() { /* this program exports the "nzetc" topicmap to an XTM file, and then = calls a Cocoon pipeline to display that XTM file */=20 /* this file to export into */ var export_filename =3D cocoon.parameters["filename"]; =09 /* get the topic map from the topic map manager */ var TopicMapManager =3D = cocoon.getComponent("org.tm4j.tm4web.cocoon.TopicMapManagerComponent"); var map =3D TopicMapManager.getTopicMap("nzetc"); cocoon.releaseComponent(TopicMapManager); /* write the topic map to a file */ var walker =3D new Packages.org.tm4j.topicmap.utils.TopicMapWalker(); var writer =3D new Packages.org.tm4j.topicmap.utils.XTMWriter(); var file =3D new java.io.File(export_filename); var os =3D new java.io.FileOutputStream(file); var of =3D new Packages.org.apache.xml.serialize.OutputFormat(); of.setEncoding("UTF-8"); of.setIndenting(true); of.setIndent(2); var serializer =3D new = Packages.org.apache.xml.serialize.XMLSerializer(os, of); walker.setHandler(writer); writer.setContentHandler(serializer); walker.walk(map); cocoon.sendPage("export/nzetc.xtm"); } |
From: bernard <ei...@fr...> - 2004-09-02 12:08:56
|
Hi Harald,=20 Sounds great ! I hope such things are possible Unfortunately I'm not a programmer and I can't help you to implement = such features. If you need more precision about those ideas ... ... Stay in touch Regards, Bernard | -----Message d'origine----- | De : harald kuhn [mailto:sc...@ma...]=20 | Envoy=E9 : jeudi 2 septembre 2004 13:44 | =C0 : Christoph Froehlich | Cc : vt...@ne...; tm4...@li... | Objet : Re: [TM4J-users] Some ideas for *cross* TM=20 | navigation with TM Nav |=20 | Hi Christoph, |=20 | just one comment. |=20 | >Hi Bernard | > | >that sounds pretty interesting and I think it's closely=20 | related to the=20 | >task that Bret is facing currently: How could the=20 | visualisation of a=20 | >given TopicMapObject or a bunch of topicmap objects be=20 | more easily=20 | >customized. | > | >I think this alludes to several topics: | > | >1. Panckouckes abstraction process should be conceptually=20 | divided into=20 | >at least two chunks: | >The first (S1) is to "extract" the relevant=20 | TopicMapObjects from the=20 | >Topicmap. | >=20 | >The second (S2) is to transform the extracted Objects=20 | into a Model that=20 | >is suitable to be displayed by renderers. | >=20 | >Both stages should be customizable. A TologAbstractor for=20 | example may=20 | >always perform a TologQuery to extract objects (S1), but=20 | how they are=20 | >transformed into a model could be up to a ModelBuilder=20 | that is passed=20 | >into the abstraction process. | > | > | > | >2. The renderers must be openend for customisation as=20 | well. Some simple=20 | >solution would assign icons to Gestalten via a HashMap=20 | and pass this=20 | >map into the Graph-Renderers. Just for the beginning | > =20 | > | We already have something like that, the Representations=20 | and RepresentationRegistry which were part of the=20 | TopicMapViewer (the web based panckoucke application) ,=20 | the only thing we need to do is implement it in the other=20 | Renderers. I will have a Look at this as soon as i find=20 | some time (expect somebody else volunteers ? :) ). |=20 | > | >3. TMNav needs elements (both conceptual and gui) to=20 | assemble a bunch of | >settings that influence the abstraction and the rendering.=20 | > | >3a. Theese 'assemblies' should either be applied=20 | automatically to an | >abstraction demand or they should be chooseable by the user. | > | >3b. In order to apply them automatically we need some general | >rule-mechanics that enable us to express directives like=20 | 'a topic of | >type X' or 'all topics that has an occurrence of type Y'.=20 | Maybe we could | >use a tolog query here... | > | > | >Sounds really interesting and it would be certainly great=20 | to have it.=20 | >But we have to concretise it a bit more... | > | >Anayway, thanks for the suggestion. If you already=20 | thought further, I | >would be glad to hear it | > | > | >Bye | >c | > | > | > | > | > | > | > | > | >Am Mo, den 30.08.2004 schrieb vt...@ne... um 11:04: | > =20 | > | >>Hello, | >> | >>Fist of all, I've just download the latest version of TM Nav : | >>Whaooooo !=20 | >>Real improvement against the 0.2.5 one : I'm really=20 | impress by the new | >>"abstracting" and "rendering" features, which are really=20 | very useful. | >> | >>I mail you to know if you plan to include some *cross*=20 | TM navigation | >>features in complement to the *direct* TM navigation=20 | feature you've | >>implemented in the latest release ... | >> | >>I mean :=20 | >> by *direct* TM navigation : navigation allowing you to know | >>*everything* about *a unique topic* (id, all name(s),=20 | all PSI(s), all | >>occurrence(s) and all r=F4le(s) player, ...) | >> by *cross* TM navigation : navigation allowing you to=20 | know *only few | >>things*, but about *all the topics of one given topic type* (some | >>name, some occurrence(s) and some r=F4le(s) player), ...) | >> | >> | >>Imagine something which allow you to define sorts of extraction | >>"patterns" : | >> | >>One "pattern" define : | >> - 1 : a given topic type to begin the "cross TM navigation" | >> - 2 : the occurrence you want to see via the definition=20 | of "given | >>occurrence types [of the given topic type]) | >> - 3 : the topics you want to see via the=20 | definition of "given role | >>types involved in a given association type where the=20 | given topic play | >>a given role type" | >> - and for each topic define again point 2 and point 3 | >> - and so on ... | >> | >>For example : I want to "extract" :=20 | >> - all topics of the *people* topic type=20 | >> - with *e-mail* "occurrence type"=20 | >> - with *telephon* "occurrence type"=20 | >> - ... And perhaps other kind of "occurrence type"=20 | >> - and all the topic of "company type" playing the role=20 | of "employer" | >>in a *employ* "association type" where the given people play a | >>*employe* "role type" | >> - with *home page* occurrence type"=20 | >> - ... And perhaps other kind of "occurrence type"=20 | >> - and for each *company* : all the=20 | topic of "company type" playing | >>the role of "partner" ... | >> - and for each *company* : all the=20 | topic of "company type" playing | >>the role of "subsidiary" ... | >> - ... | >> | >> The idea is to be able to use patterns to navigate TMs=20 | (with sort | >>pr=E9-define differents perspectives) ... For one given=20 | topic type you | >>have one or more pattern defined, if there is only one=20 | pattern you | >>take this pattern otherwise you give the choice to the user (by | >>contextual menu for exemple) ... And when the "view" is=20 | extract you | >>can apply to the extracted "output" topics the available=20 | pattern(s) | >>according to them type by the same processus I describe for the | >>"input" topic type ... | >> | >>A pattern should be valid for a set of TMs conform to a given | >>ontology. | >>I think if the topic map is driven by a ontology it is=20 | more powerful, | >>because topic type are declare "by intention" in the=20 | ontology and not | >>"by extention" in the KB ... And in this case you can=20 | associate a set | >>of "pattern" to a given ontology and use it for each map=20 | conform to | >>this ontology ... But it's not mandatory to have the feature I | >>describe above | >> | >>Hope I was clear in my explanations | >> | >>Regards and thank a lot for such wonderful tool | >> | >>Bernard | >> | >>------------------------------------------------------------- | >>NetCourrier, votre bureau virtuel sur Internet : Mail,=20 | Agenda, Clubs, | >>Toolbar... | >>Web/Wap : www.netcourrier.com | >>T=E9l=E9phone/Fax : 08 92 69 00 21 (0,34 TTC/min) | >>Minitel: 3615 NETCOURRIER (0,16 TTC/min) | >> | >> | >> | >>------------------------------------------------------- | >>This SF.Net email is sponsored by BEA Weblogic Workshop | >>FREE Java Enterprise J2EE developer tools! | >>Get your free copy of BEA WebLogic Workshop 8.1 today. | >>http://ads.osdn.com/?ad_idP47&alloc_id=10808&op=3Dclick | >>_______________________________________________ | >>Tm4j-users mailing list | >>Tm4...@li... | >>https://lists.sourceforge.net/lists/listinfo/tm4j-users | >> =20 | >> |=20 |=20 |=20 |
From: harald k. <sc...@ma...> - 2004-09-02 11:43:58
|
Hi Christoph, just one comment. >Hi Bernard > >that sounds pretty interesting and I think it's closely related to the >task that Bret is facing currently: How could the visualisation of a >given TopicMapObject or a bunch of topicmap objects be more easily >customized. > >I think this alludes to several topics: > >1. Panckouckes abstraction process should be conceptually divided into >at least two chunks:=20 >The first (S1) is to "extract" the relevant TopicMapObjects from the >Topicmap.=20 >=20 >The second (S2) is to transform the extracted Objects into a Model that >is suitable to be displayed by renderers. >=20 >Both stages should be customizable. A TologAbstractor for example may >always perform a TologQuery to extract objects (S1), but how they are >transformed into a model could be up to a ModelBuilder that is passed >into the abstraction process.=20 > > > >2. The renderers must be openend for customisation as well. Some simple >solution would assign icons to Gestalten via a HashMap and pass this map >into the Graph-Renderers. Just for the beginning > =20 > We already have something like that, the Representations and=20 RepresentationRegistry which were part of the TopicMapViewer (the web based panckoucke application) , the only thing we need to do is=20 implement it in the other Renderers. I will have a Look at this as soon a= s i find some time (expect somebody else volunteers ? :) ). > >3. TMNav needs elements (both conceptual and gui) to assemble a bunch of >settings that influence the abstraction and the rendering.=20 > >3a. Theese 'assemblies' should either be applied automatically to an >abstraction demand or they should be chooseable by the user. > >3b. In order to apply them automatically we need some general >rule-mechanics that enable us to express directives like 'a topic of >type X' or 'all topics that has an occurrence of type Y'. Maybe we could >use a tolog query here... > > >Sounds really interesting and it would be certainly great to have it.=20 >But we have to concretise it a bit more... > >Anayway, thanks for the suggestion. If you already thought further, I >would be glad to hear it > > >Bye >c > > > > > > > > >Am Mo, den 30.08.2004 schrieb vt...@ne... um 11:04: > =20 > >>Hello, >> >>Fist of all, I've just download the latest version of TM Nav : >>Whaooooo !=20 >>Real improvement against the 0.2.5 one : I'm really impress by the new >>"abstracting" and "rendering" features, which are really very useful. >> >>I mail you to know if you plan to include some *cross* TM navigation >>features in complement to the *direct* TM navigation feature you've >>implemented in the latest release ... >> >>I mean :=20 >> by *direct* TM navigation : navigation allowing you to know >>*everything* about *a unique topic* (id, all name(s), all PSI(s), all >>occurrence(s) and all r=F4le(s) player, ...) >> by *cross* TM navigation : navigation allowing you to know *only few >>things*, but about *all the topics of one given topic type* (some >>name, some occurrence(s) and some r=F4le(s) player), ...) >> >> >>Imagine something which allow you to define sorts of extraction >>"patterns" : >> >>One "pattern" define : >> - 1 : a given topic type to begin the "cross TM navigation" >> - 2 : the occurrence you want to see via the definition of "given >>occurrence types [of the given topic type]) >> - 3 : the topics you want to see via the definition of "given role >>types involved in a given association type where the given topic play >>a given role type" >> - and for each topic define again point 2 and point 3 >> - and so on ... >> >>For example : I want to "extract" :=20 >> - all topics of the *people* topic type=20 >> - with *e-mail* "occurrence type"=20 >> - with *telephon* "occurrence type"=20 >> - ... And perhaps other kind of "occurrence type"=20 >> - and all the topic of "company type" playing the role of "employer" >>in a *employ* "association type" where the given people play a >>*employe* "role type" >> - with *home page* occurrence type"=20 >> - ... And perhaps other kind of "occurrence type"=20 >> - and for each *company* : all the topic of "company type" playing >>the role of "partner" ... >> - and for each *company* : all the topic of "company type" playing >>the role of "subsidiary" ... >> - ... >> >> The idea is to be able to use patterns to navigate TMs (with sort >>pr=E9-define differents perspectives) ... For one given topic type you >>have one or more pattern defined, if there is only one pattern you >>take this pattern otherwise you give the choice to the user (by >>contextual menu for exemple) ... And when the "view" is extract you >>can apply to the extracted "output" topics the available pattern(s) >>according to them type by the same processus I describe for the >>"input" topic type ... >> >>A pattern should be valid for a set of TMs conform to a given >>ontology. >>I think if the topic map is driven by a ontology it is more powerful, >>because topic type are declare "by intention" in the ontology and not >>"by extention" in the KB ... And in this case you can associate a set >>of "pattern" to a given ontology and use it for each map conform to >>this ontology ... But it's not mandatory to have the feature I >>describe above >> >>Hope I was clear in my explanations >> >>Regards and thank a lot for such wonderful tool >> >>Bernard >> >>------------------------------------------------------------- >>NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, >>Toolbar... >>Web/Wap : www.netcourrier.com >>T=E9l=E9phone/Fax : 08 92 69 00 21 (0,34 TTC/min) >>Minitel: 3615 NETCOURRIER (0,16 TTC/min) >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by BEA Weblogic Workshop >>FREE Java Enterprise J2EE developer tools! >>Get your free copy of BEA WebLogic Workshop 8.1 today. >>http://ads.osdn.com/?ad_idP47&alloc_id=10808&op=3Dclick >>_______________________________________________ >>Tm4j-users mailing list >>Tm4...@li... >>https://lists.sourceforge.net/lists/listinfo/tm4j-users >> =20 >> |
From: Christoph F. <cf...@fo...> - 2004-09-02 10:22:15
|
Hi Bernard that sounds pretty interesting and I think it's closely related to the task that Bret is facing currently: How could the visualisation of a given TopicMapObject or a bunch of topicmap objects be more easily customized. I think this alludes to several topics: 1. Panckouckes abstraction process should be conceptually divided into at least two chunks:=20 The first (S1) is to "extract" the relevant TopicMapObjects from the Topicmap.=20 =20 The second (S2) is to transform the extracted Objects into a Model that is suitable to be displayed by renderers. =20 Both stages should be customizable. A TologAbstractor for example may always perform a TologQuery to extract objects (S1), but how they are transformed into a model could be up to a ModelBuilder that is passed into the abstraction process.=20 2. The renderers must be openend for customisation as well. Some simple solution would assign icons to Gestalten via a HashMap and pass this map into the Graph-Renderers. Just for the beginning 3. TMNav needs elements (both conceptual and gui) to assemble a bunch of settings that influence the abstraction and the rendering.=20 3a. Theese 'assemblies' should either be applied automatically to an abstraction demand or they should be chooseable by the user. 3b. In order to apply them automatically we need some general rule-mechanics that enable us to express directives like 'a topic of type X' or 'all topics that has an occurrence of type Y'. Maybe we could use a tolog query here... Sounds really interesting and it would be certainly great to have it.=20 But we have to concretise it a bit more... Anayway, thanks for the suggestion. If you already thought further, I would be glad to hear it Bye c Am Mo, den 30.08.2004 schrieb vt...@ne... um 11:04: > Hello, >=20 > Fist of all, I've just download the latest version of TM Nav : > Whaooooo !=20 > Real improvement against the 0.2.5 one : I'm really impress by the new > "abstracting" and "rendering" features, which are really very useful. >=20 > I mail you to know if you plan to include some *cross* TM navigation > features in complement to the *direct* TM navigation feature you've > implemented in the latest release ... >=20 > I mean :=20 > by *direct* TM navigation : navigation allowing you to know > *everything* about *a unique topic* (id, all name(s), all PSI(s), all > occurrence(s) and all r=F4le(s) player, ...) > by *cross* TM navigation : navigation allowing you to know *only few > things*, but about *all the topics of one given topic type* (some > name, some occurrence(s) and some r=F4le(s) player), ...) >=20 >=20 > Imagine something which allow you to define sorts of extraction > "patterns" : >=20 > One "pattern" define : > - 1 : a given topic type to begin the "cross TM navigation" > - 2 : the occurrence you want to see via the definition of "given > occurrence types [of the given topic type]) > - 3 : the topics you want to see via the definition of "given role > types involved in a given association type where the given topic play > a given role type" > - and for each topic define again point 2 and point 3 > - and so on ... >=20 > For example : I want to "extract" :=20 > - all topics of the *people* topic type=20 > - with *e-mail* "occurrence type"=20 > - with *telephon* "occurrence type"=20 > - ... And perhaps other kind of "occurrence type"=20 > - and all the topic of "company type" playing the role of "employer" > in a *employ* "association type" where the given people play a > *employe* "role type" > - with *home page* occurrence type"=20 > - ... And perhaps other kind of "occurrence type"=20 > - and for each *company* : all the topic of "company type" playing > the role of "partner" ... > - and for each *company* : all the topic of "company type" playing > the role of "subsidiary" ... > - ... >=20 > The idea is to be able to use patterns to navigate TMs (with sort > pr=E9-define differents perspectives) ... For one given topic type you > have one or more pattern defined, if there is only one pattern you > take this pattern otherwise you give the choice to the user (by > contextual menu for exemple) ... And when the "view" is extract you > can apply to the extracted "output" topics the available pattern(s) > according to them type by the same processus I describe for the > "input" topic type ... >=20 > A pattern should be valid for a set of TMs conform to a given > ontology. > I think if the topic map is driven by a ontology it is more powerful, > because topic type are declare "by intention" in the ontology and not > "by extention" in the KB ... And in this case you can associate a set > of "pattern" to a given ontology and use it for each map conform to > this ontology ... But it's not mandatory to have the feature I > describe above >=20 > Hope I was clear in my explanations >=20 > Regards and thank a lot for such wonderful tool >=20 > Bernard >=20 > ------------------------------------------------------------- > NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, > Toolbar... > Web/Wap : www.netcourrier.com > T=E9l=E9phone/Fax : 08 92 69 00 21 (0,34 TTC/min) > Minitel: 3615 NETCOURRIER (0,16 TTC/min) >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_idP47&alloc_id=10808&op=3Dclick > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users --=20 Christoph Froehlich <cf...@fo...> |
From: kal <ka...@te...> - 2004-08-31 08:00:10
|
Hi Stefan Ste...@sw... wrote: > Hi > > > > I have the following two questions using tolog: > > > > [1] > > I would like to define a topic like "status-of/has-status" or > "father/son", means with a slash in its name. Wouldn't it possible to > query an association which is a instance of such a topic? E.g. select > $A from father/son($A,$B) ? > > > > Is there a way to tell the parser that this slash is part of the name? > You should not be able to use a slash as part of the ID of a topic - the ID should match the production for an XML ID (which only allows letters, numbers and a small range of other characters). So that means that you cannot use the slash character in that way. You can use an underscore character, so father_son and status-of_has-status are allowed. Most of the time I choose a single name e.g. has-status or parent-of > > > [2] > > In test classes of tm4j-0.9.4 I found the following query: > > > > select $A from i\http://www.topicmaps.org/xtm/1.0/core.xtm#class-instance\ > > (shape:i\"http://www.topicmaps.org/xtm/1.0/core.xtm#class\", > > $A:i\"http://www.topicmaps.org/xtm/1.0/core.xtm#instance\") ? > > > > I think such a query works with local files as well. Which syntax I > have to use? Select $A from i\"file:///c:/myTM.xtm#test\"($A,$B) ? > > > > I got always the same error: TopicMapRuntimeException->Cannot find > topic with subject indiciator.. > > > > > The i"<uri>" means that the quoted uri is treated as a subject indicator to lookup the topic. If you have a topic with ID "test" in the file "myTM.xtm", then you can look it up by its *source locator* which requires you to use s"<uri>". For more on this, see the Ontopia tutorial for tolog (the section is file:///C:/kal/dev/oks-professional-2.0.3/doc/query/tutorial.html#sect-topic-ref). Cheers, Kal |
From: <Ste...@sw...> - 2004-08-31 07:22:44
|
Hi =20 I have the following two questions using tolog: =20 [1] I would like to define a topic like "status-of/has-status" or "father/son", means with a slash in its name. Wouldn't it possible to query an association which is a instance of such a topic? E.g. select $A from father/son($A,$B) ? =20 Is there a way to tell the parser that this slash is part of the name?=20 =20 [2] In test classes of tm4j-0.9.4 I found the following query: =20 select $A from i\http://www.topicmaps.org/xtm/1.0/core.xtm#class-instance\ (shape:i\"http://www.topicmaps.org/xtm/1.0/core.xtm#class\", $A:i\"http://www.topicmaps.org/xtm/1.0/core.xtm#instance\") ? =20 I think such a query works with local files as well. Which syntax I have to use? Select $A from i\"file:///c:/myTM.xtm#test\"($A,$B) ?=20 =20 I got always the same error: TopicMapRuntimeException->Cannot find topic with subject indiciator.. =20 =20 Thanks, Stefan |
From: <vt...@ne...> - 2004-08-30 07:04:44
|
Hello, Fist of all, I've just download the latest version of TM Nav : Whaooooo =21= = Real improvement against the 0.2.5 one : I'm really impress by the new =22= abstracting=22 and =22rendering=22 features, which are really very useful. I mail you to know if you plan to include some *cross* TM navigation featu= res in complement to the *direct* TM navigation feature you've implemente= d in the latest release ... I mean : = by *direct* TM navigation : navigation allowing you to know *everything* = about *a unique topic* (id, all name(s), all PSI(s), all occurrence(s) and= all r=F4le(s) player, ...) by *cross* TM navigation : navigation allowing you to know *only few thin= gs*, but about *all the topics of one given topic type* (some name, some o= ccurrence(s) and some r=F4le(s) player), ...) Imagine something which allow you to define sorts of extraction =22pattern= s=22 : One =22pattern=22 define : - 1 : a given topic type to begin the =22cross TM navigation=22 - 2 : the occurrence you want to see via the definition of =22given occur= rence types =5Bof the given topic type=5D) - 3 : the topics you want to see via the definition of =22given role typ= es involved in a given association type where the given topic play a given= role type=22 - and for each topic define again point 2 and point 3 - and so on ... For example : I want to =22extract=22 : = - all topics of the *people* topic type = - with *e-mail* =22occurrence type=22 = - with *telephon* =22occurrence type=22 = - ... And perhaps other kind of =22occurrence type=22 = - and all the topic of =22company type=22 playing the role of =22employer= =22 in a *employ* =22association type=22 where the given people play a *em= ploye* =22role type=22 - with *home page* occurrence type=22 = - ... And perhaps other kind of =22occurrence type=22 = - and for each *company* : all the topic of =22company type=22 playing = the role of =22partner=22 ... - and for each *company* : all the topic of =22company type=22 playing = the role of =22subsidiary=22 ... - ... The idea is to be able to use patterns to navigate TMs (with sort pr=E9-d= efine differents perspectives) ... For one given topic type you have one o= r more pattern defined, if there is only one pattern you take this pattern= otherwise you give the choice to the user (by contextual menu for exemple= ) ... And when the =22view=22 is extract you can apply to the extracted =22= output=22 topics the available pattern(s) according to them type by the sa= me processus I describe for the =22input=22 topic type ... A pattern should be valid for a set of TMs conform to a given ontology. I think if the topic map is driven by a ontology it is more powerful, beca= use topic type are declare =22by intention=22 in the ontology and not =22b= y extention=22 in the KB ... And in this case you can associate a set of =22= pattern=22 to a given ontology and use it for each map conform to this ont= ology ... But it's not mandatory to have the feature I describe above Hope I was clear in my explanations Regards and thank a lot for such wonderful tool Bernard ------------------------------------------------------------- NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Tool= bar... Web/Wap : www.netcourrier.com T=E9l=E9phone/Fax : 08 92 69 00 21 (0,34 =80 TTC/min) Minitel: 3615 NETCOURRIER (0,16 =80 TTC/min) |
From: Kal A. <ka...@te...> - 2004-08-29 18:27:56
|
Hi Mathias, I tracked down the error in the TM4Web/Velocity source. I've checked a fix for this into CVS - so it will be part of the 0.2 release. If you are happy to grab the file from CVS and build it yourself thats cool. If you would like a compiled version of the JAR file, email me privately and I'll send it to you. Cheers and thanks for the bug report! Kal On Sun, 2004-08-29 at 18:02, Mathias Reinhardt wrote: > Hi Kal, > > ok, I can list maps the hibernate backend now. But I get an error as > soon as I try to load a map. > Failed to load topic map. Cause: Storage exception.. Cause: > java.lang.NullPointerException > at org.tm4j.topicmap.hibernate.TopicMapProviderImpl.findTopicMap(Unknown > Source) > > TM4Web is 0.2rc1 Servlet Container is Tomcat 5.0.16. I used the > hibernate jar's from tm4j-0.9.6 > with mySQL. > > The config uses > <topicmap name="tmworld.xtm" uri="http://****/tmworld.xtm" > template="topicmap.vm"> > <title>test2</title> > </topicmap> > > Please find the complete log file attached. > Accessing the same topic map from TM4J in plain java is no problem. > > Thanks > mathias |
From: Kal A. <ka...@te...> - 2004-08-29 14:22:29
|
Hi Mathias, TM4Web/Velocity does support the Hibernate backend, but the <topicmaps> element is only provided for loading topic maps from a file-system directory (so its only used with the in-memory backend). You have to configure each topic map you want displayed separately. It would probably be nice if there was an option to list either all of the topic maps in the database or some subset (e.g. by matching the baseLocator against a regular expression). I'll look into adding something like that for 0.3. Cheers, Kal On Sat, 2004-08-28 at 18:25, Mathias Reinhardt wrote: > Hello, > > I'm stuck with setting up TM4Web/Velocity 0.2rc1 with a hibernate > backend. > Configuration is > <provider name="hibernate" > factory="org.tm4j.topicmap.hibernate.TopicMapProviderFactoryImpl"> > <provider-properties> > <property name="hibernate.connection.url" > value="jdbc:mysql://localhost/tm4mail"/> > <property name="hibernate.connection.username" value="***"/> > <property name="hibernate.connection.password" value="***"/> > <property name="hibernate.dialect" > value="net.sf.hibernate.dialect.MySQLDialect"/> > <property name="hibernate.connection.driver_class" > value="com.mysql.jdbc.Driver"/> > </provider-properties> > </provider> > > I don't get any errors but I don't get any TopicMaps from by backend > either. In stdout.log it says > "topicmaps element ignored for provider 'hibernate' which is not in-memory." > > Do I miss something or is Hibernate support currently not available with > TM4Web/Velocity? > > Thanks, > Mathias > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users -- Kal Ahmed <ka...@te...> techquila |
From: Mathias R. <mat...@we...> - 2004-08-28 17:22:10
|
Hello, I'm stuck with setting up TM4Web/Velocity 0.2rc1 with a hibernate backend. Configuration is <provider name="hibernate" factory="org.tm4j.topicmap.hibernate.TopicMapProviderFactoryImpl"> <provider-properties> <property name="hibernate.connection.url" value="jdbc:mysql://localhost/tm4mail"/> <property name="hibernate.connection.username" value="***"/> <property name="hibernate.connection.password" value="***"/> <property name="hibernate.dialect" value="net.sf.hibernate.dialect.MySQLDialect"/> <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/> </provider-properties> </provider> I don't get any errors but I don't get any TopicMaps from by backend either. In stdout.log it says "topicmaps element ignored for provider 'hibernate' which is not in-memory." Do I miss something or is Hibernate support currently not available with TM4Web/Velocity? Thanks, Mathias |
From: Bret C. <bre...@ya...> - 2004-08-27 21:18:56
|
Kal, A belated "thank you" for your help getting queries to parse using source locators. I have used your help to get it working. FYI, I've also attached my own analysis of how I made the mistakes I did & how the documentation might be improved so that people like me (if there are any :>) don't make the same mistakes. (It's probably more information than would be helpful, so you might just skip to part B. Suggestion: Table Describing Different Types of Locator.) Bret --- tm4...@li... wrote: > Message: 1 > Date: Tue, 24 Aug 2004 09:42:31 +0100 > From: kal <ka...@te...> > To: Bret Cohen <bre...@ya...> > CC: tm4j <tm4...@li...> > Subject: [TM4J-users] Re: resend: Problems parsing > tolog queries > > Hi Bret, > > If you want to query by topic id, use @id instead of > the bare id in your > query (e.g. @activity). > > However, your assumption about source locators is > not correct. The > source locator for a topic is set by calling > topic.addSourceLocator(loc), not > topic.setSubject(loc). And when the > processor resolves a string like 'activity' as a > source locator it > actually resolves it relative to the baseAddress of > the topic map so you > would need to do both of these steps: > > Locator baseLoc = > tm.getLocatorFactory().createLocator("URI", > "file:///sass.xtm"); > tm.setBaseLocator(baseLoc); > topic.addSourceLocator(tm.getBaseLocator().resolveRelative("#activity")); > > The first two lines you only need to do once of > course, and then only if > you are not reading the topic map in from a file (if > you read it in from > a file the base address then it should get a > baseLocator set automatically). > > The third line you should do once and only for > topics that you create > (the ones parsed from the topic map will have a > source locator set > automatically). > > Hope this helps! > > Cheers, > > Kal > Bret Cohen wrote: > > >This is a resend. The last time I sent this, there > >were problems that prevented it from going through > > > >Kal, > > > >Once more, a problem, that once more looks like a > bug, > >but almost surely isn't - yet may be a stimulant to > >improve the documentation. I've attached a file > >describing my dealings with the problem. > > > >It has to do with creating a prepared query when > the > >TopicMap has *not* been read in from an XTM file. I > >have no problem when creating & executing prepared > >queries on TopicMaps read in from an XTM file. > > > >Bret > > > > > > > > > > > >_______________________________ > >Do you Yahoo!? > >Win 1 of 4,000 free domain names from Yahoo! Enter > now. > >http://promotions.yahoo.com/goldrush > > > >------------------------------------------------------------------------ > > > >Tolog Query & Source Indicators > > > >It appears that Tolog Queries rely on source > locators > >(rather than, say Topic IDs) > >for finding typing topics used within the query. > > > >This has caused me some problems, and I still > haven't > >figured out the solution. (I thought I did, but > >it doesn't work.) > > > >Two possible remedies: > >1. Can I or you change the parser so that it can > > use Topic IDs instead of source locators to > locate the typing topic? > >2. Can you add documentation on creating Tolog > prepared queries > > that deals with the source locator problem? > > > >Here's my story - together with the still > unresolved problem: > > > >I had never worked with source locators, until I > came upon this > >Exception when I tried to create a prepared query: > > > >[java] Exception processing all activities query: > org.tm4j.tologx.TologParserException: No topic in > topic map with source locator SAAS.xtm#activity > > > >I never had this problem when I was working from a > loaded > >XTM file, rather than from a TopicMap created from > scratch > >from memory. > > > >I then realized that the the readTopicMap() method > I had been using > >must have added source locators created by > appending #topicID > >to the name of the XTM file from which the data was > loaded - > >and that that was why queries run after reading a > topic map > >from an XTM file were parsing correctly. > > > >So I figured I could create the same effect for a > TopicMap > >created from scratch within memory. > > > >So I used the name of the XTM file to which I want > to later > >write the TopicMap as my "dummy base locator" for > the TopicMap > >& then appended #topicID to create my source > locators, > >mimicing the behavior which the readTopicMap() > method > >was following. > > > >Here's an example: > >I created a typing topic for a tolog query with ID: > "activity" > >I added a src locator as follows (exception > processing left out) > >(Actually, I did this using a createTopic() method, > > but the result should be the same): > >Topic topic = topicMap.getTopicByID("activity"); > >String baseAddress = > tm.getBaseLocator().getAddress()+"#"+topic.getID(); > >srcLoc = > tm.getLocatorFactory().createLocator("URI", > baseAddress); > >topic.setSubject(srcLoc); > > > >I then printed the source locator for the activity > topic > >and the String address obtained from the locato as > follows: > > > >Topic activity = tm.getTopicByID("activity"); > >Locator srcLoc = activity.getSubject(); > >System.out.println("srcLoc of activity topic: > "+srcLoc); > > > >String srcAddr = srcLoc.getAddress(); > >System.out.println("srcAddr of activity topic: > "+srcAddr); > > > >The results indicated that everything went as I had > planned... > === message truncated === __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail |