Withdata Software

Parse RDF file and save to Azure

Want to parse RDF file and save to Azure? Want to schedule and automate this importing task?

To import Xml format RDF file (.rdf, .owl) to Azure, https://www.withdata.com/blog/rdftoazure/azure-import-rdf.html

To import RDF Turtle file (.ttl, .n3) to Azure, https://www.withdata.com/blog/rdftoazure/ttl-to-azure.html

To import RDF N-Triples file (.nt, .ntriples) to Azure, https://www.withdata.com/blog/rdftoazure/n-triples-to-azure.html

To import RDF N-Quads file (.nq, .nquads) to Azure, https://www.withdata.com/blog/rdftoazure/n-quads-to-azure.html

RDF → Azure SQL reference

Type mapping

Value kindin RDFin Azure SQL
Int"1234"^^xsd:intint
Bigint"9007199254740993"^^xsd:longbigint
Decimal"1234.56"^^xsd:decimaldecimal(p,s)
Float"1.234e10"^^xsd:doublefloat
Textplain literal without a datatypenvarchar(n)
Long textplain literal; newlines allowed insidenvarchar(max)
Date"2026-09-18"^^xsd:datedate
Datetime"2026-09-18T14:30:00Z"^^xsd:dateTimedatetime2
Binary"base64..."^^xsd:base64Binaryvarbinary(max)
Boolean"true"^^xsd:booleanbit
JSONa literal, or reified as its own sub-graphnvarchar(max)

Dialect differences

RDF is a file format and Azure SQL is a database server, so the target has to be told the types the file never carried - the rows below are where the two sides diverge.

Propertyin RDFin Azure SQL
port—1433
identifiersXML attribute quoting; entities for reserved characters[square brackets]
row limit—SELECT TOP n
datesxsd:dateTime typed literalsdatetime2, date, time
long text—nvarchar(max)
binaryxsd:base64Binary typed literalsvarbinary(max)
separatorXML elements (rdf:Description / rdf:resource)—
encodingDeclared in the XML declaration—
typingEvery value is a resource or a typed literal—
shapeGraph of triples; there are no rows or columnsTables of rows and columns
ceilingWhole document is usually parsed into memory—

Command line

SideCommand
Azure SQLbcp
Azure SQL (load)bcp, or BULK INSERT

Convert your data online, free

Free in-browser converters for CSV, Excel, JSON, XML and SQL: Withdata Online Data Conversion. Large files, batch conversion or scheduling? See the offline desktop apps, or browse all data conversion tools.