What you can do is use <noinclude></noinclude> tag around semantic relation definitions - this way they will not be carried over when page is transcluded. It can be used in combination with <includeonly></includeonly> when you want to have some definitions, actually any wikitext, to appear only withing the page that transcludes another page and not on transcluded page.

This is a must for semantic templates since you usually don't want template page itself to have semantic relations and most probably it uses a template parameter anyway so it's better to surround it with <includeonly>.

         Sergey


On Dec 20, 2007 7:28 AM, Michael Erdmann <erdmann@ontoprise.de> wrote:
Hi,
I have a question regarding the semantics of annotations when they are
included into a page via transclusion.
Assume I have the following pages
pageA
 {{:transcludedPage1}}   // note: from the main namespace
 {{Template:transcludedPage2}}

transcludedPage1
 [[annotation:=fromPage1]]

Template:transcludedPage2
 [[annotation:=fromPage2]]

In SMW 0.7 I see both annotations added to the factbox of pageA. This is
bad, since now, one annotation will be use for two individuals (pageA
and transcludedPage1).
Actually I would like to see only the annotation from the Template added
to pageA and not the one from the main name space.

Any comments?

thanks,
 michael



--
 email: erdmann@ontoprise.de            Dr. Michael Erdmann
  tel: +49 / 163 / 509 8029
  http://www.ontoprise.com
Registered Office: Karlsruhe, Germany (Amtsgericht Mannheim HRB 109540)
Managing Directors: Prof. Dr. Juergen Angele, Hans-Peter Schnurr



-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user



--
Sergey Chernyshev
http://www.sergeychernyshev.com/