content
| - %META:TOPICPARENT{name="VirtTipsAndTricksGuide"}%
---+ How can I incorporate Content Negotiation into RDF bulk loaders?
The examples from below demonstrate how to incorporate Content Negotiation into RDF bulk loaders:
* Using the [[http://docs.openlinksw.com/virtuoso/fn_rdf_load_rdfxml.html][<nowiki>RDF_LOAD_RDFXML</nowiki>]] function:
<verbatim>
DB.DBA.RDF_LOAD_RDFXML (http_get ('http://purl.org/ontology/mo/', null, 'GET', 'Accept: application/rdf+xml', null, null, 3), 'http://purl.org/ontology/mo/', 'http://purl.org/ontology/mo/') .
</verbatim>
* Using the [[http://docs.openlinksw.com/virtuoso/fn_ttlp.html][TTLP]] function: The call to http client should be modified to ask for appropriate content type as for ex:
<verbatim>
DB.DBA.TTLP (http_get ('http://purl.org/ontology/mo/', null, 'GET', 'Accept: text/n3', null, null, 3), 'http://purl.org/ontology/mo/', 'http://purl.org/ontology/mo/'), '...', '...');
</verbatim>
---++Related
* [[VirtTipsAndTricksGuide][Virtuoso Tips and Tricks Collection]]
* [[http://docs.openlinksw.com/virtuoso/rdfinsertmethods.html][RDF Insert Methods in Virtuoso]]
|