test/unittest_spa2rql.py
branchstable
changeset 5609 d247e2e06db2
parent 5424 8ecbcbff9777
child 5610 91b0f118328a
equal deleted inserted replaced
5608:f9ab62103ad4 5609:d247e2e06db2
    48     SELECT ?project
    48     SELECT ?project
    49     WHERE  {
    49     WHERE  {
    50       ?project a doap:Project;
    50       ?project a doap:Project;
    51     }''', 'Any PROJECT WHERE PROJECT is Project')
    51     }''', 'Any PROJECT WHERE PROJECT is Project')
    52 
    52 
       
    53     def test_base_rdftype(self):
       
    54         self._test('''
       
    55     PREFIX doap: <http://usefulinc.com/ns/doap#>
       
    56     PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
       
    57     SELECT ?project
       
    58     WHERE  {
       
    59       ?project rdf:type doap:Project.
       
    60     }''', 'Any PROJECT WHERE PROJECT is Project')
    53 
    61 
    54     def test_base_attr_sel(self):
    62     def test_base_attr_sel(self):
    55         self._test('''
    63         self._test('''
    56     PREFIX doap: <http://usefulinc.com/ns/doap#>
    64     PREFIX doap: <http://usefulinc.com/ns/doap#>
    57     SELECT ?created
    65     SELECT ?created