A Logic Programming Model for Web Resources