File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ impl std::fmt::Display for EnvironmentStatus {
9797 }
9898}
9999
100- #[ derive( Serialize , Deserialize ) ]
100+ #[ derive( Serialize , Deserialize , Debug ) ]
101101pub struct OntoEnv {
102102 config : Config ,
103103 #[ serde( serialize_with = "ontologies_ser" , deserialize_with = "ontologies_de" ) ]
Original file line number Diff line number Diff line change @@ -190,7 +190,6 @@ impl OntoEnv {
190190 let config_path = path
191191 . as_ref ( )
192192 . map ( |p| p. join ( ".ontoenv" ) . join ( "ontoenv.json" ) ) ;
193- println ! ( "Config path: {:?}" , config_path) ;
194193
195194 let env = ONTOENV_SINGLETON . get_or_try_init ( || {
196195 // if no Config provided, but there is a path, load the OntoEnv from file
@@ -418,15 +417,12 @@ impl OntoEnv {
418417 let rdflib = py. import ( "rdflib" ) ?;
419418 let iri = NamedNode :: new ( uri. to_string ( ) )
420419 . map_err ( |e| PyErr :: new :: < pyo3:: exceptions:: PyValueError , _ > ( e. to_string ( ) ) ) ?;
421- println ! ( "Locking inner" ) ;
422420 let graph = {
423421 let inner = self . inner . clone ( ) ;
424422 let env = inner. lock ( ) . unwrap ( ) ;
425- println ! ( "Getting graph by name" ) ;
426423 let graph = env
427424 . get_graph_by_name ( iri. as_ref ( ) )
428425 . map_err ( anyhow_to_pyerr) ?;
429- println ! ( "Got graph by name" ) ;
430426 graph
431427 } ;
432428 let res = rdflib. getattr ( "Graph" ) ?. call0 ( ) ?;
@@ -446,7 +442,6 @@ impl OntoEnv {
446442
447443 res. getattr ( "add" ) ?. call1 ( ( t, ) ) ?;
448444 }
449- println ! ( "Returning graph" ) ;
450445 Ok ( res. into ( ) )
451446 }
452447
You can’t perform that action at this time.
0 commit comments