68 страниц. 2013 год. LAP Lambert Academic Publishing This book deals with designing and implementing of document type definition (DTD), XML schema, and the tree representation of a semantic document written in RDF/RDFS. The DTD, XML schema and the tree representation, enables the XML document writer to complete the document. Without the three above said the XML document will not be complete and will fail to achieve its usefulness. To be more precise the DTD and XML schema have a similar role to play. In fact both work exactly similarly. The reason for developing and using alternatively is to see their effects. The selective queries asked of the document centre around, MS(CS) study conducted at the COMSATS institute of Information Technology Lahore. An Elementary Introduction of SPARQL and the use thereof as to how the information can be dug out from the semantic document are introduced. SPARQL has also introduced at elementary level and some queries have been answered using SPARQL with regard to protege software.