[Mulgara-svn] r1327 - trunk/src/jar/web/java/org/mulgara/webquery

pag at mulgara.org pag at mulgara.org
Thu Oct 16 19:00:00 UTC 2008


Author: pag
Date: 2008-10-16 11:59:59 -0700 (Thu, 16 Oct 2008)
New Revision: 1327

Modified:
   trunk/src/jar/web/java/org/mulgara/webquery/QueryResponsePage.java
Log:
Using the user specified graph in result links

Modified: trunk/src/jar/web/java/org/mulgara/webquery/QueryResponsePage.java
===================================================================
--- trunk/src/jar/web/java/org/mulgara/webquery/QueryResponsePage.java	2008-10-16 05:31:23 UTC (rev 1326)
+++ trunk/src/jar/web/java/org/mulgara/webquery/QueryResponsePage.java	2008-10-16 18:59:59 UTC (rev 1327)
@@ -307,12 +307,13 @@
 
   /**
    * Gets the URL used for the sample data.
-   * @return A URL for the sample data, expressed in the template as:
+   * @return A URL for the sample data, expressed by default in the template as:
    *         rmi://@@hostname@@/@@servername@@#sampledata
    */
   private Anchor getElementQuery(Node n) throws IOException {
     try {
-      URI graphUri = new URI("rmi", tagMap.get(HOSTNAME_TAG), "/" + tagMap.get(SERVERNAME_TAG), "sampledata");
+      // borrow this info out of the tag map
+      URI graphUri = new URI(tagMap.get(GRAPH_TAG));
       QueryParams params = new QueryParams();
       params.add(GRAPH_ARG, graphUri.toString());
       String text;




More information about the Mulgara-svn mailing list