refactored SparqlTemplate. ExpressionResource and OntologyResource and now also using the SparqlTemplate. fixes #8