For my cryptography related semantic wiki, I have [[Category:Person]], [[Category::Algorithm]], and [[Category::Paper]]. In a Paper page I include "written by" relations to persons and "defined" and/or "analyzed" relations to algorithms. Then in a Person page I'd like to automatically display all of the algorithms designed or analyzed by that person (meaning all algorithms defined or analyzed by papers written by that person), and similarly in an Algorithm page I'd like to display all of the people who have designed or analyzed that algorithm. I don't think this is possible with the current query system without adding the inverse relations manually, so I patched SMW 0.6 to handle inline query of inverse relations. The syntax is [[Inverse:relation::title]].
Here is an example of a query to list all algorithms designed by a person:
[[Category:algorithm]] [[Inverse:defined::<q>[[Category::Paper]] [[written
by::{{PAGENAME}}]]</q>]]
I also added wildcard relation queries, so that I could generate a list of
all pages that has anything to do with another page. The syntax for that is
[[*::x]] meaning any page that has a relation with x, and [[Inverse:*::x]]
meaning any page that x has a relation with.
I think these features should be useful beyond my specific application. I
noticed that ontoworld.org contains quite a bit of redundant information in
the form of inverse relations such as location of/located in. This doesn't
seem desirable since the information can easily become out of synch. However
I have no idea whether there is already a plan to solve this problem or
whether my patch fits into the planned design at all.
patch
Description: Binary data
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Semediawiki-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
