You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by abhishek raj <ab...@gmail.com> on 2016/04/28 16:04:30 UTC

[Urgent] Query execution in Apache-Jen

Hello everyone,
I want to know the modules involved in query execution. Suppose I want to
insert my own module in Apache-Jena for Query over some rdf-graph. What
should I do ?

Re: [Urgent] Query execution in Apache-Jen

Posted by Andy Seaborne <an...@apache.org>.
On 30/04/16 07:28, abhishek raj wrote:
> We need to understand time complexity of each of the modules. Thus we
> are looking for the time spent in each module. A clear understanding of
> the control flow when a query evaluation is fired will help us in
> evaluation time in each module.

There is a lot more to working with SPARQL and evaluating a query than 
just executing it.

OpExecutor is the main class to drive execution.

	Andy

>
>
> On Fri, Apr 29, 2016 at 3:59 PM, Andy Seaborne <andy@apache.org
> <ma...@apache.org>> wrote:
>
>     On 29/04/16 03:42, abhishek raj wrote:
>
>         First of all, sorry for the use "URGENT"
>
>         Now, when we open source-code of Apache-Jena (The source
>         distribution,
>         which includes the source for Fuseki and all modules in the release
>         jena-3.0.1-source-release.zip (MD5, PGP
>         <https://jena.apache.org/download/index.cgi> ) we got many files
>         like
>         jena-base, jena-arq, apache-jean, jena-csv and many more.
>         Now I have some rdf file and a arq query file, I wanted to run
>         the query
>         over the rdf. I ran it and got some result. Now when I open
>         /home/neo/jena-3.0.1/jena-arq/src/main/java/org/apache, I got Query
>         folder. There are so many files here, I am not getting how the
>         files are
>         related.
>
>
>     I'm confused as to why you need the source code and not use the
>     binaries and public APIs as per the documentation.
>
>         Another problem, suppose, my query is
>         SELECT ?x ?y
>             { :x :p ?x }
>         which files are involved in execution of this query, means deciding
>         whether query is SELECT or not, where is result get stored?
>
>
>     The "Query" tell you which kind of query it is.
>
>     As to the execution - lots of files are involved internally - but
>     what are you trying to find out by looking at them?
>
>              Andy
>
>
>
>
>         On Thu, Apr 28, 2016 at 8:41 PM, Andy Seaborne <andy@apache.org
>         <ma...@apache.org>
>         <mailto:andy@apache.org <ma...@apache.org>>> wrote:
>
>              On 28/04/16 15:04, abhishek raj wrote:
>
>                  Hello everyone,
>                  I want to know the modules involved in query execution.
>
>
>              Use all of them - use maven and depend on apache-jena-libs
>
>         http://jena.apache.org/download/maven.html
>
>              thenn you won't miss recursive dependencies.
>
>
>                  Suppose I want to
>                  insert my own module in Apache-Jena for Query over some
>                  rdf-graph. What
>                  should I do ?
>
>
>              What are you trying to do? That description is not clear as
>         to what
>              you are trying to achieve.
>
>                       Andy
>
>
>              PS Everyone's questions are "Urgent"
>
>
>
>


Re: [Urgent] Query execution in Apache-Jen

Posted by abhishek raj <ab...@gmail.com>.
We need to understand time complexity of each of the modules. Thus we are
looking for the time spent in each module. A clear understanding of the
control flow when a query evaluation is fired will help us in evaluation
time in each module.


On Fri, Apr 29, 2016 at 3:59 PM, Andy Seaborne <an...@apache.org> wrote:

> On 29/04/16 03:42, abhishek raj wrote:
>
>> First of all, sorry for the use "URGENT"
>>
>> Now, when we open source-code of Apache-Jena (The source distribution,
>> which includes the source for Fuseki and all modules in the release
>> jena-3.0.1-source-release.zip (MD5, PGP
>> <https://jena.apache.org/download/index.cgi> ) we got many files like
>> jena-base, jena-arq, apache-jean, jena-csv and many more.
>> Now I have some rdf file and a arq query file, I wanted to run the query
>> over the rdf. I ran it and got some result. Now when I open
>> /home/neo/jena-3.0.1/jena-arq/src/main/java/org/apache, I got Query
>> folder. There are so many files here, I am not getting how the files are
>> related.
>>
>
> I'm confused as to why you need the source code and not use the binaries
> and public APIs as per the documentation.
>
> Another problem, suppose, my query is
>> SELECT ?x ?y
>>    { :x :p ?x }
>> which files are involved in execution of this query, means deciding
>> whether query is SELECT or not, where is result get stored?
>>
>
> The "Query" tell you which kind of query it is.
>
> As to the execution - lots of files are involved internally - but what are
> you trying to find out by looking at them?
>
>         Andy
>
>
>
>
>> On Thu, Apr 28, 2016 at 8:41 PM, Andy Seaborne <andy@apache.org
>> <ma...@apache.org>> wrote:
>>
>>     On 28/04/16 15:04, abhishek raj wrote:
>>
>>         Hello everyone,
>>         I want to know the modules involved in query execution.
>>
>>
>>     Use all of them - use maven and depend on apache-jena-libs
>>
>>     http://jena.apache.org/download/maven.html
>>
>>     thenn you won't miss recursive dependencies.
>>
>>
>>         Suppose I want to
>>         insert my own module in Apache-Jena for Query over some
>>         rdf-graph. What
>>         should I do ?
>>
>>
>>     What are you trying to do? That description is not clear as to what
>>     you are trying to achieve.
>>
>>              Andy
>>
>>
>>     PS Everyone's questions are "Urgent"
>>
>>
>>
>

Re: [Urgent] Query execution in Apache-Jen

Posted by Andy Seaborne <an...@apache.org>.
On 29/04/16 03:42, abhishek raj wrote:
> First of all, sorry for the use "URGENT"
>
> Now, when we open source-code of Apache-Jena (The source distribution,
> which includes the source for Fuseki and all modules in the release
> jena-3.0.1-source-release.zip (MD5, PGP
> <https://jena.apache.org/download/index.cgi> ) we got many files like
> jena-base, jena-arq, apache-jean, jena-csv and many more.
> Now I have some rdf file and a arq query file, I wanted to run the query
> over the rdf. I ran it and got some result. Now when I open
> /home/neo/jena-3.0.1/jena-arq/src/main/java/org/apache, I got Query
> folder. There are so many files here, I am not getting how the files are
> related.

I'm confused as to why you need the source code and not use the binaries 
and public APIs as per the documentation.

> Another problem, suppose, my query is
> SELECT ?x ?y
>    { :x :p ?x }
> which files are involved in execution of this query, means deciding
> whether query is SELECT or not, where is result get stored?

The "Query" tell you which kind of query it is.

As to the execution - lots of files are involved internally - but what 
are you trying to find out by looking at them?

	Andy



>
> On Thu, Apr 28, 2016 at 8:41 PM, Andy Seaborne <andy@apache.org
> <ma...@apache.org>> wrote:
>
>     On 28/04/16 15:04, abhishek raj wrote:
>
>         Hello everyone,
>         I want to know the modules involved in query execution.
>
>
>     Use all of them - use maven and depend on apache-jena-libs
>
>     http://jena.apache.org/download/maven.html
>
>     thenn you won't miss recursive dependencies.
>
>
>         Suppose I want to
>         insert my own module in Apache-Jena for Query over some
>         rdf-graph. What
>         should I do ?
>
>
>     What are you trying to do? That description is not clear as to what
>     you are trying to achieve.
>
>              Andy
>
>
>     PS Everyone's questions are "Urgent"
>
>


Re: [Urgent] Query execution in Apache-Jen

Posted by abhishek raj <ab...@gmail.com>.
First of all, sorry for the use "URGENT"

Now, when we open source-code of Apache-Jena (The source distribution,
which includes the source for Fuseki and all modules in the release
jena-3.0.1-source-release.zip
(MD5, PGP <https://jena.apache.org/download/index.cgi> ) we got many files
like jena-base, jena-arq, apache-jean, jena-csv and many more.
Now I have some rdf file and a arq query file, I wanted to run the query
over the rdf. I ran it and got some result. Now when I open
/home/neo/jena-3.0.1/jena-arq/src/main/java/org/apache,
I got Query folder. There are so many files here, I am not getting how the
files are related.

Another problem, suppose, my query is
SELECT ?x ?y
  { :x :p ?x }
which files are involved in execution of this query, means deciding whether
query is SELECT or not, where is result get stored?

On Thu, Apr 28, 2016 at 8:41 PM, Andy Seaborne <an...@apache.org> wrote:

> On 28/04/16 15:04, abhishek raj wrote:
>
>> Hello everyone,
>> I want to know the modules involved in query execution.
>>
>
> Use all of them - use maven and depend on apache-jena-libs
>
> http://jena.apache.org/download/maven.html
>
> thenn you won't miss recursive dependencies.
>
>
> Suppose I want to
>> insert my own module in Apache-Jena for Query over some rdf-graph. What
>> should I do ?
>>
>
> What are you trying to do? That description is not clear as to what you
> are trying to achieve.
>
>         Andy
>
>
> PS Everyone's questions are "Urgent"
>
>

Re: [Urgent] Query execution in Apache-Jen

Posted by Andy Seaborne <an...@apache.org>.
On 28/04/16 15:04, abhishek raj wrote:
> Hello everyone,
> I want to know the modules involved in query execution.

Use all of them - use maven and depend on apache-jena-libs

http://jena.apache.org/download/maven.html

thenn you won't miss recursive dependencies.


> Suppose I want to
> insert my own module in Apache-Jena for Query over some rdf-graph. What
> should I do ?

What are you trying to do? That description is not clear as to what you 
are trying to achieve.

	Andy
	

PS Everyone's questions are "Urgent"