Metadata framework