Introduction to contextual reasoning: an articial intelligence perspective