Commit 4c13e89
committed
Implement our own (de)serialisation to/from RDF.
Since the normalised variant of SSSOM/RDF does not match the output
produced (respectively expected) by the LinkML runtime's dumper (resp.
loader), we implement our own serialisation/deserialisation routines for
RDF.
All the code for RDF import/export is contained within the
sssom.rdf_internal module. The main class expected to be used outside of
that module is the MappingSetRDFConverter class.
The `from_sssom_rdf` and `to_rdf_graph` methods in the sssom.parsers and
sssom.writers module are rewritten to use the new converter.1 parent 427f6e8 commit 4c13e89
File tree
4 files changed
+896
-30
lines changed- src/sssom
4 files changed
+896
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| 140 | + | |
| 141 | + | |
139 | 142 | | |
140 | 143 | | |
141 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | 620 | | |
631 | 621 | | |
632 | 622 | | |
633 | 623 | | |
634 | 624 | | |
635 | 625 | | |
636 | | - | |
637 | | - | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
638 | 629 | | |
639 | 630 | | |
640 | 631 | | |
641 | 632 | | |
642 | 633 | | |
643 | 634 | | |
644 | 635 | | |
645 | | - | |
646 | | - | |
647 | | - | |
| 636 | + | |
648 | 637 | | |
649 | 638 | | |
650 | 639 | | |
| |||
0 commit comments