Design Thoughts
- Currently, clicking on the URIs displayed in the relations plugin mostly leads to a 404 (since URIs are displayed, not URLs)
- Kaukolu should catch this and display information about the URI
- In gnowsis, several pimo:things can share the same name. Therefore, it should be possible to look up pages via their URIs, not their names.
Displaying pages via URI, not via name
The jsp for such display may be different (ViewURI.jsp) and it will take a new parameter. So instead of View.jsp?name=SandBox it will be:
opening kaukolu with uri of internal sites: http://kaukolu/ViewURI.jsp?uri=http://kaukolu/wiki/SandBox opening kaukolu with uri of gnowsis resources: http://kaukolu/ViewURI.jsp?uri=gnowsis://paul@example.com/resources/pimo/SandBox http://kaukolu/ViewURI.jsp?uri=http://ontologies.opendfki.de/repos/ontologies/pim/pimo#Person http://kaukolu/ViewURI.jsp?uri=file:///C:/myDocuments/Paul/documents/projects/branchinrome/photos/image23.jpg
To do this:
- add m_uri variable to WikiContext, probably add WikiContext.VIEWURI
- change WikiEngine.createContext() to also parse "?uri=" parameter
- change source:trunk/kaukolu/src/com/ecyrd/jspwiki/tags/ContentTag.java to also handle lookups by URI.
- create !ViewURI.jsp
Example program flow for Page Info:
- webdocs/PageInfo.jsp (create engine and context)
- template/ViewTemplate.jsp (menus, header, footer, breadcrumbs...) => wiki:Content tag
- src/ContentTag.java selects proper .jsp for context (InfoContent.jsp)
- template/InfoContent.jsp
Display logic:
- Render standard wiki page if URI is of type WikiPage
- Display the properties of the resource otherwise.
- Think of a way to use plugins to display non-wikipage resources: TODO.
- should use fresnel for that
- or use XSLT and the SimpleRdfXml
Adaptions to SesameProviderGnowsis.java:
- during all operations, read in the passed WikiPage first if the URI is defined. If WikiPage.getURI() = null, use the wiki-url creator and the name.
- Everything has to have a URI, the current hack of using gnowsis to create things and then add the wikitext is weird.
Last modified 16 years ago
Last modified on 05/22/06 18:13:44