Hello Jonas, hello Vincent,
Jonas von Malottki wrote:
Hello Xwikians,
Vincent Massol wrote:
On Aug 30, 2008, at 11:56 PM, Artem Melentyev
wrote:
Jonas von Malottki wrote:
Hello Devs,
by reading that another Question crossed my mind:
Have you ever thought of giving XWiki also some semantic
capabilities?
I mean the Idea of Semantic Wikis is not new:
http://en.wikipedia.org/wiki/Semantic_wiki
In Xwiki you could just put a Link in a 2-tuple form for letting it
fulfil the "subject - predicate - object"-Association, with the
Subject
as the Site where the link is set and the Object the Site where the
link
is pointing to, so only the predicate is missing.
And sometimes I really think it could make Sense. Especially in Xwiki
where you could exploit Information stored that way directly via
Scripts
and Applications developed in XWiki itself.
The question is not relevant to this topic (Query Language), so
you'd
better to start new tread.
But anyway, there are some effort, I think
nepomuk.semanticdesktop.org as possible example. But I don't know
much
on it.
About links, this question to Vincent:
can we add some meta data to link? So we can use these links later for
semantic needs? :)
for example (semantic-mediawiki)
http://semanticweb.org/wiki/London :
[[capital of::England]]
"capital of" is predicate, England is target page.
The answer is yes. I was about to send a proposal to modify links
since I have that need internally in order to support linking to images.
The idea is to have this new format:
[[label>reference>property1=value1 property2 = value2...]]
For now the "known" properties would be target and image:
[[label>reference>target="_new" image="myimage.png"]]
But it supports any number of properties.
Will that fit your use case?
Yes, indeed it would. The only Thing is that this would not be always
easy to understand for the average user (who will use the WYSWIG-Editor)
But generally the above Example would translate to:
Somewhere on a London Xwiki page:
[[UK>United Kingdom>predicate="capital_of"]]
(correct ?)
I highly appreciate the support for semantic links in xwiki. Some
months
ago, I developed an experimental plugin for this. (With the help of the
Graphviz-plugin, I can visualize the relations between pages.) So I have
some made experience, I'd like to share with you:
1.) The semantic links should be persistent, so that they can be queried
fast,
e.g. for lists as in:
http://semantic-mediawiki.org/wiki/Property:Located_in
http://semantic-mediawiki.org/wiki/Special:Properties
Particularly, it should be possible to find all "subject pages" of an
object page (as this is done with persistent backlinks in XWiki).
2.) The predicates / properties should have their own document
so that you can describe the property or define some "meta properties"
there, for example.
3.) The value of the predicate should IMHO be also a "fully working" link
so that you can navigate to the predicate / property itself. The
semantic link should be visible in either way in the generated HTML (at
least in the tooltip?). Eventually, the predicate-links should also be
stored as backlinks?
4.) Page Renaming of properties should be possible, so that the semantic
links are updated with the new predicate.
For my plugin, I used the following syntax - inspired by Semantic
MediaWiki [[Space.Predicate::Space.Object]]:
[[Predicat Name>Space.Predicate][Object Name>Space.Object]]
or short
[[Predicate][Object]]
It had the pragmactic advantage with the old xwiki syntax that the
"normal" link parsing and the functions like "Page
renaming/Refactoring"
work furthermore. From the implementation perspective, I only needed to
write a radeox filter that does the following:
1) Read the semantic link and store it in a persistent store
2) Convert [[Predicat Name>Space.Predicate][Object Name>Space.Object]] to
[Object Name>Space.Object].
I configured this filter before the XWikiLinkFilter.
My 2 cents.
Marco