On Monday 30 April 2007 04:14, Denny Vrandecic wrote:
> Just a quick note between meetings: as of now, your query is not
> supported, and there are a number of problems with it (e.g., how to
> display <ask>[[Category:Person]] [[*::$page]]</ask>?)
>
> BUT --- try the following:
>
> In a Semantic MediaWiki version 0.7 go to the
> /SemanticMediaWiki/specials/SearchTriple/SMW_SpecialBrowse.php file and
> change line 20 (or so) from
>
> SpecialPage::addPage( new
> SpecialPage('Browse','',true,'doSpecialBrowse',false) );
>
> to
>
> SpecialPage::addPage( new
> SpecialPage('Browse','',true,'doSpecialBrowse','default',true) );
>
> (something that should be changed in the code anyway, but I don't have
> SVN access right now)
>
> And now go to the Rincewind page and add
>
> {{Special:Browse/{{PAGENAME}}}}
>
> at the end of the page.
>
> This should be pretty close to what you want to achieve.

This is quite nice (and changed in SVN now). I just hope that people do not 
include this on *every* page by default, and use the browse links in the 
Factbox-header instead. By the way: would it be possible to have the input 
field hidden when the special is included on a page?

Best regards,

Markus

>
> Kelly Jones wrote:
> > On a test Semantic Mediawiki I setup, this query:
> >
> > [[knows::Rincewind]]
> >
> > returns one result, but this query:
> >
> > [[*::Rincewind]]
> >
> > returns no results. Shouldn't the second query return MORE results?
> >
> > My ultimate goal here: at the bottom of each page, display the results
> > of the query:
> >
> > [[*::$page]]
> >
> > where $page is the page being viewed (ie, show all triples relating to
> > this page).
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Semediawiki-user mailing list
> Semediawiki-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-user

-- 
Markus Krötzsch
Institute AIFB, University of Karlsruhe, D-76128 Karlsruhe
[EMAIL PROTECTED]        phone +49 (0)721 608 7362
www.aifb.uni-karlsruhe.de/WBS/     fax +49 (0)721 693  717

Attachment: pgpErYhCwJAjZ.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

Reply via email to