X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=blobdiff_plain;f=htsworkflow%2Ffrontend%2Fsamples%2Ftests.py;h=4e0c2a3cb87736033c117c650167a6254d5558be;hp=111e29e8f43f5a9edb80a880e9d354b380d30bdd;hb=8bbe0264745aeab86f0749127c9a9d69bb72f4f2;hpb=8fd5e35ffdb651a361f5e46237b0ccd47ebdc2f4 diff --git a/htsworkflow/frontend/samples/tests.py b/htsworkflow/frontend/samples/tests.py index 111e29e..4e0c2a3 100644 --- a/htsworkflow/frontend/samples/tests.py +++ b/htsworkflow/frontend/samples/tests.py @@ -208,14 +208,14 @@ class SampleWebTestCase(TestCase): body = """prefix rdf: prefix libns: - select ?library ?library_id ?name ?species + select ?library ?library_id ?name ?species_name where { ?library a libns:Library . OPTIONAL { ?library libns:library_id ?library_id . } - OPTIONAL { ?library libns:species ?species . } + OPTIONAL { ?library libns:species_name ?species_name . } OPTIONAL { ?library libns:name ?name . } }""" - bindings = set(['library', 'library_id', 'name', 'species']) + bindings = set(['library', 'library_id', 'name', 'species_name']) query = RDF.SPARQLQuery(body) count = 0 for r in query.execute(model): @@ -297,7 +297,7 @@ class TestRDFaLibrary(TestCase): self.check_literal_object(model, ['400'], p=libNS['gel_cut']) self.check_literal_object(model, ['Igor'], p=libNS['made_by']) self.check_literal_object(model, ['Paired End Multiplexed Sp-BAC'], p=libNS['name']) - self.check_literal_object(model, ['Drosophila melanogaster'], p=libNS['species']) + self.check_literal_object(model, ['Drosophila melanogaster'], p=libNS['species_name']) self.check_uri_object(model, [u'http://localhost/lane/1193'],