Programming the Semantic Web