Test#

Edit this file in a simple text editor or in jupyter notebook:

from gd05 import GenDifS_Map
mm = "BY-SOME-SOME"
o = GenDifS_Map(f"../mm/{mm}.mm")
o.rdflib.serialize(destination=f"../ttl/{mm}.ttl")
o.parser_markdown()
cwd into input_dir: /home/dsci/a/l/LA_2022_ws/mm
reading /home/dsci/a/l/LA_2022_ws/mm > BY-SOME-SOME.mm (18 nodes)
Parsing XML: #1 start nodes
ontology node IDs: {'ID_1640681749': 'ONTOLOGY'}
RDF: 104 502
warning: no glossary file found.
updated mindmap with backup to /home/dsci/a/l/LA_2022_ws/mm/BY-SOME-SOME.mm_backup_2022-11-20T13-50-05
---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
File ~/miniconda3/lib/python3.9/shutil.py:825, in move(src, dst, copy_function)
    824 try:
--> 825     os.rename(src, real_dst)
    826 except OSError:

FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpksb7d8x0' -> '../ttl/BY-SOME-SOME.ttl'

During handling of the above exception, another exception occurred:

FileNotFoundError                         Traceback (most recent call last)
Cell In [1], line 4
      2 mm = "BY-SOME-SOME"
      3 o = GenDifS_Map(f"../mm/{mm}.mm")
----> 4 o.rdflib.serialize(destination=f"../ttl/{mm}.ttl")
      5 o.parser_markdown()

File ~/miniconda3/lib/python3.9/site-packages/rdflib/graph.py:1210, in Graph.serialize(self, destination, format, base, encoding, **args)
   1208 dest = url2pathname(path) if scheme == "file" else location
   1209 if hasattr(shutil, "move"):
-> 1210     shutil.move(name, dest)
   1211 else:
   1212     shutil.copy(name, dest)

File ~/miniconda3/lib/python3.9/shutil.py:845, in move(src, dst, copy_function)
    843         rmtree(src)
    844     else:
--> 845         copy_function(src, real_dst)
    846         os.unlink(src)
    847 return real_dst

File ~/miniconda3/lib/python3.9/shutil.py:444, in copy2(src, dst, follow_symlinks)
    442 if os.path.isdir(dst):
    443     dst = os.path.join(dst, os.path.basename(src))
--> 444 copyfile(src, dst, follow_symlinks=follow_symlinks)
    445 copystat(src, dst, follow_symlinks=follow_symlinks)
    446 return dst

File ~/miniconda3/lib/python3.9/shutil.py:266, in copyfile(src, dst, follow_symlinks)
    264 with open(src, 'rb') as fsrc:
    265     try:
--> 266         with open(dst, 'wb') as fdst:
    267             # macOS
    268             if _HAS_FCOPYFILE:
    269                 try:

FileNotFoundError: [Errno 2] No such file or directory: '../ttl/BY-SOME-SOME.ttl'