Permalink
Browse files

Profile parsing debug improvements.

  • Loading branch information...
1 parent 61275fc commit 666141ac36fcbabcdb41f7bb7ebaf3afc2afdeb0 @gkellogg committed Dec 20, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/rdf_context/rdfaparser.rb
@@ -283,9 +283,10 @@ def process_profile(element, profiles)
::RdfContext::debug, $verbose = false, false
p_graph = Parser.parse(prof_body, profile, parse_options)
- ttl = p_graph.serialize(:format => :ttl) if @debug || ::RdfContext::debug?
::RdfContext::debug, $verbose = old_debug, old_verbose
- add_debug(element, ttl) if ttl
+ add_debug(element, "process_profile: extracted #{p_graph.size} statements")
+ #ttl = p_graph.serialize(:format => :ttl) if @debug || ::RdfContext::debug?
+ #add_debug(element, ttl) if ttl
end
add_debug(element, "process_profile: extract mappings from <#{profile}>")

0 comments on commit 666141a

Please sign in to comment.