Skip to content

Commit 8826ed1

Browse files
committed
Make the MappingSetRDFConverter class completely reusable.
Overhaul the ObjectConverter class and its subclasses so that a single instance of the MappingSetRDFConverter class can be used to convert many different MSDF objects (in any direction: RDF to MSDF or MSDF to RDF), instead of having to create one instance for each conversion.
1 parent 4acf200 commit 8826ed1

File tree

3 files changed

+216
-193
lines changed

3 files changed

+216
-193
lines changed

src/sssom/parsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ def from_sssom_rdf(
633633
)
634634
)
635635

636-
return MappingSetRDFConverter.from_rdf(g, curie_converter=converter, default_meta=combine_meta)
636+
return MappingSetRDFConverter().msdf_from_rdf(g, cc=converter, meta=combine_meta)
637637

638638

639639
def from_sssom_json(

0 commit comments

Comments
 (0)