function test_where_with_uri_pseudo_variable_and_optional() { $dt = new DataTable("http://example.org/store"); $dt->map('http://example.org/name', 'name'); $dt->map('http://example.org/age', 'age'); $dt->select('name'); $dt->optional('age'); $dt->where('_uri', 'http://example.org/scooby'); $this->assertEquals("select ?name ?age where {<http://example.org/scooby> <http://example.org/name> ?name. optional {<http://example.org/scooby> <http://example.org/age> ?age. } }", $dt->get_sparql()); }