equal
deleted
inserted
replaced
21 from cubicweb.spa2rql import Sparql2rqlTranslator |
21 from cubicweb.spa2rql import Sparql2rqlTranslator |
22 |
22 |
23 xy.add_equivalence('Project', 'doap:Project') |
23 xy.add_equivalence('Project', 'doap:Project') |
24 xy.add_equivalence('Project creation_date', 'doap:Project doap:created') |
24 xy.add_equivalence('Project creation_date', 'doap:Project doap:created') |
25 xy.add_equivalence('Project name', 'doap:Project doap:name') |
25 xy.add_equivalence('Project name', 'doap:Project doap:name') |
|
26 xy.add_equivalence('Project name', 'doap:Project dc:title') |
26 |
27 |
27 |
28 |
28 config = TestServerConfiguration('data') |
29 config = TestServerConfiguration('data') |
29 config.bootstrap_cubes() |
30 config.bootstrap_cubes() |
30 schema = config.load_schema() |
31 schema = config.load_schema() |
176 SELECT ?project |
177 SELECT ?project |
177 WHERE { |
178 WHERE { |
178 ?project a doap:Project; |
179 ?project a doap:Project; |
179 doap:name "cubicweb". |
180 doap:name "cubicweb". |
180 }''', 'Any PROJECT WHERE PROJECT name %(a)s, PROJECT is Project', {'a': 'cubicweb'}) |
181 }''', 'Any PROJECT WHERE PROJECT name %(a)s, PROJECT is Project', {'a': 'cubicweb'}) |
|
182 |
|
183 def test_dctitle_both_project_cwuser(self): |
|
184 self._test(''' |
|
185 PREFIX doap: <http://usefulinc.com/ns/doap#> |
|
186 PREFIX dc: <http://purl.org/dc/elements/1.1/> |
|
187 SELECT ?project ?title |
|
188 WHERE { |
|
189 ?project a doap:Project; |
|
190 dc:title ?title. |
|
191 }''', 'Any PROJECT,TITLE WHERE PROJECT name TITLE, PROJECT is Project') |
181 |
192 |
182 # # Two elements in the group |
193 # # Two elements in the group |
183 # PREFIX : <http://example.org/ns#> |
194 # PREFIX : <http://example.org/ns#> |
184 # SELECT * |
195 # SELECT * |
185 # { :p :q :r OPTIONAL { :a :b :c } |
196 # { :p :q :r OPTIONAL { :a :b :c } |