Hi, Thanks for your response. I have already tried extending TextVertexReaderFromEachLineProce <http://giraph.apache.org//TextVertexInputFormat.TextVertexReaderFromEachLineProcessed>ssed.and it seems to solve my purpose.
Best, Kaushik On Fri, Dec 18, 2015 at 2:10 PM, Alessio Arleo <[email protected]> wrote: > 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 > TextVertexReaderFromEachLineProce > <http://giraph.apache.org//TextVertexInputFormat.TextVertexReaderFromEachLineProcessed> > ssed. > > Hope this helps :) > > Alessio > > > Sent from Outlook Mobile <https://aka.ms/sdimjr> > > _____________________________ > 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 > > >
