File: /examples/dbpedia.php

Description

Example of grabbing and parsing Linked Data from DBPedia.

This example illustrates how QueryPath can be used to do the following:

  • Make a robust HTTP connection to a remote server to fetch data.
  • Using context to control the underlying stream.
  • Working with Linked Data.
  • Work with XML Namespaces in documents. * Using namespaces to access elements in selectors * Using namespaces to access attributes in selectors * Using namespaces to access attributes in XML methods.
The code here connects to the DBPedia server and looks up the Linked Data stored there for a particular Wikipedia entry (any Wikipedia wiki name should work here).

Classes defined in this file

CLASS NAME

DESCRIPTION

Include/Require Statements

'../src/QueryPath/QueryPath.php' (line 28)

require_once : '../src/QueryPath/QueryPath.php'

Global Variables

Constants

Functions


Documentation generated on Sun, 25 Jul 2010 16:09:04 -0500 by phpDocumentor 1.4.3