To the folks supporting SMW:

A key reason I've needed inverse properties is because of my grammatical ontology. Featuring generic relational properties such as "is:inside", I've needed to to more easily retrieve all values of a property rather than using bulky templates or modules. For instance, to retrieve an Automobile page identified in its pagename by a topic type, would use:

   {{#ask: [[-is:inside:: {{FULLPAGENAME}}]][[smw:pagename::~
   Automobile: *]]

which should yield all autos associated with a page via an "is:inside" property -- I've had troubles with this kind of query for awhile. However, now I am very pleased to report my inverse property tests (on 2.2.1) are working great!!

1. #ask: [[-pn::subject]] correctly yields all values of property "pn"
   for a single subject page
2. #ask: [[-pn::subj1||subj2]] yields all "pn" values for enumerated
   subject pages
3. #ask: [[-pn::<q>[[Category:X]]</q>]] yields all "pn" values for
   subject pages of a category
4. #ask: [[-pn1::<q>[[pn2::+]]</q>]] yields all "pn1" values for
   subject pages of a subquery
5. #ask: [[-pn1::+]][[pn2::+]] yields all "pn1" values that ALSO have
   property "pn2"
6. #ask: [[-pn1::+]][[Category:X]] yields all "pn1" values that ALSO
   are of a category

So a mighty Thanks! to the unsung (enough!) heros supporting SMW.

Now back to working on https://www.mediawiki.org/wiki/Extension:SMW_Ontologies
Best regards/john
------------------------------------------------------------------------------
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to