Rdf.XmlSourceReading and writing RDF/XML.
The type of XML tree walked through to fill the graph.
get_first tree tag returns the first child with tag s of the given xml tree or None if the given node has no such child.
type state = {subject : Term.term option;predicate : Iri.t option;xml_base : Iri.t;xml_lang : string option;datatype : Iri.t option;namespaces : string Iri.Map.t;}Type of current state when walking through the xml tree.
Global state of the analysis.
Fill a graph from a current state, a pair (global state, li counter), and a property node.
Input graph from string. Default base is the graph name.
Same as from_string but read from the given file.
Same as from_string but read from the given Xmlm.input handle.
Same as from_string but read from the given Xml tree.
Return a RDF/XML representation of the graph in a string.
val to_file :
?compact:bool ->
?namespaces:(Iri.t * string) list ->
Graph.graph ->
string ->
unitSame as to_string but writes to the given file.