Request feedback in semantic MediaWiki

In my semantic Scandalous Poets Wiki, I would like to be able to query all pages with properties with a specific value, ideally grouped by property. For example, given the meaning of β€œLord Byron,” I would like to get a list like this:

Son: Katherine Gordon, John "Mad Jack" Byron

According to rumors, lover: Lady Caroline Lamb, Jane Elizabeth Scott "Lady Oxford", Augusta Lee, Ann Isabella Milbank, Nicolo Giro, Augusta Lee, Teresa Macri

Father: Ada Lovelace, Clara Allegra Byron

According to rumors, father: Elizabeth Medora Lee

... etc. I believe this functionality is demonstrated here: http://semantic-mediawiki.org/wiki/Special:Browse/California under the heading "hide properties that are related here." It also looks like http://semantic-mediawiki.org/w/index.php?title=Template:Invert-property - but this template will only return values ​​for one known property name at a time.

According to http://semantic-mediawiki.org/wiki/Germany MediaWiki does not support internal feedback support, although the Special: Browse page seems to work; are there any extensions or other methods that can do this?

+6
source share
1 answer

You can request the inverse of a property by simply putting a β€œ-” in front of the property in your request. For instance:

{{#ask: [[Category:Poet]] | ?-hasSon=son of }} 

See http://semantic-mediawiki.org/wiki/Help:Inverse_properties

+4
source

Source: https://habr.com/ru/post/918048/


All Articles