Mercurial > code > home > repos > light9
comparison bin/curvecalc @ 684:83c239d3fd33
a note about where to use nt instead of n3, but i'm not doing it yet
Ignore-this: 5fd66a91e57fb2266bdc2dbc11d0f1c7
author | drewp@bigasterisk.com |
---|---|
date | Tue, 21 Jun 2011 02:03:31 +0000 |
parents | ad17b0a09f5c |
children | a301a0039c66 |
comparison
equal
deleted
inserted
replaced
683:2b8caaf4a193 | 684:83c239d3fd33 |
---|---|
422 def read_all_subs(graph): | 422 def read_all_subs(graph): |
423 """read all sub files into this graph so when add_one_subterm tries | 423 """read all sub files into this graph so when add_one_subterm tries |
424 to add, the sub will be available""" | 424 to add, the sub will be available""" |
425 subsDir = showconfig.subsDir() | 425 subsDir = showconfig.subsDir() |
426 for filename in os.listdir(subsDir): | 426 for filename in os.listdir(subsDir): |
427 # parsing nt is faster, but it should try n3 format if the parsing fails | |
427 graph.parse(os.path.join(subsDir, filename), format="n3") | 428 graph.parse(os.path.join(subsDir, filename), format="n3") |
428 | 429 |
429 def makeGraph(): | 430 def makeGraph(): |
430 graphOrig = showconfig.getGraph() | 431 graphOrig = showconfig.getGraph() |
431 graph = Graph() # a copy, since we're going to add subs into it | 432 graph = Graph() # a copy, since we're going to add subs into it |