@@ -69,23 +69,6 @@ def test_array_reference_with_baseuri(self):
69
69
expected_rdfgraph .parse (sf , format = 'n3' )
70
70
self .check_result (rdfgraph , expected_rdfgraph )
71
71
72
- # def test_array_reference_external_prefix(self):
73
- # with self.temp_filename('.nc') as tfile:
74
- # cdlname = 'array_reference_external_prefix.cdl'
75
- # cdl_file = os.path.join(self.cdl_path, cdlname)
76
- # subprocess.check_call(['ncgen', '-o', tfile, cdl_file])
77
- # cdl_file_uri = 'file://CDL/{}'.format(cdlname)
78
- # root_container = bald.load_netcdf(tfile, baseuri=cdl_file_uri, cache=self.acache)
79
- # rdfgraph = root_container.rdfgraph()
80
- # ttl = rdfgraph.serialize(format='n3').decode("utf-8")
81
- # if os.environ.get('bald_update_results') is not None:
82
- # with open(os.path.join(self.ttl_path, 'array_reference_external_prefix.ttl'), 'w') as sf:
83
- # sf.write(ttl)
84
- # with open(os.path.join(self.ttl_path, 'array_reference_external_prefix.ttl'), 'r') as sf:
85
- # expected_rdfgraph = rdflib.Graph()
86
- # expected_rdfgraph.parse(sf, format='n3')
87
- # self.check_result(rdfgraph, expected_rdfgraph)
88
-
89
72
def test_array_reference_external_prefix_context (self ):
90
73
with self .temp_filename ('.nc' ) as tfile :
91
74
cdlname = 'array_reference_external_prefix_context.cdl'
@@ -102,8 +85,6 @@ def test_array_reference_external_prefix_context(self):
102
85
if os .environ .get ('bald_update_results' ) is not None :
103
86
with open (os .path .join (self .ttl_path , 'array_reference_external_prefix_context.ttl' ), 'w' ) as sf :
104
87
sf .write (ttl )
105
- with open (os .path .join (self .ttl_path , 'out_array_reference_external_prefix_context.ttl' ), 'w' ) as sf :
106
- sf .write (ttl )
107
88
with open (os .path .join (self .ttl_path , 'array_reference_external_prefix_context.ttl' ), 'r' ) as sf :
108
89
expected_rdfgraph = rdflib .Graph ()
109
90
expected_rdfgraph .parse (sf , format = 'n3' )
0 commit comments