topical media & game development
server-php-xml-class-rdql-rdql-test.php / php
<html>
<head>
<title>RDQL test</title>
</head>
<body>
<div align="center">
<?php
include_once("class_rdql.php");
print("<h1>RDQL test</h1><br/>\n");
query[1]='SELECT ?sal, ?t, ?x
FROM <http://ilrt.org/discovery/2000/11/rss-query/jobs-rss.rdf>,
<http://ilrt.org/discovery/2000/11/rss-query/jobs.rss>
WHERE (?x, <job:advertises>, ?y),
(?y, <job:salary>, ?sal),
(?y, <job:title>, ?t)
AND (?sal >= 100000)
USING job for <http://ilrt.org/discovery/2000/11/rss-query/jobvocab.rdf#>';
foreach(a_query) {
rows = RDQL_query_document::rdql_query_url(a_query=str_replace("<","<",a_query=str_replace(">",">",a_query</pre></td></tr>");
print("</table>");
print("<b>Result:</b>");
print("<table border='1'width='80%'>");
foreach(row) {
if(!row) as k</b></td>");
}
print("</tr>");
row as val) {
print("<td bgcolor='#dddddd'>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.