Author: whit
Date: 2007-07-31 15:18:17 -0400 (Tue, 31 Jul 2007)
New Revision: 7891

Modified:
   TaggerStore/trunk/taggerstore/tests/test_gdata-sparql.txt
Log:

updating to match correct quoting
  



Modified: TaggerStore/trunk/taggerstore/tests/test_gdata-sparql.txt
===================================================================
--- TaggerStore/trunk/taggerstore/tests/test_gdata-sparql.txt   2007-07-31 
19:16:15 UTC (rev 7890)
+++ TaggerStore/trunk/taggerstore/tests/test_gdata-sparql.txt   2007-07-31 
19:18:17 UTC (rev 7891)
@@ -35,20 +35,20 @@
     >>> link_url = "http://example.org/mycontent";
     >>> LINK_URN = utils.to_urn(link_url)
     >>> urllib.unquote(LINK_URN)
-    'urn:example.org/mycontent'
+    'urn:uri:http://example.org/mycontent'
 
 We can use the convenience method to create a fully escaped urn for
 our gdata category query::
 
     >>> link_seg = utils.to_gdata_category(link_url, scheme=rdf.LINK)
     >>> urllib.unquote(link_seg)
-    '{urn:www.w3.org/2005/Atom/link}urn:example.org/mycontent'
+    
'{urn:uri:http://www.w3.org/2005/Atom/link}<urn:uri:http://example.org/mycontent>'
 
 To make this into a proper query, we'll make a gdata url out of it::
 
     >>> query = "/-/%s" %link_seg
     >>> urllib.unquote(query)
-    '/-/{urn:www.w3.org/2005/Atom/link}urn:example.org/mycontent'
+    
'/-/{urn:uri:http://www.w3.org/2005/Atom/link}<urn:uri:http://example.org/mycontent>'
 
 *As you can see, for this to be parsed correctly, the order slashes are
 decoded in is important.*
@@ -56,7 +56,7 @@
 This would be a query for all the tags related to the url 
"http://example.org/mycontent"::
 
     >>> request = FakeRequest(query)
-    >>> query = parse_gdata(request);
+    >>> query = parse_gdata(request)
     >>> query.category_query
     Category('http://example.org/mycontent', 
scheme='http://www.w3.org/2005/Atom/link')
 
@@ -88,7 +88,7 @@
     >>> principal_scheme=str(rdf.NAMESPACES.annotea.author)
     >>> author_seg = utils.to_gdata_category(principal_uri, 
scheme=str(principal_scheme))
     >>> print urllib.unquote(author_seg)
-    {urn:www.w3.org/2000/10/annotation-ns#author}urn:example.org/test-user.html
+    
{urn:uri:http://www.w3.org/2000/10/annotation-ns#author}<urn:uri:http://example.org/test-user.html>
 
 This is a single category search, so we just make the gdata query like so::
 



--
Archive: 
http://www.openplans.org/projects/opencore/lists/openplans-svn/archive/2007/07/1185909498283
To unsubscribe send an email with subject unsubscribe to [EMAIL PROTECTED]  
Please contact [EMAIL PROTECTED] for questions.

Reply via email to