Hi,
I am trying to parse rdfa and get rdfxml result.
Here is my code :
// Lookup the output format
$format = EasyRdf_Format::getFormat('rdfxml');
// Serialise to the new output format
$output = $graph->serialise($format);
if (!is_scalar($output)) {
$output = var_export($output, true);
}
print '<pre>'.htmlspecialchars($output).'</pre>';
The problem is : I have some datatype rdf:HTML, but the parser strips my tags, example : for <p property="htmlContent" datatype="rdf:HTML" >content <strong>of</strong> notion2</p>,
Instead to have : "content <strong>of</strong> notion2" as value of htmlContent, I have "content of notion2"