15.08.2013 Views

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Definition 591 The XML path language (XPath) is a language framework for specifying<br />

fragments of XML trees.<br />

omtext<br />

Example 592<br />

xml:id foo<br />

xml:lang en<br />

text<br />

The number<br />

name pi<br />

CMP<br />

om:OMOBJ<br />

om:OMS<br />

cd nums1<br />

xmlns . . .<br />

xmlns:om . . .<br />

text<br />

is irrational.<br />

c○: Michael Kohlhase 395<br />

XPath exp. fragment<br />

/ root<br />

omtext/CMP/* all CMP children<br />

//name@ the name attribute<br />

on the om:OMS element<br />

//CMP/*[1] the first child of all<br />

OMS elements<br />

//*[cd=’nums1’]@ all elements whose<br />

cd has value<br />

nums1<br />

An XPath processor is an application or library that reads an XML file into a DOM and given an<br />

XPath expression returns (pointers to) the set of nodes in the DOM that satisfy the expression.<br />

The final topic for our introduction to the information architecture of the Internet and the WWWeb<br />

is an excursion into the “Semantic Web”, a set of technologies that to make the WWWeb more<br />

machine-understandable.<br />

3.5.8 The Semantic Web<br />

The Current Web<br />

226

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!