Hi,
I want to parse the file rdf :
<c:component xmlns:c="http://www.w3.org/2002/12/cal/icaltzd#">
<c:Vevent r:about="#hcalendar-event-title" xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<c:summary>event title</c:summary>
<c:dtstart r:datatype="http://www.w3.org/2001/XMLSchema#date">20070320</c:dtstart>
<c:dtend r:datatype="http://www.w3.org/2001/XMLSchema#date">20070321</c:dtend>
<c:url r:resource="#hcalendar-event-title"/>
</c:Vevent>
</c:component>
I checked the file in the W3C RDF parser : it's OK.
http://www.w3.org/RDF/Validator/
Code :
$parser = new RdfParser();
$model = $parser->generateModel($_FILES["rdffile"]["tmp_name"]);
Errors :
Warning: RDFAPI error (class: parser): unknown rdf attribute: about. in W:\www\wp-content\plugins\myavatar\rdfapi-php\api\syntax\RdfParser.php on line 1045
Warning: RDFAPI error (class: parser): only one element allowed inside a property element. in W:\www\wp-content\plugins\myavatar\rdfapi-php\api\syntax\RdfParser.php on line 1045
Bye
Logged In: YES
user_id=971211
Originator: YES
With this file, it's OK with RDFAPI.
<r:RDF xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<c:Vcalendar xmlns:c="http://www.w3.org/2002/12/cal/icaltzd#">
<c:prodid>-//connolly.w3.org//palmagent 0.6 (BETA)//EN</c:prodid>
<c:version>2.0</c:version>
<c:component>
<c:Vevent r:about="#hcalendar-event-title">
<c:summary>event title</c:summary>
<c:dtstart r:datatype="http://www.w3.org/2001/XMLSchema#date">20070320</c:dtstart>
<c:dtend r:datatype="http://www.w3.org/2001/XMLSchema#date">20070321</c:dtend>
<c:url r:resource="#hcalendar-event-title"/>
</c:Vevent>
</c:component>
</c:Vcalendar>
</r:RDF>