100 likes | 214 Views
The Semantic Web. The Web Today. Designed for Human to read Cannot express meaning Architecture: URL Decentralized: Link structure Language: html. XML. HTML Tag + Rule XML separates data and its display Tag XML cannot express meaning DTD design a XML document. Semantic Web.
E N D
The Web Today • Designed for Human to read • Cannot express meaning • Architecture: URL • Decentralized: Link structure • Language: html
XML • HTML • Tag + Rule • XML separates data and its display • Tag • XML cannot express meaning • DTD design a XML document
Semantic Web • Designed for computer program to manipulate meaningfully. • An extension of the current Web • A Knowledge web that enables machines to comprehend semantic documents and data. • Express meaning by ontological language.
URI • Architecture • Universial Resource Identifier • Language • XML + XMLS • RDF + RDFS • DAML + OIL • OWL
Technology and Tools • Description Logics • Frame-based Systems • Standard Web • Web Service Agents
XML Parser • DocumentBuilderFactory factory • DocumentBuilder builder • Document doc • Node root = doc.getDocumentElement() • NodeList l = root.getChildNodes() • Node current = l.item(i) • Node type: DOCUMENT_NODE, ELEMENT_NODE, TEXT_NODE
XSLT • Transform an XML document to other format • <xsl:template match=”booklist”> <xsl:for-each select=”book”> <xsl:value-of select=”title”/> </xsl:for each> </xsl:template>