| Did you know ... | Search Documentation: |
| rdf_write.pl -- Write RDF/XML from a list of triples |
This module writes an RDF/XML document from a list of triples of the
format rdf(Subject, Predicate, Object). It is primarily intended for
communicating computed RDF model fragments to external programs using
RDF/XML.
When used from the HTTP library, use the following code:
reply_graph(RDF) :-
format('Content-type: application/rdf+xml; charset=UTF-8~n~n'),
rdf_write_xml(current_output, RDF).
rdf_write_xml(+Out:stream, +Triples:list(rdf(S,P,O))) is det
rdf_write_header(+Out, +Triples)[private]
xml_escape_parameter_entity(+In, -Out) is det[private]
used_namespaces(+Triples:list(rdf(S,P,O)), -List:atom) is det[private]
resources(+Triples:list(rdf(S,P,O)), -Resources:list(atom)) is det[private]
decl_used_predicate_ns(+Triples:list(rdf(S,P,O)))[private]
node_id_map(+Triples, -IdMap) is det[private]
save_attributes(+List, +DefNS, +Out, +NodeIDs, Element, +Indent, +Anon)[private]
save_attribute(+Where, +Triple, +DefNS, +Out, +NodeIDs, +Indent, +Anon)[private]
rdf_p_id(+Resource, +DefNS, -NSLocal)[private]
is_bag_li_predicate(+Pred) is semidet[private]
rdf_id(+Resource, +DefNS, -NSLocal)[private]
rdf_write_id(+Out, +NSLocal) is det[private]
rdf_att_id(+URI, +DefNS, -ID)[private]
rdf_value(+Resource, -Text, +Encoding)[private]NOTE: the to_be_described/1 trick ensures entity rewrite in resources that start with 'http://t-d-b.org?'. This is a of a hack to save the artchive data in the MultimediaN project. We should use a more general mechanism.