我在语义MediaWiki中有许多页面,它们通过一个名为Is implemented by的属性在一种层次结构中链接。
E.g
Is implemented by“XYZ小件厂”Is implemented by模块A的XYZIs implemented by模块B的XYZ如何在“比利时的Widget”页面上编写#ask查询,该页面将通过Is implemented by属性使用format=graph显示所有页面的图表
我已经安装了GraphViz和语义结果格式,它们似乎正在工作。
理想情况下,我希望将此查询放在模板中。
发布于 2020-09-22 08:29:22
如下所示:
{{#ask:[[Is implemented by::+]]
| ?Is implemented by
| format=graph
| graphname = Implementations
| graphcolor=yes
| graphsize = 800,800
| graphfontsize = 9
| graphlegend = yes
| graphlink = yes
| relation = child
| arrowdirection = RL
| nodelabel = displaytitle
}}[[Is implemented by::+]]意味着“孤儿”(未实现的实体)不会出现。如果这不是需要的,请确保所有实体都在一个类别中,例如[[Category:Implementations]],并将查询条件替换为[[Category:Implementations]];或者可以使用[[Some definitely defined, and only for implementations, property::+]]。
https://stackoverflow.com/questions/53022132
复制相似问题