Cohomology of Schematic Algebras