Added domain-data function and :domain/id to domain entity