Permalink
Browse files

Added logging of graph size

  • Loading branch information...
1 parent efd064a commit 25efe439ef90017c832704b2878b452243b05f25 @albertmeronyo albertmeronyo committed Oct 30, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/tablinker.py
View
@@ -666,6 +666,7 @@ def parseAnnotation(self, i, j) :
turtleFile = targetFolder + tLinker.fileBasename +'.ttl'
turtleFileAnnotations = targetFolder + tLinker.fileBasename +'_annotations.ttl'
+ logging.info("Generated {} triples.".format(len(tLinker.graph)))
logging.info("Serializing graph to file {}".format(turtleFile))
try :
fileWrite = open(turtleFile, "w")
@@ -677,6 +678,7 @@ def parseAnnotation(self, i, j) :
#Annotations
if tLinker.config.get('annotations', 'enabled') == "1":
+ logging.info("Generated {} triples.".format(len(tLinker.annotationsGraph)))
logging.info("Serializing annotations to file {}".format(turtleFileAnnotations))
fileWriteAnnotations = open(turtleFileAnnotations, "w")
turtleAnnotations = tLinker.annotationGraph.serialize(None, format=config.get('general', 'format'))

0 comments on commit 25efe43

Please sign in to comment.