Parse RDF file and save to Visual FoxPro

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

To import Xml format RDF file (.rdf, .owl) to Visual FoxPro, https://www.withdata.com/blog/rdftovfp/visual-foxpro-import-rdf.html

To import RDF Turtle file (.ttl, .n3) to Visual FoxPro, https://www.withdata.com/blog/rdftovfp/ttl-to-visual-foxpro.html

To import RDF N-Triples file (.nt, .ntriples) to Visual FoxPro, https://www.withdata.com/blog/rdftovfp/n-triples-to-visual-foxpro.html

To import RDF N-Quads file (.nq, .nquads) to Visual FoxPro, https://www.withdata.com/blog/rdftovfp/n-quads-to-visual-foxpro.html

RDF → Visual FoxPro reference

Type mapping

Value kindin RDFin Visual FoxPro
Int"1234"^^xsd:intNumeric(10,0)
Bigint"9007199254740993"^^xsd:longNumeric(19,0)
Decimal"1234.56"^^xsd:decimalNumeric(p,s)
Float"1.234e10"^^xsd:doubleFloat
Textplain literal without a datatypeCharacter(n)
Long textplain literal; newlines allowed insideMemo
Date"2026-09-18"^^xsd:dateDate
Datetime"2026-09-18T14:30:00Z"^^xsd:dateTimeDateTime
Binary"base64..."^^xsd:base64BinaryGeneral
Boolean"true"^^xsd:booleanLogical
JSONa literal, or reified as its own sub-graph(none)

Dialect differences

RDF is a file format and Visual FoxPro 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 Visual FoxPro
port—(file-based)
identifiersXML attribute quoting; entities for reserved characters—
row limit—(driver dependent)
datesxsd:dateTime typed literalsDate (D), DateTime (T)
long text—Memo (M)
binaryxsd:base64Binary typed literalsGeneral (G)
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—

No counterpart

  • RDF values of kind JSON have nowhere to go in Visual FoxPro.

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.


Posted

in

by