$smwgQEqualitySupport = SMW_EQ_NONE; seems to work. Most other wikis will like it to be set to the default but this wiki is unique.
Thanks for your help. That is exactly what I was looking for.
Mary Beebe
-----Original Message-----
From: Alex M. Hendler [mailto:amh.public@...]
Sent: Friday, August 05, 2011 6:06 PM
To: Beebe, Mary J
Cc: Semediawiki-user@...
Subject: Re: [Semediawiki-user] Annotate to a page that redirects to another.
Mary,
Unless something has recently changed in SMW, it's my understanding that
a #REDIRECT gets parsed before the semantics if you have EqualitySupport
turned on (this generally makes redirect sources resolve to their
targets in the semantic parts of the database), so unless you set
$smwgQEqualitySupport = SMW_EQ_NONE;
in LocalSettings.php (default value is SMW_EQ_SOME and it's typically
not in LocalSettings.php), I'm not aware of a way to do this without a
workaround.
That said, I'm not even sure if setting it to NONE would work: I've
never tried that because I need equality for many other situations in
the same systems.
In cases where I need to keep equivalent glossary entries separate, I
use a property I call [[Soft redirect::]],
so instead of
#REDIRECT [[Swine]]
[[Owns::Swine]]
I put
See [[Soft redirect::Owns::Swine]]
(Assuming that "Owns" is a page-type property; otherwise, do the
necessary equivalent).
It's not perfect, but if I understand the problem correctly, I think it
would accomplish most of what you are trying to do if you still need to
maintain the equality function in other parts of your system.
Hope this helps,
Alex
--
Alex M. Hendler
ontolawgy™ LLC - connect . . . the . . . dots™
----Original Message-----
From: Beebe, Mary J <BeebeM@...>
To: Semediawiki-user@...
<Semediawiki-user@...>
Subject: [Semediawiki-user] Annotate to a page that redirects to
another.
Date: Fri, 5 Aug 2011 16:11:16 -0400
We have a glossary type page that redirects to another. Like Swine
redirecting to Pigs. We have added this in a page:
[[owns::Swine]] - Semantic wiki changes this to the Pigs in the
database. Any search returns Pigs not Swine. We would like to have the
queries return Swine which redirects to Pigs.
This article talks about this issue:
http://semantic-mediawiki.org/wiki/Help:Inferencing#Equality_of_pages:_redirects
Is there a configuration variable that makes queries end at the original
page not the redirected page?
Thanks,
Mary
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@...
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
|