Can't import a RDF file retrieved via TRKG API to Neo4j using the semantics.importRDF stored procedu
How can I import a RDF file retrieved via TRKG API to Neo4j using the semantics.importRDF stored procedure?
After retrieving a rdf file via TRKG API and placing the file in the import directory of Neo4j which I built on my laptop PC, I tried to import the file to the Neo4j executing the following commands, but somehow I can't complete importing it successfully, even though no error messages appear.
Best Answer
-
It appears that the file path you have used in semantics.importRDF call is incorrect. On Linux systems or similar systems including Mac your call should look like
CALL semantics.importRDF("file:///home/fcay/data/CORE_ENTITIES_value_chains.nt","N-Triples",{})
On Windows systems it should look like
CALL semantics.importRDF("file:////C:/Users/u6067304/Documents/content sets/CORE_ENTITIES_value_chains.nt","N-Triples", {})
Please make sure that you are providing the absolute path to the n-triple file and you are using the correct number of slashes right after file: in the call. Please let us know if this resolves the problem you are seeing.
Best wishes,
Faruk
1
Answers
-
I have forwarded your issue to Faruk Cay, data scientist on the graph team, who can help
you with loading to neo4j. Best wishes, Brian1 -
Thank you so much for your swift advice and I could import the value chain file successfully!
I will continue to import the other data sets(e.g. organization, people, metadata, etc.) to the same Neo4j data base and wonder how to stitch all the contents sets after I imports the others.
Could you advise?
0 -
I am glad that your problem is resolved. Before I answer your next question I want to point out that Neo4j is not Data Fusion and it represents data and relationships in a different way. Depending on your use case stitching may not be necessary and appropriate cypher queries could be sufficient to get the results. If you have to stitch the data you loaded, you can follow several strategies. One approach would be to create bidirectional sameAs relationships between two nodes that are being stitched. Other approaches will require creating new nodes for the stitched entities.
0 -
Sorry again on this advice of yours above.
Though I could import the files on Windows, I'm in trouble when importing them on Linux as you can see in the attached screenshots.
Do you have any idea why I can't import the files even though the files are located in the directory which I write in the code?
0 -
Based on the information under extraInfo column in the first screenshot, you have not yet created an index on Resource(uri). Please issue the following command before executing semantics.importRDF:
CREATE
INDEX ON :Resource(uri)Please let me know if this resolves the problem you are having with importing RDF data on your linux system.
1 -
Thanks, @faruk.cay!
I could import several data sets like value chains, metadata successfully, but somehow haven't been able to finish importing organization data for more than 12 hours...and I couldn't even kill the importing process as follows....
Could you please give me your advice on how to resolve this issue?
0 -
First make sure that the system you are using is equipped to handle such large datasets. It should have sufficiently large memory, reasonably high CPU speeds and enough free disk space. If you have executed some cypher queries that you expect to return large results or closed execution frames before getting the results, sometimes this is causing Neo4j to hang. You may need to shutdown Neo4j and restart it before executing the semantics.importRDF call. We have observed that Neo4j can take 5 hours or more for importing organization data on a laptop.
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛