{"id":6562,"date":"2025-06-16T07:39:32","date_gmt":"2025-06-16T07:39:32","guid":{"rendered":"http:\/\/www.withdata.com\/blog\/?p=6562"},"modified":"2025-06-16T08:39:32","modified_gmt":"2025-06-16T08:39:32","slug":"rdf-to-mongodb","status":"publish","type":"post","link":"https:\/\/www.withdata.com\/blog\/filetomongo\/rdf-to-mongodb.html","title":{"rendered":"Import RDF to MongoDB collection"},"content":{"rendered":"<p>Want to parse  <a href=\"https:\/\/www.w3.org\/TR\/rdf-syntax-grammar\/\">RDF<\/a>  file and save to <a href=\"https:\/\/www.mongodb.com\/\">MongoDB<\/a> collection?<\/p>\n<p>Try Withdata <a href=\"https:\/\/www.withdata.com\/file-to-mongo\/\">FileToMongo<\/a>, a RDF to MongoDB converter for Windows, MacOS, and Linux, Import RDF to MongoDB, Easy and Fast.<\/p>\n<ul>\n<li>Can run in GUI mode, <a href=\"#import\">Step by Step<\/a>, just a few mouse clicks.<\/li>\n<li>Can run in <a href=\"#cmd\">Command line<\/a>, for <a href=\"#task\">Scheduled Tasks<\/a> and Streams.<\/li>\n<li>Support all MongoDB deployment types: standalone, replica set, sharded cluster, and <a href=\"https:\/\/www.mongodb.com\/atlas\">MongoDB Atlas<\/a>.<\/li>\n<\/ul>\n<p><a href=\"#download-top\" onclick=\"dtv.style.display = 'block';\">Download Withdata FileToMongo<\/a>  <a href=\"#download-top\" onclick=\"dtv.style.display = 'block';\"><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/download_3.jpg\" alt=\"Download FileToMongo\" width=\"80\" height=\"22\" style=\"max-width:100%;height:auto;\" \/><\/a> <span id=\"dtv\" style=\"display: none;\"><br \/>\n<a href=\"\/download.php?app=FileToMongo&#038;ver=win64\">Windows 64 bit<\/a><br \/>\n<a href=\"\/download.php?app=FileToMongo&#038;ver=win32\">Windows 32 bit<\/a><br \/>\n<a href=\"\/download.php?app=FileToMongo&#038;ver=deb\">Linux .deb (For Debian, Ubuntu) 64 bit<\/a><br \/>\n<a href=\"\/download.php?app=FileToMongo&#038;ver=rpm\">Linux .rpm (For Red Hat, Fedora, SUSE) 64 bit<\/a><br \/>\n<a href=\"\/download.php?app=FileToMongo&#038;ver=pkg\">MacOS 64 bit<\/a><br \/>\n<\/span><\/p>\n<h2>Import RDF file to MongoDB<\/h2>\n<p> Click &#8220;1 File To 1 Collection&#8221; at task dialog.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/filetomongo\/wizard-task.png\" ALT=\"Import XML data from RDF file To MongoDB - task window\" width=\"669\" height=\"427\" style=\"max-width:100%;height:auto;display:block;\"><\/p>\n<p>Select &#8220;Import File Type&#8221; with &#8220;XML&#8221;, and select &#8220;Source File From&#8221; with &#8220;File&#8221;.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/filetomongo\/wizard_type_xml-file.png\" alt=\"import RDF file to MongoDB collection - select type\" width=\"457\" height=\"192\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\" \/><\/p>\n<h3>1. Open RDF file.<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/filetomongo\/wizard_source_open-rdf.png\" alt=\"import RDF file to MongoDB - open RDF file\" width=\"640\" height=\"480\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\" \/><\/p>\n<h3>2. Config target MongoDB collection.<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/filetomongo\/wizard_destination_rdf-config.png\" alt=\"Load RDF file to MongoDB - config MongoDB collection\" width=\"640\" height=\"480\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\" \/><\/p>\n<h3>3. Preview data will be in MongoDB collection.<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/filetomongo\/wizard_summary_rdf.png\" alt=\"Transfer RDF file to MongoDB - summary\" width=\"640\" height=\"480\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\" \/><\/p>\n<h3>4. Import.<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/filetomongo\/wizard_import_rdf.png\" alt=\"Convert RDF file to MongoDB - import to MongoDB\" width=\"640\" height=\"480\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\" \/><\/p>\n<p>See importing results in MongoDB collection<\/p>\n<p>\n<img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/filetomongo\/wizard_result_rdf.png\" alt=\"Store RDF file to MongoDB - view  MongoDB collection\" width=\"640\" height=\"480\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\" \/><\/p>\n<h2 id=\"cmd\">Import RDF to MongoDB in command line<\/h2>\n<p><a href=\"https:\/\/www.withdata.com\/file-to-mongo\/cmd.html\" target=\"_blank\">Save &#8220;RDF to MongoDB&#8221; session<\/a>, then you can: <\/p>\n<ul>\n<li><a href=\"https:\/\/www.withdata.com\/file-to-mongo\/cmd.html#windows\" target=\"_blank\">Convert RDF to MongoDB in Windows command line.<\/a><\/li>\n<li><a href=\"https:\/\/www.withdata.com\/file-to-mongo\/cmd.html#linux\" target=\"_blank\">Convert RDF to MongoDB in Linux command line.<\/a><\/li>\n<li><a href=\"https:\/\/www.withdata.com\/file-to-mongo\/cmd.html#macos\" target=\"_blank\">Convert RDF to MongoDB in macOS command line.<\/a><\/li>\n<\/ul>\n<h2 id=\"task\">Set scheduled tasks for importing RDF to MongoDB<\/h2>\n<p>You can schedule and automate this &#8220;RDF to MongoDB&#8221; conversion task by: <\/p>\n<ol>\n<li><a href=\"https:\/\/withdata.com\/file-to-mongo\/cmd.html\" target=\"_blank\">Save session and create .bat (Windows) or .sh (Linux\/macOS) file for &#8220;RDF to MongoDB&#8221; conversion.<\/a><\/li>\n<li><a href=\"https:\/\/withdata.com\/dbtodb\/schedule-task.html\" target=\"_blank\">Set scheduled task for &#8220;RDF to MongoDB&#8221; conversion.<\/a><\/li>\n<\/ol>\n<hr style=\"clear: both;\" \/>\n<p><a href=\"https:\/\/www.withdata.com\/file-to-mongo\/\">More about Withdata FileToMongo<\/a> &#8211; <a href=\"https:\/\/www.withdata.com\/blog\/tag\/rdf-to-mongodb\">RDF to MongoDB Converter<\/a><\/p>\n<div id=\"download-bottom\" style=\"clear: both;\">\n<p>Download Withdata FileToMongo<a href=\"#download-bottom\" onclick=\"dbv.style.display = 'block';\"><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/btn_download_green.png\" alt=\"Download FileToMongo\" width=\"165\" height=\"50\" style=\"max-width:100%;height:auto;\" loading=\"lazy\" decoding=\"async\" \/><\/a> <span id=\"dbv\" style=\"display: none;\"><br \/>\n<a href=\"\/download.php?app=FileToMongo&#038;ver=win64\">Windows 64 bit<\/a><br \/>\n<a href=\"\/download.php?app=FileToMongo&#038;ver=win32\">Windows 32 bit<\/a><br \/>\n<a href=\"\/download.php?app=FileToMongo&#038;ver=deb\">Linux .deb (For Debian, Ubuntu) 64 bit<\/a><br \/>\n<a href=\"\/download.php?app=FileToMongo&#038;ver=rpm\">Linux .rpm (For Red Hat, Fedora, SUSE) 64 bit<\/a><br \/>\n<a href=\"\/download.php?app=FileToMongo&#038;ver=pkg\">MacOS 64 bit<\/a><br \/>\n<\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Want to parse RDF file and save to MongoDB collection? Try Withdata FileToMongo, a RDF to MongoDB converter for Windows, MacOS, and Linux, Import RDF to MongoDB, Easy and Fast. Can run in GUI mode, Step by Step, just a few mouse clicks. Can run in Command line, for Scheduled Tasks and Streams. Support all [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1707],"tags":[1440,1706,1914,2018,1993,2017],"class_list":["post-6562","post","type-post","status-publish","format-standard","hentry","category-filetomongo","tag-mongodb","tag-mongodb-import","tag-mongodb-import-file","tag-mongodb-import-rdf","tag-rdf","tag-rdf-to-mongodb"],"_links":{"self":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/6562","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/comments?post=6562"}],"version-history":[{"count":6,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/6562\/revisions"}],"predecessor-version":[{"id":37182,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/6562\/revisions\/37182"}],"wp:attachment":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/media?parent=6562"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/categories?post=6562"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/tags?post=6562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}