Hi Mark,
On Nov 5, 2010, at 6:07 PM, Mark Wallace wrote:
Cool. I looked at the links you gave.
My goal is to have a possibly wide range of semantic property names for the the links
(i.e. a semantic wiki [2]). So if I wanted to use the 2.5+ capabilities you mentioned,
then perhaps I could use parameters to get my semantic info in there? [1] says 'XWiki
Syntax 2.1 only supports "queryString" and "anchor".' How could
I extend this (where in code to get started)?
Yes parameters is a good way to add any additional information. You don't need to
extend it. You can just use it. Then you need to do something with it. Macros and
Transformations can then access this information.
Re semantic syntax, see
http://jira.xwiki.org/jira/browse/XWIKI-3320
A different example of what I'm trying to do,
using a syntax flavor closer to the XWiki 2.1 syntax, might be:
Berlin is located in
[[Germany>>doc:Main.Germany||property="locatedIn"]]
This is a link. If you don't need a link you should instead write:
Berlin is located in (% property="locatedIn" %)Germany(%%)
or
Berlin is located in (% property="locatedIn"
%)[[Germany>>Main.Germany]](%%)
Note: This is going to generate a FormatBlock in XDOM, which you can access with
Transformation and Macros.
Hope it helps,
-Vincent
I.e. I want to mark-up the link as to what its meaning
is... that it represents a located-in relationship. (Same goals as the Semantic Web.)
Perhaps there is already a feature like this in xwiki that I don't know about. If
not, where would I get started in the code to extend it to do this?
Thanks,
-Mark
References:
[1]
http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/or…
[2]
http://code.google.com/p/wikimodel/
On 11/5/2010 5:13 AM, Vincent Massol wrote:
> Hi Mark,
>
> On Nov 5, 2010, at 2:37 AM,
> mwallace(a)modusoperandi.com
> wrote:
>
>
>> >
>> >
>> Apology for cross posting.
>>
>> >
>> Can someone point me to where in the XWiki code I could implement an
>>
>> >
>> extended XWiki link syntax? E.g. if I'd like to handle something like
>>
>> >
>> this:
>>
>> >
>> Berlin is a city in [[locatedIn::Germany>>Germany]]
>>
>> >
>> where I'm adding the double-colon syntax before the usual link info.
>>
> This is so cool that you have this need since we've just implemented
extensibility for this in XE 2.5+:
>
>
http://jira.xwiki.org/jira/browse/XWIKI-5486
>
>
> The doc is now available at:
>
>
http://code.xwiki.org/xwiki/bin/view/Modules/RenderingModule#HAddinganewLin…
>
>
> Thanks
>