the following is my requirement:
There are thousands of RDF files in a folder in my local webserver. The following is the structure of each of the files.
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
<rdf:Description rdf:about="http://www.wordpress.com/blogs/introduction to RDF">
<rdf:subject>introduction to RDF</rdf:subject>
<rdf:object>vj</rdf:object>
<rdf:value> formality</rdf:value>
<rdf:value>intro</rdf:value>
</rdf:Description>
</rdf:RDF>
The user will enter a keyword. I want to write a PHP program that will look into the
<rdf:value> fields in all the RDF files to see if the keyword given by the user and the value in <rdf:value> match. If there is a match, the program has to return the <rdf:object> field's value ( in this case, "vj" )
I have deployed wordpress locally in WAMP. The entire website is in PHP. I dont know PHP. So, a million thanks if anyone can provide me with the code.
Thanks in advance...