An algebra for semantic interoperation of semistructured data