Skip to content

Commit 09ab933

Browse files
committed
adding missing CDL for testing WKT geosparql
1 parent be485ca commit 09ab933

File tree

2 files changed

+49
-3
lines changed

2 files changed

+49
-3
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
netcdf tmpMwXy8U {
2+
dimensions:
3+
pdim0 = 11 ;
4+
pdim1 = 17 ;
5+
variables:
6+
int prefix_list ;
7+
prefix_list:bald__ = "http://binary-array-ld.net/latest/" ;
8+
prefix_list:rdf__ = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" ;
9+
prefix_list:rdfs__ = "http://www.w3.org/2000/01/rdf-schema#" ;
10+
prefix_list:cf__ = "http://def.scitools.org.uk/CFTerms/" ;
11+
prefix_list:geo__ = "http://www.opengis.net/ont/geosparql#" ;
12+
13+
int temp(pdim0, pdim1) ;
14+
temp:cf__standard_name = "air_temperature" ;
15+
temp:cf__long_name = "Air temperature obs example at point" ;
16+
temp:rdfs__label = "Air temperature obs example at point" ;
17+
temp:geo__asWKT = "POINT(-77.03524 38.889468)" ;
18+
19+
int pressure(pdim0, pdim1) ;
20+
:rdf__type = "geo__Geometry" ;
21+
pressure:cf__standard_name = "air_pressure" ;
22+
pressure:cf__long_name = "Air pressure at UCAR Centre Green" ;
23+
pressure:rdfs__label = "Air pressure at UCAR Centre Green" ;
24+
pressure:geo__asWKT = "POINT(-105.24584700000003 40.0315278)" ;
25+
26+
// global attributes:
27+
:_NCProperties = "version=1|netcdflibversion=4.4.1|hdf5libversion=1.8.17" ;
28+
:rdf__type = "bald__Container" ;
29+
:bald__isPrefixedBy = "prefix_list" ;
30+
data:
31+
32+
temp =
33+
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
34+
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
35+
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
36+
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
37+
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
38+
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
39+
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
40+
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
41+
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
42+
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
43+
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ ;
44+
45+
46+
}

lib/bald/tests/integration/test_cdl_sparql.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_sparql_count_standard_names(self):
4545
for row in qres:
4646
print("%s :: %s" % row)
4747
print( len(qres))
48-
expected_result_rows = 13
48+
expected_result_rows = 15
4949
self.assertTrue(len(qres) == expected_result_rows)
5050

5151
def test_sparql_demo_graph_viz_labels(self):
@@ -71,7 +71,7 @@ def test_sparql_demo_graph_viz_labels(self):
7171
for row in qres:
7272
print("%s, %s, %s, %s" % row)
7373
print( len(qres))
74-
expected_result_rows = 146
74+
expected_result_rows = 150
7575
self.assertTrue(len(qres) == expected_result_rows)
7676

7777
def test_sparql_demo_map_viz_labels(self):
@@ -93,6 +93,6 @@ def test_sparql_demo_map_viz_labels(self):
9393
for row in qres:
9494
print("%s, %s" % row)
9595
print( len(qres))
96-
expected_result_rows = 0
96+
expected_result_rows = 2
9797
self.assertTrue(len(qres) == expected_result_rows)
9898

0 commit comments

Comments
 (0)