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.

Reply via email to