I'm using schema.org to create a RDF/XML file using RDFlib in Python, and am trying to nest elements into a PropertyValue element like so, but it's not working...
g.add((p, n.PropertyValue, (p, n.minValue, Literal(130.15))))
I'm trying to end up with this result...
<schema:PropertyValue>
<schema:maxValue rdf:datatype="http://www.w3.org/2001/XMLSchema#double">308.0</schema:maxValue>
<schema:name>Temperature</schema:name>
<schema:minValue rdf:datatype="http://www.w3.org/2001/XMLSchema#double">130.15</schema:minValue>
</schema:PropertyValue>
How could I do this in RDFlib? Thanks in advance.