giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kaushik Baruah <kaushikbar...@gmail.com>
Subject Re: How to construct graph from rdf triples in Giraph
Date Fri, 18 Dec 2015 09:00:59 GMT
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 <ingarleo@icloud.com> 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 <kaushikbaruaa@gmail.com>
> Sent: Thursday, December 17, 2015 11:57 AM
> Subject: How to construct graph from rdf triples in Giraph
> To: <user@giraph.apache.org>
>
>
>
> 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
>
>
>

Mime
View raw message