Like I said, I get to choose my format so NTRIPLES it is.  I like your
second suggestion.  It's all programmatic and I have a background
with Hadoop so good! I am going to have a lot of files anyway.

It would appear I have everything I need here.  I just have to put it
together my way.  I see the RdfFileInputFormat, which can be set with
RDFFormat.  I am not sure how to use the RyaOutputFormat, but I'll give it
a try.  We'll see.

Thanks for the help.

On Mon, Feb 26, 2018 at 12:06 PM, David Lotts <dlo...@gmail.com> wrote:

> As David B. says, the shell is a great option:
> https://github.com/apache/incubator-rya/blob/master/
> extras/rya.manual/src/site/markdown/shell.md
>
> The load-data command can be used to load RDF Statement data in a variety
> > of formats. If only the --file option is specified, the shell will
> > attempt to determine the file format by filename. To specify a specific
> > format, include the --format option. Use the help load-data command to
> > see a list of all available formats.
> >
> rya/myAccumuloInstance:rya1_> load-data --file  examples/triples.nt
> Detected RDF Format: N-Triples (mimeTypes=text/plain; ext=nt)
> Loaded the file: 'examples/triples.nt' successfully in 1.843 seconds.
> rya/myAccumuloInstance:rya1_>
>
>
>
> Also, there are several examples here if you want to make it part of your
> app:
> https://github.com/apache/incubator-rya/blob/master/
> extras/rya.manual/src/site/markdown/loaddata.md
>
> This is an excerpt from the last example on the page, using the API:
>
> //load data from filefinal File file = new File("ntriples.ntrips");
> conn.add(new FileInputStream(file), file.getName(),
>         RDFFormat.NTRIPLES, new Resource[]{});
>
> I believe that
>
> RDFFormat.NTRIPLES
>
> Can be replaced with some other formats.
> ​david.
>



-- 
There are ways and there are ways,

Geoffry Roberts

Reply via email to