@@ -177,10 +177,12 @@ def test_should_convert_data_frame_to_graph_uriref(self):
177177
178178 ds1 = pd .Series (data = ['https://google.com' ], index = ['http://github.com/cadmiumkitty/rdfpandas/one' ], dtype = np .unicode_ )
179179 ds2 = pd .Series (data = ['skos:broader' ], index = ['http://github.com/cadmiumkitty/rdfpandas/one' ], dtype = np .unicode_ )
180+ ds3 = pd .Series (data = ['skos:Concept' ], index = ['http://github.com/cadmiumkitty/rdfpandas/one' ], dtype = np .unicode_ )
180181
181182 df = pd .DataFrame ({
182183 'http://github.com/cadmiumkitty/rdfpandas/uri{URIRef}' : ds1 ,
183- 'http://github.com/cadmiumkitty/rdfpandas/curie{URIRef}' : ds2
184+ 'http://github.com/cadmiumkitty/rdfpandas/curie{URIRef}' : ds2 ,
185+ 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type{URIRef}' : ds3
184186 })
185187
186188 g_expected = Graph ()
@@ -191,6 +193,9 @@ def test_should_convert_data_frame_to_graph_uriref(self):
191193 g_expected .add ((URIRef ('http://github.com/cadmiumkitty/rdfpandas/one' ),
192194 URIRef ('http://github.com/cadmiumkitty/rdfpandas/curie' ),
193195 URIRef ('skos:broader' )))
196+ g_expected .add ((URIRef ('http://github.com/cadmiumkitty/rdfpandas/one' ),
197+ URIRef ('http://www.w3.org/1999/02/22-rdf-syntax-ns#type' ),
198+ URIRef ('skos:Concept' )))
194199
195200 g_result = rdfpandas .to_graph (df )
196201
@@ -333,7 +338,7 @@ def test_should_roundtrip_csv_to_graph_to_csv(self):
333338 """Should roundtrip DF -> Graph -> DF
334339 """
335340
336- df = pd .read_csv ('./csv/test.csv' , index_col = '@id' , keep_default_na = True )
341+ df = pd .read_csv ('./tests/ csv/test.csv' , index_col = '@id' , keep_default_na = True )
337342 namespace_manager = NamespaceManager (Graph ())
338343 namespace_manager .bind ('skos' , SKOS )
339344 namespace_manager .bind ('rdfpandas' , Namespace ('http://github.com/cadmiumkitty/rdfpandas/' ))
@@ -348,7 +353,7 @@ def test_should_roundtrip_graph_to_csv_to_graph(self):
348353 """
349354
350355 g = rdflib .Graph ()
351- g .parse ('./rdf/test.ttl' , format = 'ttl' )
356+ g .parse ('./tests/ rdf/test.ttl' , format = 'ttl' )
352357 df = rdfpandas .to_dataframe (g )
353358 print (df .T )
354359 g_result = rdfpandas .to_graph (df , g .namespace_manager )
0 commit comments