{
    "mode": "perldoc",
    "parameter": "RDF::Redland::Serializer",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/RDF%3A%3ARedland%3A%3ASerializer/json",
    "generated": "2026-06-13T09:32:14Z",
    "synopsis": "use RDF::Redland;\n...\nmy $serializer=new RDF::Redland::Serializer(\"ntriples\");\n$serializer->serializemodeltofile(\"foo.rdf\", $baseuri, $model);",
    "sections": {
        "NAME": {
            "content": "RDF::Redland::Serializer - Redland RDF Serializing to Syntax Class\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use RDF::Redland;\n\n...\nmy $serializer=new RDF::Redland::Serializer(\"ntriples\");\n\n$serializer->serializemodeltofile(\"foo.rdf\", $baseuri, $model);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This class represents serializers that turn RDF graphs into various syntaxes. from an\nRDF::Redland::Model object.\n",
            "subsections": []
        },
        "CONSTRUCTORS": {
            "content": "new [NAME [MIMETYPE [URI]]]\nCreate a new RDF::Redland::Serializer object for a syntax serializer named *NAME*, with MIME\nType *MIMETYPE* and/or URI *URI*. Any field can be undef or omitted; if all are omitted,\nthe default serializer is used, currently 'ntriples'.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "serializemodeltofile FILENAME BASEURI MODEL\nSerialize the RDF Graph *MODEL* as syntax with the base RDF::Redland::URI *BASEURI* to file\n*FILENAME*.\n\nserializemodeltostring BASE-URI MODEL\nSerialize the RDF Graph *MODEL* to a syntax. If no serializer name is given, the default\nserializer RDF/XML is used.\n\nsetnamespace PREFIX URI\nDefine a namespace *URI* with the supplied *PREFIX* for use in serializing an RDF Graph.\n\nfeature URI [VALUE]\nGet/set a serializer feature. The feature is named via RDF::Redland::URI *URI* and the value\nis a string. If *VALUE* is given, the feature is set to that value, otherwise the current\nvalue is returned.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "RDF::Redland::Parser, RDF::Redland::URI\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Dave Beckett - http://www.dajobe.org/\n",
            "subsections": []
        }
    },
    "summary": "RDF::Redland::Serializer - Redland RDF Serializing to Syntax Class",
    "flags": [],
    "examples": [],
    "see_also": []
}