Yaron Koren wrote: > Since I got mentioned in this thread: I didn't mean for my previous > email about inverse queries to be cryptic! Basically, it looks like > the general pattern for inverse queries is: > > <ask>[[Page_name]][[Relation_or_attribute_name:=*]]</ask> > > (or '::', if it's an attribute) And you can include as many relations > or attributes as you want.
Ahh, OK. The key part is **given the subject**. [[RailsConf 2007]][[Series::*]] will indeed give the object of the Series relation for this page. But the code isn't really doing an inverse query, it's just showing that page title and displaying some data for it. Sergey Chernyshev and others want queries that return the pages that are objects of triples, given only the relation. (And then for bonus points, display data for those pages.) That's what doesn't seem possible. Wei Dai's syntax for this, if I understand it correctly, is [[Inverse:Series::+]] Yaron Koren earlier wrote in "Re: [SMW-devel] Reflexive results?": > it appears "inverse queries", > i.e. queries that return the object of triples, given the subject, > work. And it looks like the functionality has been in SMW for a > while... for some reason, it's not mentioned in the help page > (http://ontoworld.org/wiki/Help:Inline_queries), and I couldn't see > documentation anywhere else either. Is this a secret or unsupported > feature? Specifying the subject page in queries is documented in http://ontoworld.org/wiki/Help:Semantic_search#Direct_conditions_on_pages and I added an example of this. But I think it would be confusing to call this out as an inverse query. -- =S ------------------------------------------------------------------------- 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