Skip to content

Commit 5c60de7

Browse files
committed
adding map viz sparql test
1 parent 7354716 commit 5c60de7

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

lib/bald/tests/integration/test_cdl_sparql.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,25 @@ def test_sparql_demo_graph_viz_labels(self):
7474
expected_result_rows = 150
7575
self.assertTrue(len(qres) == expected_result_rows)
7676

77+
def test_sparql_demo_map_viz_labels(self):
78+
#query standard_name values used and frequency
79+
qres = self.graph.query(
80+
"""
81+
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
82+
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
83+
PREFIX bald: <http://binary-array-ld.net/latest/>
84+
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
85+
SELECT ?contained ?geoWKT
86+
WHERE
87+
{
88+
?container a bald:Container .
89+
?container bald:contains ?contained .
90+
?contained geo:asWKT ?geoWKT
91+
}
92+
""")
93+
for row in qres:
94+
print("%s, %s" % row)
95+
# print( len(qres))
96+
expected_result_rows = 2
97+
self.assertTrue(len(qres) == expected_result_rows)
98+

0 commit comments

Comments
 (0)