コード例 #1
0
ファイル: subterm.py プロジェクト: shakaran/light9
def read_all_subs(graph):
    """read all sub files into this graph so when add_one_subterm tries
    to add, the sub will be available"""
    subsDir = showconfig.subsDir()
    for filename in os.listdir(subsDir):
        # parsing nt is faster, but it should try n3 format if the parsing fails
        graph.parse(os.path.join(subsDir, filename), format="n3")