I am making a tool to render a program into SVG representation of the program. I would like to store input source code into SVG so that it can be reproduced if necessary. The source code is in JSON (it is a domain specific language).
I am currently setting <metadata> for the SVG to:
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:schema="http://schema.org/">
  <schema:SoftwareSourceCode">
    <schema:text>{...}</schema:text>
  </schema:SoftwareSourceCode>
</rdf:RDF>
Is this a correct way to embed source code into SVG <metadata>? Is some other schema, entity, or property a better choice?
What I do not know how to do is how to set rdf:datatype for schema:text to inform the reader that contents are JSON?