%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][RDF_LOAD_RDFXML]] function:
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/') .
* 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:
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/'), '...', '...');
---++Related
* [[VirtTipsAndTricksGuide][Virtuoso Tips and Tricks Collection]]
* [[http://docs.openlinksw.com/virtuoso/rdfinsertmethods.html][RDF Insert Methods in Virtuoso]]