From: S P. <in...@sk...> - 2008-05-30 00:39:44
|
ablum wrote: > The short version: How do I get a listing of all values of a property (with > links to the property page for each). This is yet another example of the general issue "how do you select the pages that are the objects of some property in a query?" which most recently came up in the "question on subqueries" thread. Even though you can easily display these objects in query results, you can't turn them into the subjects of a a query. So {#ask: [[Person::+]] | ?Person | format=table | ?mainlabel=- }} will display only a column of the *objects* of your Person relation, but you're still selecting a bunch of pages that are the *subjects* of the Person relation. Your column may have duplicates and you can't set its order. If that's OK then you could just link to the Property:Person page as Yaron Koren suggested. As Jacques Bergeron answered his own question in the "question on subqueries" thread, you can create queries that create wiki text that holds semantic annotation for the inverse property. But if you don't want to create a page for the object of a query (e.g. page [[Smith Tim]] ) , then there's nowhere for the inverse property (e.g. [[referred to in article::Foo]]) to live. It's a surprisingly hard problem. SMW annotates pages with facts and you can do useful things with them. Sometimes the objects of these facts are themselves pages, but that doesn't make it easy to work with them. I hope this isn't a show-stopper for you. Has anyone tried Wei Dai's "patch: inline query for inverse relations and relation wildcard", way back in 2006-12-19? -- =S Page |