Added algorithms for extracting relevant SPARQL blocks, without regex