Error while importing single rdf file

I am trying to import rdf file using dgraph live loader however I am getting syntax error. I am using version v20.03.0 and OS is Windows
The command I am using is
dgraph.exe live -f Corporations.rdf

The error is
[Decoder]: Using assembly version of decoder
I0712 15:46:22.499216 3444 init.go:99]

Dgraph version : v20.03.0
Dgraph SHA-256 : 2dd8a84711404f19a13375c377084795321f5e022eefafb869dbba6822b4d4fd
Commit SHA-1 : 147c8df9
Commit timestamp : 2020-03-30 17:28:31 -0700
Branch : HEAD
Go version : go1.14.1

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.

Running transaction with dgraph endpoint: 127.0.0.1:9080
Found 1 data file(s) to process
Processing data file “E:\Software\FIBO-Development\FIBO-Development-essence\be\Corporations\Corporations.rdf”
Error while processing data file “E:\Software\FIBO-Development\FIBO-Development-essence\be\Corporations\Corporations.rdf”: During pars
ing chunk in processLoadFile: while parsing line “<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n”: while lexing <?xml version=“1.0” encoding
=“UTF-8”?> at line 1 column 5: Unexpected character ’ ’ while parsing IRI

I am not able to upload file as getting error “New user cannot uplpad file”

Adding a link from where sample can be downloaded

https://spec.edmcouncil.org/fibo/

Which file should I download from here to reproduce your error?

@robindgraph , I reproduced the error from the file in https://spec.edmcouncil.org/fibo/ontology/master/latest/dev.rdf.zip (Got hint from FIBO-Development\FIBO-Development-essence\be\Corporations\Corporations.rdf) [RDF-XML]
This is RDF-XML format. But we support NQuad syntax for RDF.

This nquad format might work for you. Also, you may want to look at external ID (XID). This would be needed for your dataset.

2 Likes

Thanks Naman, I will give it a try.