Get literal or resource