Hello Kaushik
To achieve your objective, I suggest you to read the Giraph I/O page at
http://giraph.apache.org/io.html and to study the org.apache.giraph.io package
on the java docs.
Otherwise you could program a simple format converter so that you can use one
of the existing input formats or create a new custom Json input format (that is
easier to program in Giraph) extending TextVertexReaderFromEachLineProcessed.
Hope this helps :)
Alessio
Sent from Outlook Mobile
_____________________________
From: Kaushik Baruah <[email protected]>
Sent: Thursday, December 17, 2015 11:57 AM
Subject: How to construct graph from rdf triples in Giraph
To: <[email protected]>
Hi,
My input file consists of rdf triples of the following format –
V1,EdgeRelation-1,V2
V3,EdgeRelation-2,V4
…….etc.
Where Vi are vertices and EdgeRelation-i represent an edge between two
vertices.
For example –
Fury,hasGenre,War
How to take such file as input in Giraph and construct the graph out of it.
Best,
Kaushik