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)?

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"]]

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/org/xwiki/platform/xwiki-core-rendering-api/2.5-rc-1/xwiki-core-rendering-api-2.5-rc-1-javadoc.jar/!/org/xwiki/rendering/listener/reference/ResourceReference.html#getParameter(java.lang.String)
[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,[email protected]  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#HAddinganewLinkType

Thanks

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to