From: Conal T. <co...@pa...> - 2004-09-27 07:47:52
|
Thanks for the prompt reply Kal! I'm really grateful for your help. I'll bet that's it. No I don't have <subjectIndicatorRef> elements in my source. I'm not using TMHarvest at present ... I'm using Cocoon pipelines with XSLT to harvest the topics. On the bright side, this makes it easy to add a subjectIndicator as a separate pipeline stage. If I understand you correctly, I would just need to add a <subjectIdentity> to my topics, pointing at themselves? It sounds a bit weird ... maybe I've misunderstood. <topic id="foo"/> would become <topic id="foo"> <subjectIdentity> <subjectIndicatorRef xlink:href="#foo"/> </subjectIdentity> </topic> or maybe <topicRef> is better <topic id="foo"> <subjectIdentity> <topicRef xlink:href="#foo"/> </subjectIdentity> </topic> Is that it? Cheers Con > Do your input topic maps have <subjectIndicator> elements in > them ? (or > if you are harvesting them using TMHarvest, do you set the > subjectIndicator property) ? My guess is that you are only setting the > sourceLocator property. So your topic with the id pdf-file > gets a source > locator > http://www.nztec.org/tm/harvest/xtm/nztec-ontology.xtm#pdf-file, > but does not get a subjectIndicator. By default, the XTM > exporter tries > to be "clever" and if you export a TM with a base locator > http://foo.xtm > then all source locators of the format http://foo.xtm#bar get exported > as an ID attribute with the value bar. > > The merging works in memory because if topic A has > sourceLocator foo and > topic B has a subjectIndicator foo, then the topics must be > merged. When > you round trip to external files, however you will lose that > sourceLocator. > > My advice is to explicitly set the subject indicators in your ontology > topic map. |
From: Conal T. <co...@pa...> - 2004-09-27 07:52:54
|
Christoph Froehlich wrote: > Am Mo, den 27.09.2004 schrieb Kal Ahmed um 9:26: > > Hi Conal, > > > > Do your input topic maps have <subjectIndicator> elements > in them ? (or > > if you are harvesting them using TMHarvest, do you set the > > subjectIndicator property) ? My guess is that you are only > setting the > > sourceLocator property. > > If its possible to do the merging and harvesting with tmnav, > you should > see the subject indicators either when using the section renderer or > when using hypergraph/touchgraph renderer with the extended > abstractor. > The latter two display them with a green circle that is labeled "si" Thanks Christoph. I've been using TMNav heavily :-) but I don't remember seeing those subject indicators in TMNav. I think Kal is right that I need to make the subject indicators explicit. I had a wrong idea based on the way that TM4J sometimes adds subject indicators when exporting. I'll definitely look out for it when I'm back at work tomorrow. This is good to know. |
From: Conal T. <Con...@vu...> - 2004-09-28 04:37:00
|
Kal wrote: > It definitely has to be a <subjectIndicatorRef> element. The=20 > <topicRef> > element won't add the subjectIndicator property to your topic.=20 >=20 > My advice would be to make it absolutely explicit in your=20 > input pipeline > that you are creating subject indicators and make full URIs: >=20 > <topic id=3D"foo"> > <subjectIdentity> > <subjectIndicatorRef > = xlink:href=3D"http://nztec.org/tm/harvest/xtm/nztec-ontology.xtm#foo"/> > </subjectIdentity> > </topic> >=20 > It may seem like a bit of overkill, but its the most robust way to > ensure that what you mean is what is read by the XTM parser ! Cheers Kal. That's worked beautifully. Now I can save and reload my TM = and still merge with it. In fact I can specify the base locator when harvesting, so I just = needed: <topic id=3D"foo"> <subjectIdentity> <subjectIndicatorRef xlink:href=3D"#foo"/> </subjectIdentity> </topic> Con |
From: Kal A. <ka...@te...> - 2004-09-27 08:36:03
|
Hi Conal, It definitely has to be a <subjectIndicatorRef> element. The <topicRef> element won't add the subjectIndicator property to your topic. My advice would be to make it absolutely explicit in your input pipeline that you are creating subject indicators and make full URIs: <topic id="foo"> <subjectIdentity> <subjectIndicatorRef xlink:href="http://nztec.org/tm/harvest/xtm/nztec-ontology.xtm#foo"/> </subjectIdentity> </topic> It may seem like a bit of overkill, but its the most robust way to ensure that what you mean is what is read by the XTM parser ! Cheers, Kal On Mon, 2004-09-27 at 08:52, Conal Tuohy wrote: > Thanks for the prompt reply Kal! I'm really grateful for your help. > > I'll bet that's it. No I don't have <subjectIndicatorRef> elements in my > source. > > I'm not using TMHarvest at present ... I'm using Cocoon pipelines with XSLT > to harvest the topics. On the bright side, this makes it easy to add a > subjectIndicator as a separate pipeline stage. If I understand you > correctly, I would just need to add a <subjectIdentity> to my topics, > pointing at themselves? It sounds a bit weird ... maybe I've misunderstood. > > <topic id="foo"/> > > would become > > <topic id="foo"> > <subjectIdentity> > <subjectIndicatorRef xlink:href="#foo"/> > </subjectIdentity> > </topic> > > or maybe <topicRef> is better > > <topic id="foo"> > <subjectIdentity> > <topicRef xlink:href="#foo"/> > </subjectIdentity> > </topic> > > Is that it? > > Cheers > > Con > > > Do your input topic maps have <subjectIndicator> elements in > > them ? (or > > if you are harvesting them using TMHarvest, do you set the > > subjectIndicator property) ? My guess is that you are only setting the > > sourceLocator property. So your topic with the id pdf-file > > gets a source > > locator > > http://www.nztec.org/tm/harvest/xtm/nztec-ontology.xtm#pdf-file, > > but does not get a subjectIndicator. By default, the XTM > > exporter tries > > to be "clever" and if you export a TM with a base locator > > http://foo.xtm > > then all source locators of the format http://foo.xtm#bar get exported > > as an ID attribute with the value bar. > > > > The merging works in memory because if topic A has > > sourceLocator foo and > > topic B has a subjectIndicator foo, then the topics must be > > merged. When > > you round trip to external files, however you will lose that > > sourceLocator. > > > > My advice is to explicitly set the subject indicators in your ontology > > topic map. > > > > ------------------------------------------------------- > 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. 24. 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 |