Want to parse RDF file and save to Oracle ? Want to schedule and automate this importing task?
To import Xml format RDF file (.rdf, .owl) to Oracle, https://www.withdata.com/blog/rdftooracle/oracle-import-rdf.html
To import RDF Turtle file (.ttl, .n3) to Oracle, https://www.withdata.com/blog/rdftooracle/ttl-to-oracle.html
To import RDF N-Triples file (.nt, .ntriples) to Oracle, https://www.withdata.com/blog/rdftooracle/n-triples-to-oracle.html
To import RDF N-Quads file (.nq, .nquads) to Oracle, https://www.withdata.com/blog/rdftooracle/n-quads-to-oracle.html
RDF → Oracle reference
Type mapping
| Value kind | in RDF | in Oracle |
|---|---|---|
| Int | "1234"^^xsd:int | NUMBER(10) |
| Bigint | "9007199254740993"^^xsd:long | NUMBER(19) |
| Decimal | "1234.56"^^xsd:decimal | NUMBER(p,s) |
| Float | "1.234e10"^^xsd:double | BINARY_DOUBLE |
| Text | plain literal without a datatype | VARCHAR2(n) |
| Long text | plain literal; newlines allowed inside | CLOB |
| Date | "2026-09-18"^^xsd:date | DATE |
| Datetime | "2026-09-18T14:30:00Z"^^xsd:dateTime | TIMESTAMP |
| Binary | "base64..."^^xsd:base64Binary | BLOB |
| Boolean | "true"^^xsd:boolean | NUMBER(1) |
| JSON | a literal, or reified as its own sub-graph | CLOB |
Dialect differences
RDF is a file format and Oracle 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.
| Property | in RDF | in Oracle |
|---|---|---|
| port | — | 1521 |
| identifiers | XML attribute quoting; entities for reserved characters | "double quotes" |
| row limit | — | FETCH FIRST n ROWS ONLY |
| dates | xsd:dateTime typed literals | DATE, TIMESTAMP |
| long text | — | CLOB, NCLOB |
| binary | xsd:base64Binary typed literals | BLOB, BFILE |
| separator | XML elements (rdf:Description / rdf:resource) | — |
| encoding | Declared in the XML declaration | — |
| typing | Every value is a resource or a typed literal | — |
| shape | Graph of triples; there are no rows or columns | Tables of rows and columns |
| ceiling | Whole document is usually parsed into memory | — |
Command line
| Side | Command |
|---|---|
| Oracle | exp / expdp |
| Oracle (load) | sqlldr (SQL*Loader) |
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.