matchOntClass() refactoring: first check resources with gp:uriTemplate that are inBaseModel(), then others
gp:Template library ontology