Menu

#72 writeAsHtml for RdfSerializer

open
nobody
Serializers (1)
5
2012-06-05
2012-06-05
Anonymous
No

The model function writeAsHtml() is really useful!

I'm using the RdfSerializer in api/syntax, as I am wanting namespace declarations to be included in the output RDF so I'm doing..
$ser = new RdfSerializer();
$ser->addNamespacePrefix("foaf", FOAF);
$ser->addNamespacePrefix("cco", CCO);
...

and then saving to file as:
$ser->saveAs($model,$fname);

What I'd really appreciate would be to be able to do something like:
$ser->writeAsHtml($model);

Does this functionality exist?

Discussion