Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/Users/s10mm2/Documents/EATS/pythonEnv/lib/python3.11/site-packages/morph_kgc/main.py", line 31, in
rml_df, fnml_df = retrieve_mappings(config)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/s10mm2/Documents/EATS/pythonEnv/lib/python3.11/site-packages/morph_kgc/mapping/mapping_parser.py", line 21, in retrieve_mappings
rml_df, fnml_df = mappings_parser.parse_mappings()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/s10mm2/Documents/EATS/pythonEnv/lib/python3.11/site-packages/morph_kgc/mapping/mapping_parser.py", line 476, in parse_mappings
self._get_from_r2_rml()
File "/Users/s10mm2/Documents/EATS/pythonEnv/lib/python3.11/site-packages/morph_kgc/mapping/mapping_parser.py", line 507, in _get_from_r2_rml
data_source_rml_df, data_source_fnml_df = self._parse_data_source_mapping_files(section_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/s10mm2/Documents/EATS/pythonEnv/lib/python3.11/site-packages/morph_kgc/mapping/mapping_parser.py", line 564, in _parse_data_source_mapping_files
_validate_termtypes(mapping_graph)
File "/Users/s10mm2/Documents/EATS/pythonEnv/lib/python3.11/site-packages/morph_kgc/mapping/mapping_parser.py", line 447, in _validate_termtypes
raise ValueError(f'Found an invalid subject termtype. Found values {subject_termtypes}. '
ValueError: Found an invalid subject termtype. Found values {'http://w3id.org/rml/Literal', 'http://w3id.org/rml/IRI'}. Subject maps must be http://w3id.org/rml/IRI, http://w3id.org/rml/BlankNode or http://w3id.org/rml/RDFstarTriple.
I keep getting an error when I try to run
python -m morph_kgc cf_2023_v2.ini
on 2023 data in https://github.com/TEC-Toolkit/cfkg/tree/main/DESNZ-UKTraceback (most recent call last): File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/Users/s10mm2/Documents/EATS/pythonEnv/lib/python3.11/site-packages/morph_kgc/main.py", line 31, in
rml_df, fnml_df = retrieve_mappings(config)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/s10mm2/Documents/EATS/pythonEnv/lib/python3.11/site-packages/morph_kgc/mapping/mapping_parser.py", line 21, in retrieve_mappings
rml_df, fnml_df = mappings_parser.parse_mappings()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/s10mm2/Documents/EATS/pythonEnv/lib/python3.11/site-packages/morph_kgc/mapping/mapping_parser.py", line 476, in parse_mappings
self._get_from_r2_rml()
File "/Users/s10mm2/Documents/EATS/pythonEnv/lib/python3.11/site-packages/morph_kgc/mapping/mapping_parser.py", line 507, in _get_from_r2_rml
data_source_rml_df, data_source_fnml_df = self._parse_data_source_mapping_files(section_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/s10mm2/Documents/EATS/pythonEnv/lib/python3.11/site-packages/morph_kgc/mapping/mapping_parser.py", line 564, in _parse_data_source_mapping_files
_validate_termtypes(mapping_graph)
File "/Users/s10mm2/Documents/EATS/pythonEnv/lib/python3.11/site-packages/morph_kgc/mapping/mapping_parser.py", line 447, in _validate_termtypes
raise ValueError(f'Found an invalid subject termtype. Found values {subject_termtypes}. '
ValueError: Found an invalid subject termtype. Found values {'http://w3id.org/rml/Literal', 'http://w3id.org/rml/IRI'}. Subject maps must be http://w3id.org/rml/IRI, http://w3id.org/rml/BlankNode or http://w3id.org/rml/RDFstarTriple.