test/unittest_spa2rql.py
branchstable
changeset 5610 91b0f118328a
parent 5609 d247e2e06db2
child 5613 bc0ebfbf5c5d
--- a/test/unittest_spa2rql.py	Sun May 30 01:54:12 2010 +0200
+++ b/test/unittest_spa2rql.py	Sun May 30 02:03:54 2010 +0200
@@ -23,6 +23,7 @@
 xy.add_equivalence('Project', 'doap:Project')
 xy.add_equivalence('Project creation_date', 'doap:Project doap:created')
 xy.add_equivalence('Project name', 'doap:Project doap:name')
+xy.add_equivalence('Project name', 'doap:Project dc:title')
 
 
 config = TestServerConfiguration('data')
@@ -179,6 +180,16 @@
               doap:name "cubicweb".
     }''', 'Any PROJECT WHERE PROJECT name %(a)s, PROJECT is Project', {'a': 'cubicweb'})
 
+    def test_dctitle_both_project_cwuser(self):
+        self._test('''
+    PREFIX doap: <http://usefulinc.com/ns/doap#>
+    PREFIX dc: <http://purl.org/dc/elements/1.1/>
+    SELECT ?project ?title
+    WHERE  {
+      ?project a doap:Project;
+              dc:title ?title.
+    }''', 'Any PROJECT,TITLE WHERE PROJECT name TITLE, PROJECT is Project')
+
 # # Two elements in the group
 # PREFIX :  <http://example.org/ns#>
 # SELECT *