File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
lib/bald/tests/integration Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -74,3 +74,25 @@ def test_sparql_demo_graph_viz_labels(self):
74
74
expected_result_rows = 150
75
75
self .assertTrue (len (qres ) == expected_result_rows )
76
76
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
+
You can’t perform that action at this time.
0 commit comments