the court held that property and contracts of all kinds must yield to the demand of the sovereign and that under the power of eminent domain all properties could be taken , and that if there was a contract between the state of pennsylvania and the cemetery association , the contract itself could be taken for public use , and ordered the opening of the street through the cemetery .