SPARQLResourceBase refactoring