Author: reto
Date: Wed May 25 21:54:30 2011
New Revision: 1127699

URL: http://svn.apache.org/viewvc?rev=1127699&view=rev
Log:
CLEREZZA-552: Correctly replacing locainstance uri with the scheme and 
authority of the uri for which the description is requested.

Modified:
    
incubator/clerezza/trunk/parent/platform.graphnodeprovider/src/main/scala/org/apache/clerezza/platform/graphnodeprovider/GraphNodeProvider.scala

Modified: 
incubator/clerezza/trunk/parent/platform.graphnodeprovider/src/main/scala/org/apache/clerezza/platform/graphnodeprovider/GraphNodeProvider.scala
URL: 
http://svn.apache.org/viewvc/incubator/clerezza/trunk/parent/platform.graphnodeprovider/src/main/scala/org/apache/clerezza/platform/graphnodeprovider/GraphNodeProvider.scala?rev=1127699&r1=1127698&r2=1127699&view=diff
==============================================================================
--- 
incubator/clerezza/trunk/parent/platform.graphnodeprovider/src/main/scala/org/apache/clerezza/platform/graphnodeprovider/GraphNodeProvider.scala
 (original)
+++ 
incubator/clerezza/trunk/parent/platform.graphnodeprovider/src/main/scala/org/apache/clerezza/platform/graphnodeprovider/GraphNodeProvider.scala
 Wed May 25 21:54:30 2011
@@ -70,9 +70,9 @@ class GraphNodeProvider extends Logging 
                        uri.getPath
                }
 
-               lazy val uriAuthority = {
+               lazy val uriPrefix = {
                        val uri = new java.net.URI(uriRef.getUnicodeString)
-                       uri.getAuthority
+                       uri.getScheme+"://"+uri.getAuthority
                }
 
                val isLocal: Boolean = {
@@ -91,7 +91,7 @@ class GraphNodeProvider extends Logging 
                        //}
                        if (isLocal) {
                                if (existsInGraph(anyHostUri, mGraph)) {
-                                       mGraphs ::= new 
UriMutatingTripleCollection(mGraph, Constants.ALL_HOSTS_URI_PREFIX + '/', 
uriAuthority)
+                                       mGraphs ::= new 
UriMutatingTripleCollection(mGraph, Constants.URN_LOCAL_INSTANCE, uriPrefix)
                                }
                        }
                }


Reply via email to