Re: Re: About Rya loadData and query

2019-03-26 Thread David Lotts
Let make sure you have seen the manual which has a quick start guide:

https://github.com/apache/incubator-rya/blob/5463da23c7cd5eaddf2ab13f0b42141211ab59f2/extras/rya.manual/src/site/markdown/index.md

Here is a better example that loads a file then does queries.  This one
uses MongoDB, but most everything is the same for Accumulo.

https://github.com/apache/incubator-rya/blob/5463da23c7cd5eaddf2ab13f0b42141211ab59f2/extras/indexingExample/src/main/java/MongoRyaDirectExample.java#L902

david.


Re:Re: About Rya loadData and query

2019-03-26 Thread 徐炜淇
Hi David,
Thank you for your reply! But I still have questions.
I want to know more information about the sequence about load data query.
For example, as the normal process, a RDF file named rdf.nt load into Rya, 
first, A.class get the data, B.class handle the data as the predefined index 
structure, and C.class load data into Accumulo.
For a query, 1.class get the query instance, 2.class parse statement, 3.class 
connect to Accumulo and obtain the data.
There are so many similar files and classes in Rya-project, so I will be 
confused, I don't know which one is core and effective. I can't know in real 
time which class to call when performing an operation.
My question looks stupid, so please forgive me.


Best,
Weiqi









From: David Lotts 
Date: 2019-03-25 23:40:57
To:  dev@rya.incubator.apache.org
Subject: Re: About Rya loadData and query>Take a look at this example code:
>https://github.com/apache/incubator-rya/blob/master/extras/indexingExample/src/main/java/RyaDirectExample.java
>
>See the method testAddAndDelete()
>It inserts triples using a sparql insert statement, queries, then deletes.
>
>If you want to load lots of triples, see this document, it describes
>several ways to load data:
>
>https://github.com/apache/incubator-rya/blob/master/extras/rya.manual/src/site/markdown/loaddata.md
>
>For logging, just have a properties file on the class path like this:
>
>https://github.com/apache/incubator-rya/blob/master/extras/indexingExample/src/main/java/log4j.properties
>
>This one logs to the standard-out I think.
>
>Let us know if you have more questions.
>david.
>
>
>david.
>
>On Mon, Mar 25, 2019 at 10:30 AM 徐炜淇  wrote:
>
>> Hi,
>> I want know the sequence of loadData and the sequence of query, for
>> example: load data A, first execute loadOne.class, and second execute
>> loadTwo.class... And query data, execute queryOne.class at first, and so
>> on. And I can find only a few logs when I run Rya.
>> But I can't find any documents to answer my question. I tried to debug
>> Rya-project to get the sequence of load and query but failed.
>> Please, I need your help!
>>
>>
>> Best,
>> Weiqi
>>
>>
>>
>>
>>
>>
>>