Analyzing Complex Data Using Domain Constraints