Cleaned up code in SemanticWeb component.