Semantic Mediawiki 允许非当前页面的语义信息吗?
这句话提供了几个对象的语义信息:
“鲍勃有两个儿子,比尔和吉姆,他们嫁给了玛丽和凯蒂 分别。比尔和玛丽有一对双胞胎女儿,吉尔和阿曼达。”
在正常的语义维基(例如,semediawiki)中,您只能给出 您所在页面的语义信息。
是否有一个语义媒体维基可以让您提供以下信息 一次多个项目?
示例语法可能是:(
Bob has two sons, [Bob:son:Bill] and [Bob:son:Jim], who married
[Bill:wife:Mary] and [Jim:wife:Katy] respectively. Bill and Mary have
twin girls, [Bill:daughter:Jill] [Mary:daughter:Jill|] and
[Bill:daughter:Amanda] [Mary:daughter:Amanda|]. [Jill:twin:Amanda|]
像 [Mary:daughter:Jill|] 这样的东西创建一个语义三元组,但是打印 没什么)
我当然知道 http://davidbu.ch/mann/blog/2010-03 -12/mediawiki-extensions.html但是 这是一个小问题,实时构建页面(一点CPU 密集),并且没有任何社区支持(无意侮辱 大卫,当然)。
为了提高效率,当您编辑上面的“Bob”页面时,它会更新 Bill、Jim 等。换句话说,wiki 可以将“Bill”呈现为 MySQL 查询的常规数量,而不是额外的语义查询 信息。
我考虑的另一种方法是创建“数据”页面 不与任何 wiki 页面关联。示例:
[Bob:text: has two sons, [Bob:son:Bill] and [Bob:son:Jim], who married
[Bill:wife:Mary] and [Jim:wife:Katy] respectively. Bill and Mary have
twin girls, [Bill:daughter:Jill] [Mary:daughter:Jill|] and
[Bill:daughter:Amanda] [Mary:daughter:Amanda|]. [Jill:twin:Amanda|]]
上面的页面将向 Bob 的页面添加文本和语义信息 到鲍勃、比尔、吉姆等页面。
好处是效率:您可以静态呈现所有 wiki 页面。
我意识到这是否是一个好的问题存在争议 事物。目前,我希望从技术上做到这一点,并担心 其他的事稍后再说。
This sentence provides semantic information on several objects:
"Bob has two sons, Bill and Jim, who married Mary and Katy
respectively. Bill and Mary have twin girls, Jill and Amanda."
In a normal semantic wiki (eg, semediawiki), you can only give
semantic information for the page you're on.
Is there a semantic mediawiki that lets you provide information on
multiple items at once?
Sample syntax might be:
Bob has two sons, [Bob:son:Bill] and [Bob:son:Jim], who married
[Bill:wife:Mary] and [Jim:wife:Katy] respectively. Bill and Mary have
twin girls, [Bill:daughter:Jill] [Mary:daughter:Jill|] and
[Bill:daughter:Amanda] [Mary:daughter:Amanda|]. [Jill:twin:Amanda|]
(things like [Mary:daughter:Jill|] create a semantic triple, but print
nothing)
I'm of course aware of
http://davidbu.ch/mann/blog/2010-03-12/mediawiki-extensions.html but
that is a little buggy, builds pages in real-time (a little CPU
intensive), and doesn't have any community support (no insult to
David, of course).
For efficiency, when you edited the "Bob" page above, it would update
Bill, Jim, etc. In other words, the wiki could render "Bill" w/ the
regular number of MySQL queries, not extra ones for semantic
information.
An alternate approach I considered is creating "data" pages that
aren't associated with any wiki page. Example:
[Bob:text: has two sons, [Bob:son:Bill] and [Bob:son:Jim], who married
[Bill:wife:Mary] and [Jim:wife:Katy] respectively. Bill and Mary have
twin girls, [Bill:daughter:Jill] [Mary:daughter:Jill|] and
[Bill:daughter:Amanda] [Mary:daughter:Amanda|]. [Jill:twin:Amanda|]]
The page above would add text to Bob's page, and semantic information
to Bob, Bill, Jim, etc pages.
The nice thing is efficiency: you could statically render all wiki pages.
I realize there's controversy re whether this would be a good
thing. For now, I'm looking to do it technically and worry about the
other stuff later.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来你应该能够付钱给 David 来更新他的扩展,也许他甚至可以让它做你想要它做的事情。
语义媒体维基不是我的专长,但您也可以使用模板来做到这一点,因为它们基本上是“不与任何维基页面关联的“数据”页面。
It looks like you should be able to pay David to update his extension, maybe he could even make it do what you want it to do.
Semantic mediawiki isn't my specialty, but alternatively you could probably do this with Templates, since they are basically '"data" pages that aren't associate with any wiki page.'