You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by "Zlatareva, Neli (Computer Science)" <Zl...@ccsu.edu> on 2017/02/20 20:57:20 UTC

Re: request for help with FROM keyword in ARQ

Hi, I am going through a book on SPARQL which uses ARQ. I am not able to successfully run even the simplest query with the FROM keyword.
Here is an example:
works fine:
PREFIX ab: <http://learningsparql.com/ns/addressbook#>
SELECT ?craigEmail
WHERE
{ ab:craig ab:email ?craigEmail . }

but

PREFIX ab: <http://learningsparql.com/ns/addressbook#>
SELECT ?craigEmail FROM <ex002.ttl>
WHERE
{ ab:craig ab:email ?craigEmail . }

does not work -- does not return anything -- just an empty table with the column heading. I have the same problem trying to query a remote data se with Fuseki server.
ANY help will be greatly appreciated.
Thank you so much.
Regards, Neli.



Neli P. Zlatareva, PhD
Professor of Computer Science
Department of Computer Science
Central Connecticut State University
New Britain, CT 06050
Phone: (860) 832-2723
Fax: (860) 832-2712
Web site: cs.ccsu.edu/~neli/


________________________________
From: Zlatareva, Neli (Computer Science)
Sent: Monday, February 20, 2017 9:34 AM
To: users@jena.apache.org
Subject: request for help with FROM keyword in ARQ


Hi, I am going through a book on SPARQL which uses ARQ. I am not able to successfully run even the simplest query with the FROM keyword.

Here is an example:

works fine:

PREFIX ab: <http://learningsparql.com/ns/addressbook#>

SELECT ?craigEmail
WHERE
{ ab:craig ab:email ?craigEmail . }

but

PREFIX ab: <http://learningsparql.com/ns/addressbook#>
SELECT ?craigEmail FROM <ex002.ttl>
WHERE
{ ab:craig ab:email ?craigEmail . }
does not work -- does not return anything.
ANY help will be greatly appreciated.
Thank you so much.
Regards, Neli.



Neli P. Zlatareva, PhD
Professor of Computer Science
Department of Computer Science
Central Connecticut State University
New Britain, CT 06050
Phone: (860) 832-2723
Fax: (860) 832-2712
Web site: cs.ccsu.edu/~neli/

RE: request for help with FROM keyword in ARQ

Posted by "Zlatareva, Neli (Computer Science)" <Zl...@ccsu.edu>.
Andy, thank you again for all your help!
Regards, Neli.

Neli P. Zlatareva, Ph.D
Professor of Computer Science
Central Connecticut State University,
1615 New Britain, CT 06050.
www.cs.ccsu.edu/~neli

-----Original Message-----
From: Andy Seaborne [mailto:andy@apache.org] 
Sent: Tuesday, February 21, 2017 9:49 AM
To: users@jena.apache.org
Subject: Re: request for help with FROM keyword in ARQ

Neli,

In Fuseki, only FROM <http://...>, <https://> and <ftp:> work

As to whether there are a good idea for an application is a completely different question! It relies on the web being reliable.

FROM <file:...> and the implicit "file:" in FROM <data.ttl>, us eo fthe classloader,  and zip archives are not enabled.

This is done by not having any file or java resource handling in the list of handlers that open resources in a query.

You can upload files to Fuseki to work with them.

     Andy

On 21/02/17 14:30, Zlatareva, Neli (Computer Science) wrote:
> Andy, I tried 2.11.1 and it WORKS! THANK YOU so very much.
>
> Your help is truly invaluable -- that was an important thing for me to fix.
>
> If I please can bother you a little bit more -- you said that the FROM 
> keyword
>
> would not work in Fuseki because of the security concerns. Does it 
> mean that
>
> you can process remote data set only with ARQ? Federated queries work 
> on Fuseki,
>
> but you can run them only against SPARQL endpoints? How about just RDF files?
>
> Again, I am very grateful for your help.
>
> Thank you!
>
> Regards, Neli.
>
>
> Neli P. Zlatareva, PhD
> Professor of Computer Science
> Department of Computer Science
> Central Connecticut State University
> New Britain, CT 06050
> Phone: (860) 832-2723
> Fax: (860) 832-2712
> Web site: cs.ccsu.edu/~neli/
> ________________________________
> From: Andy Seaborne <an...@apache.org>
> Sent: Tuesday, February 21, 2017 3:51:05 AM
> To: users@jena.apache.org
> Subject: Re: request for help with FROM keyword in ARQ
>
> When used form the command line:
>
> FROM <ex002.ttl>
>
> I have tested 2.11.1, 2.13.0 and 3.0.0 and they work (as does 3.3.0 
> development builds).
>
> Try "sparql --version" to mkae sure the right version of the command 
> is being run.
>
> ex002.ttl must exist as file with data in the current directory.
>
> If you get
> org.apache.jena.riot.RiotNotFoundException: Not found: file:///...
>
> then it works but the file is not found.
>
> If you get
> "No dataset provided"
> then that version of the command line tool does not have proper FROM 
> support.
>
> You can provide the data on the command line with --data
>
>      Andy
>
> On 21/02/17 07:07, Lorenz B. wrote:
>> just for my understanding, FROM denotes a graph, right? and does the 
>> graph with the relative URI <ex002.ttl> exist in your data?
>
>>> Andy, thank you so much for the quick response. I tried 3.0.1,
> 2.13.0, and 2.10.0 versions and none works with the FROM keyword.
> Actually, the current version 3.2.0 returns the header of the results 
> table, while the older versions say "No data set found" (yes, there is 
> only the query sent for execution, because the data set is in the FROM 
> clause).
>>>
>>> I have seen ARQ demonstrations that worked perfectly fine with remote data sets. Would you please suggest a specific ARQ version that would work with remote data sets.
>>>
>>> THANK YOU! and sorry for bothering you so much.
>>>
>>> Regards, Neli.
>>>
>>>
>>> Neli P. Zlatareva, PhD
>>> Professor of Computer Science
>>> Department of Computer Science
>>> Central Connecticut State University New Britain, CT 06050
>>> Phone: (860) 832-2723
>>> Fax: (860) 832-2712
>>> Web site: cs.ccsu.edu/~neli/
>>> ________________________________
>>> From: Andy Seaborne <an...@apache.org>
>>> Sent: Monday, February 20, 2017 6:11:40 PM
>>> To: users@jena.apache.org
>>> Subject: Re: request for help with FROM keyword in ARQ
>>>
>>> All older versions are available from
>>>
>>>      
>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Farch
>>> ive.apache.org%2Fdist%2Fjena%2F&data=01%7C01%7CZlatareva%40ccsu.edu%
>>> 7C4cfd845d56ba4d25283b08d459e5db2f%7C2329c570b5804223803b427d800e81b
>>> 6%7C0&sdata=pNu769NrSmdJi%2B%2FKIrktKl9FoEIgeNI%2BUclVlHZ0CEo%3D&res
>>> erved=0
>>>
>>> (Or maven central.)
>>>
>>>         Andy
>>>
>>> On 20/02/17 22:54, Zlatareva, Neli (Computer Science) wrote:
>>>> Andy, thank you so much. Indeed I have downloaded
>>>>
>>>> apache-jena 3.2.0 the zip file, but this is what is available on 
>>>> the
>>>>
>>>> web site. Would you be able to point me to an older version
>>>>
>>>> where FROM keyword works.
>>>>
>>>> Thank you -- really appreciate your help.
>>>>
>>>> Regards, Neli.
>>>>
>>>>
>>>> Neli P. Zlatareva, PhD
>>>> Professor of Computer Science
>>>> Department of Computer Science
>>>> Central Connecticut State University New Britain, CT 06050
>>>> Phone: (860) 832-2723
>>>> Fax: (860) 832-2712
>>>> Web site: cs.ccsu.edu/~neli/
>>>> ________________________________
>>>> From: Andy Seaborne <an...@apache.org>
>>>> Sent: Monday, February 20, 2017 5:24:46 PM
>>>> To: users@jena.apache.org
>>>> Subject: Re: request for help with FROM keyword in ARQ
>>>>
>>>> Neli,
>>>>
>>>> There was a bug in some versions (from 3.1.0 to 3.2.0) of the 
>>>> command query tool which did not process FROM correctly.
>>>>
>>>> Fuseki does not process FROM by reading a file (it would be a 
>>>> security problem exposing files on the server).  It takes the graph 
>>>> from the dataset of the query was sent to which is not what you want here.
>>>>
>>>>         Andy
>>>>
>>>> On 20/02/17 20:57, Zlatareva, Neli (Computer Science) wrote:
>>>>> Hi, I am going through a book on SPARQL which uses ARQ. I am not able to successfully run even the simplest query with the FROM keyword.
>>>>> Here is an example:
>>>>> works fine:
>>>>> PREFIX ab: 
>>>>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fl
>>>>> earningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%4
>>>>> 0ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803
>>>>> b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5t
>>>>> dOso9MU%3D&reserved=0>
>>>>> SELECT ?craigEmail
>>>>> WHERE
>>>>> { ab:craig ab:email ?craigEmail . }
>>>>>
>>>>> but
>>>>>
>>>>> PREFIX ab: 
>>>>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fl
>>>>> earningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%4
>>>>> 0ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803
>>>>> b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5t
>>>>> dOso9MU%3D&reserved=0> SELECT ?craigEmail FROM <ex002.ttl> WHERE { 
>>>>> ab:craig ab:email ?craigEmail . }
>>>>>
>>>>> does not work -- does not return anything -- just an empty table with the column heading. I have the same problem trying to query a remote data se with Fuseki server.
>>>>> ANY help will be greatly appreciated.
>>>>> Thank you so much.
>>>>> Regards, Neli.
>>>>>
>>>>>
>>>>>
>>>>> Neli P. Zlatareva, PhD
>>>>> Professor of Computer Science
>>>>> Department of Computer Science
>>>>> Central Connecticut State University New Britain, CT 06050
>>>>> Phone: (860) 832-2723
>>>>> Fax: (860) 832-2712
>>>>> Web site: cs.ccsu.edu/~neli/
>>>>>
>>>>>
>>>>> ________________________________
>>>>> From: Zlatareva, Neli (Computer Science)
>>>>> Sent: Monday, February 20, 2017 9:34 AM
>>>>> To: users@jena.apache.org
>>>>> Subject: request for help with FROM keyword in ARQ
>>>>>
>>>>>
>>>>> Hi, I am going through a book on SPARQL which uses ARQ. I am not able to successfully run even the simplest query with the FROM keyword.
>>>>>
>>>>> Here is an example:
>>>>>
>>>>> works fine:
>>>>>
>>>>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>>>>>
>>>>> SELECT ?craigEmail
>>>>> WHERE
>>>>> { ab:craig ab:email ?craigEmail . }
>>>>>
>>>>> but
>>>>>
>>>>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>>>>> SELECT ?craigEmail FROM <ex002.ttl>
>>>>> WHERE
>>>>> { ab:craig ab:email ?craigEmail . }
>>>>> does not work -- does not return anything.
>>>>> ANY help will be greatly appreciated.
>>>>> Thank you so much.
>>>>> Regards, Neli.
>>>>>
>>>>>
>>>>>
>>>>> Neli P. Zlatareva, PhD
>>>>> Professor of Computer Science
>>>>> Department of Computer Science
>>>>> Central Connecticut State University
>>>>> New Britain, CT 06050
>>>>> Phone: (860) 832-2723
>>>>> Fax: (860) 832-2712
>>>>> Web site: cs.ccsu.edu/~neli/
>>>>>
>

Re: request for help with FROM keyword in ARQ

Posted by Andy Seaborne <an...@apache.org>.
Neli,

In Fuseki, only FROM <http://...>, <https://> and <ftp:> work

As to whether there are a good idea for an application is a completely 
different question! It relies on the web being reliable.

FROM <file:...> and the implicit "file:" in FROM <data.ttl>, us eo fthe 
classloader,  and zip archives are not enabled.

This is done by not having any file or java resource handling in the 
list of handlers that open resources in a query.

You can upload files to Fuseki to work with them.

     Andy

On 21/02/17 14:30, Zlatareva, Neli (Computer Science) wrote:
> Andy, I tried 2.11.1 and it WORKS! THANK YOU so very much.
>
> Your help is truly invaluable -- that was an important thing for me to fix.
>
> If I please can bother you a little bit more -- you said that the FROM keyword
>
> would not work in Fuseki because of the security concerns. Does it mean that
>
> you can process remote data set only with ARQ? Federated queries work on Fuseki,
>
> but you can run them only against SPARQL endpoints? How about just RDF files?
>
> Again, I am very grateful for your help.
>
> Thank you!
>
> Regards, Neli.
>
>
> Neli P. Zlatareva, PhD
> Professor of Computer Science
> Department of Computer Science
> Central Connecticut State University
> New Britain, CT 06050
> Phone: (860) 832-2723
> Fax: (860) 832-2712
> Web site: cs.ccsu.edu/~neli/
> ________________________________
> From: Andy Seaborne <an...@apache.org>
> Sent: Tuesday, February 21, 2017 3:51:05 AM
> To: users@jena.apache.org
> Subject: Re: request for help with FROM keyword in ARQ
>
> When used form the command line:
>
> FROM <ex002.ttl>
>
> I have tested 2.11.1, 2.13.0 and 3.0.0 and they work (as does 3.3.0
> development builds).
>
> Try "sparql --version" to mkae sure the right version of the command is
> being run.
>
> ex002.ttl must exist as file with data in the current directory.
>
> If you get
> org.apache.jena.riot.RiotNotFoundException: Not found: file:///...
>
> then it works but the file is not found.
>
> If you get
> "No dataset provided"
> then that version of the command line tool does not have proper FROM
> support.
>
> You can provide the data on the command line with --data
>
>      Andy
>
> On 21/02/17 07:07, Lorenz B. wrote:
>> just for my understanding, FROM denotes a graph, right? and does the
>> graph with the relative URI <ex002.ttl> exist in your data?
>
>>> Andy, thank you so much for the quick response. I tried 3.0.1,
> 2.13.0, and 2.10.0 versions and none works with the FROM keyword.
> Actually, the current version 3.2.0 returns the header of the results
> table, while the older versions say "No data set found" (yes, there is
> only the query sent for execution, because the data set is in the FROM
> clause).
>>>
>>> I have seen ARQ demonstrations that worked perfectly fine with remote data sets. Would you please suggest a specific ARQ version that would work with remote data sets.
>>>
>>> THANK YOU! and sorry for bothering you so much.
>>>
>>> Regards, Neli.
>>>
>>>
>>> Neli P. Zlatareva, PhD
>>> Professor of Computer Science
>>> Department of Computer Science
>>> Central Connecticut State University
>>> New Britain, CT 06050
>>> Phone: (860) 832-2723
>>> Fax: (860) 832-2712
>>> Web site: cs.ccsu.edu/~neli/
>>> ________________________________
>>> From: Andy Seaborne <an...@apache.org>
>>> Sent: Monday, February 20, 2017 6:11:40 PM
>>> To: users@jena.apache.org
>>> Subject: Re: request for help with FROM keyword in ARQ
>>>
>>> All older versions are available from
>>>
>>>      https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Farchive.apache.org%2Fdist%2Fjena%2F&data=01%7C01%7CZlatareva%40ccsu.edu%7C4cfd845d56ba4d25283b08d459e5db2f%7C2329c570b5804223803b427d800e81b6%7C0&sdata=pNu769NrSmdJi%2B%2FKIrktKl9FoEIgeNI%2BUclVlHZ0CEo%3D&reserved=0
>>>
>>> (Or maven central.)
>>>
>>>         Andy
>>>
>>> On 20/02/17 22:54, Zlatareva, Neli (Computer Science) wrote:
>>>> Andy, thank you so much. Indeed I have downloaded
>>>>
>>>> apache-jena 3.2.0 the zip file, but this is what is available on the
>>>>
>>>> web site. Would you be able to point me to an older version
>>>>
>>>> where FROM keyword works.
>>>>
>>>> Thank you -- really appreciate your help.
>>>>
>>>> Regards, Neli.
>>>>
>>>>
>>>> Neli P. Zlatareva, PhD
>>>> Professor of Computer Science
>>>> Department of Computer Science
>>>> Central Connecticut State University
>>>> New Britain, CT 06050
>>>> Phone: (860) 832-2723
>>>> Fax: (860) 832-2712
>>>> Web site: cs.ccsu.edu/~neli/
>>>> ________________________________
>>>> From: Andy Seaborne <an...@apache.org>
>>>> Sent: Monday, February 20, 2017 5:24:46 PM
>>>> To: users@jena.apache.org
>>>> Subject: Re: request for help with FROM keyword in ARQ
>>>>
>>>> Neli,
>>>>
>>>> There was a bug in some versions (from 3.1.0 to 3.2.0) of the command
>>>> query tool which did not process FROM correctly.
>>>>
>>>> Fuseki does not process FROM by reading a file (it would be a security
>>>> problem exposing files on the server).  It takes the graph from the
>>>> dataset of the query was sent to which is not what you want here.
>>>>
>>>>         Andy
>>>>
>>>> On 20/02/17 20:57, Zlatareva, Neli (Computer Science) wrote:
>>>>> Hi, I am going through a book on SPARQL which uses ARQ. I am not able to successfully run even the simplest query with the FROM keyword.
>>>>> Here is an example:
>>>>> works fine:
>>>>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>>>>> SELECT ?craigEmail
>>>>> WHERE
>>>>> { ab:craig ab:email ?craigEmail . }
>>>>>
>>>>> but
>>>>>
>>>>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>>>>> SELECT ?craigEmail FROM <ex002.ttl>
>>>>> WHERE
>>>>> { ab:craig ab:email ?craigEmail . }
>>>>>
>>>>> does not work -- does not return anything -- just an empty table with the column heading. I have the same problem trying to query a remote data se with Fuseki server.
>>>>> ANY help will be greatly appreciated.
>>>>> Thank you so much.
>>>>> Regards, Neli.
>>>>>
>>>>>
>>>>>
>>>>> Neli P. Zlatareva, PhD
>>>>> Professor of Computer Science
>>>>> Department of Computer Science
>>>>> Central Connecticut State University
>>>>> New Britain, CT 06050
>>>>> Phone: (860) 832-2723
>>>>> Fax: (860) 832-2712
>>>>> Web site: cs.ccsu.edu/~neli/
>>>>>
>>>>>
>>>>> ________________________________
>>>>> From: Zlatareva, Neli (Computer Science)
>>>>> Sent: Monday, February 20, 2017 9:34 AM
>>>>> To: users@jena.apache.org
>>>>> Subject: request for help with FROM keyword in ARQ
>>>>>
>>>>>
>>>>> Hi, I am going through a book on SPARQL which uses ARQ. I am not able to successfully run even the simplest query with the FROM keyword.
>>>>>
>>>>> Here is an example:
>>>>>
>>>>> works fine:
>>>>>
>>>>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>>>>>
>>>>> SELECT ?craigEmail
>>>>> WHERE
>>>>> { ab:craig ab:email ?craigEmail . }
>>>>>
>>>>> but
>>>>>
>>>>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>>>>> SELECT ?craigEmail FROM <ex002.ttl>
>>>>> WHERE
>>>>> { ab:craig ab:email ?craigEmail . }
>>>>> does not work -- does not return anything.
>>>>> ANY help will be greatly appreciated.
>>>>> Thank you so much.
>>>>> Regards, Neli.
>>>>>
>>>>>
>>>>>
>>>>> Neli P. Zlatareva, PhD
>>>>> Professor of Computer Science
>>>>> Department of Computer Science
>>>>> Central Connecticut State University
>>>>> New Britain, CT 06050
>>>>> Phone: (860) 832-2723
>>>>> Fax: (860) 832-2712
>>>>> Web site: cs.ccsu.edu/~neli/
>>>>>
>

Re: request for help with FROM keyword in ARQ

Posted by "Zlatareva, Neli (Computer Science)" <Zl...@ccsu.edu>.
Andy, I tried 2.11.1 and it WORKS! THANK YOU so very much.

Your help is truly invaluable -- that was an important thing for me to fix.

If I please can bother you a little bit more -- you said that the FROM keyword

would not work in Fuseki because of the security concerns. Does it mean that

you can process remote data set only with ARQ? Federated queries work on Fuseki,

but you can run them only against SPARQL endpoints? How about just RDF files?

Again, I am very grateful for your help.

Thank you!

Regards, Neli.


Neli P. Zlatareva, PhD
Professor of Computer Science
Department of Computer Science
Central Connecticut State University
New Britain, CT 06050
Phone: (860) 832-2723
Fax: (860) 832-2712
Web site: cs.ccsu.edu/~neli/
________________________________
From: Andy Seaborne <an...@apache.org>
Sent: Tuesday, February 21, 2017 3:51:05 AM
To: users@jena.apache.org
Subject: Re: request for help with FROM keyword in ARQ

When used form the command line:

FROM <ex002.ttl>

I have tested 2.11.1, 2.13.0 and 3.0.0 and they work (as does 3.3.0
development builds).

Try "sparql --version" to mkae sure the right version of the command is
being run.

ex002.ttl must exist as file with data in the current directory.

If you get
org.apache.jena.riot.RiotNotFoundException: Not found: file:///...

then it works but the file is not found.

If you get
"No dataset provided"
then that version of the command line tool does not have proper FROM
support.

You can provide the data on the command line with --data

     Andy

On 21/02/17 07:07, Lorenz B. wrote:
> just for my understanding, FROM denotes a graph, right? and does the
> graph with the relative URI <ex002.ttl> exist in your data?

>> Andy, thank you so much for the quick response. I tried 3.0.1,
2.13.0, and 2.10.0 versions and none works with the FROM keyword.
Actually, the current version 3.2.0 returns the header of the results
table, while the older versions say "No data set found" (yes, there is
only the query sent for execution, because the data set is in the FROM
clause).
>>
>> I have seen ARQ demonstrations that worked perfectly fine with remote data sets. Would you please suggest a specific ARQ version that would work with remote data sets.
>>
>> THANK YOU! and sorry for bothering you so much.
>>
>> Regards, Neli.
>>
>>
>> Neli P. Zlatareva, PhD
>> Professor of Computer Science
>> Department of Computer Science
>> Central Connecticut State University
>> New Britain, CT 06050
>> Phone: (860) 832-2723
>> Fax: (860) 832-2712
>> Web site: cs.ccsu.edu/~neli/
>> ________________________________
>> From: Andy Seaborne <an...@apache.org>
>> Sent: Monday, February 20, 2017 6:11:40 PM
>> To: users@jena.apache.org
>> Subject: Re: request for help with FROM keyword in ARQ
>>
>> All older versions are available from
>>
>>      https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Farchive.apache.org%2Fdist%2Fjena%2F&data=01%7C01%7CZlatareva%40ccsu.edu%7C4cfd845d56ba4d25283b08d459e5db2f%7C2329c570b5804223803b427d800e81b6%7C0&sdata=pNu769NrSmdJi%2B%2FKIrktKl9FoEIgeNI%2BUclVlHZ0CEo%3D&reserved=0
>>
>> (Or maven central.)
>>
>>         Andy
>>
>> On 20/02/17 22:54, Zlatareva, Neli (Computer Science) wrote:
>>> Andy, thank you so much. Indeed I have downloaded
>>>
>>> apache-jena 3.2.0 the zip file, but this is what is available on the
>>>
>>> web site. Would you be able to point me to an older version
>>>
>>> where FROM keyword works.
>>>
>>> Thank you -- really appreciate your help.
>>>
>>> Regards, Neli.
>>>
>>>
>>> Neli P. Zlatareva, PhD
>>> Professor of Computer Science
>>> Department of Computer Science
>>> Central Connecticut State University
>>> New Britain, CT 06050
>>> Phone: (860) 832-2723
>>> Fax: (860) 832-2712
>>> Web site: cs.ccsu.edu/~neli/
>>> ________________________________
>>> From: Andy Seaborne <an...@apache.org>
>>> Sent: Monday, February 20, 2017 5:24:46 PM
>>> To: users@jena.apache.org
>>> Subject: Re: request for help with FROM keyword in ARQ
>>>
>>> Neli,
>>>
>>> There was a bug in some versions (from 3.1.0 to 3.2.0) of the command
>>> query tool which did not process FROM correctly.
>>>
>>> Fuseki does not process FROM by reading a file (it would be a security
>>> problem exposing files on the server).  It takes the graph from the
>>> dataset of the query was sent to which is not what you want here.
>>>
>>>         Andy
>>>
>>> On 20/02/17 20:57, Zlatareva, Neli (Computer Science) wrote:
>>>> Hi, I am going through a book on SPARQL which uses ARQ. I am not able to successfully run even the simplest query with the FROM keyword.
>>>> Here is an example:
>>>> works fine:
>>>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>>>> SELECT ?craigEmail
>>>> WHERE
>>>> { ab:craig ab:email ?craigEmail . }
>>>>
>>>> but
>>>>
>>>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>>>> SELECT ?craigEmail FROM <ex002.ttl>
>>>> WHERE
>>>> { ab:craig ab:email ?craigEmail . }
>>>>
>>>> does not work -- does not return anything -- just an empty table with the column heading. I have the same problem trying to query a remote data se with Fuseki server.
>>>> ANY help will be greatly appreciated.
>>>> Thank you so much.
>>>> Regards, Neli.
>>>>
>>>>
>>>>
>>>> Neli P. Zlatareva, PhD
>>>> Professor of Computer Science
>>>> Department of Computer Science
>>>> Central Connecticut State University
>>>> New Britain, CT 06050
>>>> Phone: (860) 832-2723
>>>> Fax: (860) 832-2712
>>>> Web site: cs.ccsu.edu/~neli/
>>>>
>>>>
>>>> ________________________________
>>>> From: Zlatareva, Neli (Computer Science)
>>>> Sent: Monday, February 20, 2017 9:34 AM
>>>> To: users@jena.apache.org
>>>> Subject: request for help with FROM keyword in ARQ
>>>>
>>>>
>>>> Hi, I am going through a book on SPARQL which uses ARQ. I am not able to successfully run even the simplest query with the FROM keyword.
>>>>
>>>> Here is an example:
>>>>
>>>> works fine:
>>>>
>>>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>>>>
>>>> SELECT ?craigEmail
>>>> WHERE
>>>> { ab:craig ab:email ?craigEmail . }
>>>>
>>>> but
>>>>
>>>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>>>> SELECT ?craigEmail FROM <ex002.ttl>
>>>> WHERE
>>>> { ab:craig ab:email ?craigEmail . }
>>>> does not work -- does not return anything.
>>>> ANY help will be greatly appreciated.
>>>> Thank you so much.
>>>> Regards, Neli.
>>>>
>>>>
>>>>
>>>> Neli P. Zlatareva, PhD
>>>> Professor of Computer Science
>>>> Department of Computer Science
>>>> Central Connecticut State University
>>>> New Britain, CT 06050
>>>> Phone: (860) 832-2723
>>>> Fax: (860) 832-2712
>>>> Web site: cs.ccsu.edu/~neli/
>>>>

Re: request for help with FROM keyword in ARQ

Posted by Andy Seaborne <an...@apache.org>.
When used form the command line:

FROM <ex002.ttl>

I have tested 2.11.1, 2.13.0 and 3.0.0 and they work (as does 3.3.0 
development builds).

Try "sparql --version" to mkae sure the right version of the command is 
being run.

ex002.ttl must exist as file with data in the current directory.

If you get
org.apache.jena.riot.RiotNotFoundException: Not found: file:///...

then it works but the file is not found.

If you get
"No dataset provided"
then that version of the command line tool does not have proper FROM 
support.

You can provide the data on the command line with --data

     Andy

On 21/02/17 07:07, Lorenz B. wrote:
> just for my understanding, FROM denotes a graph, right? and does the
> graph with the relative URI <ex002.ttl> exist in your data?

>> Andy, thank you so much for the quick response. I tried 3.0.1,
2.13.0, and 2.10.0 versions and none works with the FROM keyword.
Actually, the current version 3.2.0 returns the header of the results
table, while the older versions say "No data set found" (yes, there is
only the query sent for execution, because the data set is in the FROM
clause).
>>
>> I have seen ARQ demonstrations that worked perfectly fine with remote data sets. Would you please suggest a specific ARQ version that would work with remote data sets.
>>
>> THANK YOU! and sorry for bothering you so much.
>>
>> Regards, Neli.
>>
>>
>> Neli P. Zlatareva, PhD
>> Professor of Computer Science
>> Department of Computer Science
>> Central Connecticut State University
>> New Britain, CT 06050
>> Phone: (860) 832-2723
>> Fax: (860) 832-2712
>> Web site: cs.ccsu.edu/~neli/
>> ________________________________
>> From: Andy Seaborne <an...@apache.org>
>> Sent: Monday, February 20, 2017 6:11:40 PM
>> To: users@jena.apache.org
>> Subject: Re: request for help with FROM keyword in ARQ
>>
>> All older versions are available from
>>
>>      https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Farchive.apache.org%2Fdist%2Fjena%2F&data=01%7C01%7CZlatareva%40ccsu.edu%7C4cfd845d56ba4d25283b08d459e5db2f%7C2329c570b5804223803b427d800e81b6%7C0&sdata=pNu769NrSmdJi%2B%2FKIrktKl9FoEIgeNI%2BUclVlHZ0CEo%3D&reserved=0
>>
>> (Or maven central.)
>>
>>         Andy
>>
>> On 20/02/17 22:54, Zlatareva, Neli (Computer Science) wrote:
>>> Andy, thank you so much. Indeed I have downloaded
>>>
>>> apache-jena 3.2.0 the zip file, but this is what is available on the
>>>
>>> web site. Would you be able to point me to an older version
>>>
>>> where FROM keyword works.
>>>
>>> Thank you -- really appreciate your help.
>>>
>>> Regards, Neli.
>>>
>>>
>>> Neli P. Zlatareva, PhD
>>> Professor of Computer Science
>>> Department of Computer Science
>>> Central Connecticut State University
>>> New Britain, CT 06050
>>> Phone: (860) 832-2723
>>> Fax: (860) 832-2712
>>> Web site: cs.ccsu.edu/~neli/
>>> ________________________________
>>> From: Andy Seaborne <an...@apache.org>
>>> Sent: Monday, February 20, 2017 5:24:46 PM
>>> To: users@jena.apache.org
>>> Subject: Re: request for help with FROM keyword in ARQ
>>>
>>> Neli,
>>>
>>> There was a bug in some versions (from 3.1.0 to 3.2.0) of the command
>>> query tool which did not process FROM correctly.
>>>
>>> Fuseki does not process FROM by reading a file (it would be a security
>>> problem exposing files on the server).  It takes the graph from the
>>> dataset of the query was sent to which is not what you want here.
>>>
>>>         Andy
>>>
>>> On 20/02/17 20:57, Zlatareva, Neli (Computer Science) wrote:
>>>> Hi, I am going through a book on SPARQL which uses ARQ. I am not able to successfully run even the simplest query with the FROM keyword.
>>>> Here is an example:
>>>> works fine:
>>>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>>>> SELECT ?craigEmail
>>>> WHERE
>>>> { ab:craig ab:email ?craigEmail . }
>>>>
>>>> but
>>>>
>>>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>>>> SELECT ?craigEmail FROM <ex002.ttl>
>>>> WHERE
>>>> { ab:craig ab:email ?craigEmail . }
>>>>
>>>> does not work -- does not return anything -- just an empty table with the column heading. I have the same problem trying to query a remote data se with Fuseki server.
>>>> ANY help will be greatly appreciated.
>>>> Thank you so much.
>>>> Regards, Neli.
>>>>
>>>>
>>>>
>>>> Neli P. Zlatareva, PhD
>>>> Professor of Computer Science
>>>> Department of Computer Science
>>>> Central Connecticut State University
>>>> New Britain, CT 06050
>>>> Phone: (860) 832-2723
>>>> Fax: (860) 832-2712
>>>> Web site: cs.ccsu.edu/~neli/
>>>>
>>>>
>>>> ________________________________
>>>> From: Zlatareva, Neli (Computer Science)
>>>> Sent: Monday, February 20, 2017 9:34 AM
>>>> To: users@jena.apache.org
>>>> Subject: request for help with FROM keyword in ARQ
>>>>
>>>>
>>>> Hi, I am going through a book on SPARQL which uses ARQ. I am not able to successfully run even the simplest query with the FROM keyword.
>>>>
>>>> Here is an example:
>>>>
>>>> works fine:
>>>>
>>>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>>>>
>>>> SELECT ?craigEmail
>>>> WHERE
>>>> { ab:craig ab:email ?craigEmail . }
>>>>
>>>> but
>>>>
>>>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>>>> SELECT ?craigEmail FROM <ex002.ttl>
>>>> WHERE
>>>> { ab:craig ab:email ?craigEmail . }
>>>> does not work -- does not return anything.
>>>> ANY help will be greatly appreciated.
>>>> Thank you so much.
>>>> Regards, Neli.
>>>>
>>>>
>>>>
>>>> Neli P. Zlatareva, PhD
>>>> Professor of Computer Science
>>>> Department of Computer Science
>>>> Central Connecticut State University
>>>> New Britain, CT 06050
>>>> Phone: (860) 832-2723
>>>> Fax: (860) 832-2712
>>>> Web site: cs.ccsu.edu/~neli/
>>>>

Re: request for help with FROM keyword in ARQ

Posted by "Lorenz B." <bu...@informatik.uni-leipzig.de>.
just for my understanding, FROM denotes a graph, right? and does the
graph with the relative URI <ex002.ttl> exist in your data?
> Andy, thank you so much for the quick response. I tried 3.0.1, 2.13.0, and 2.10.0 versions and none works with the FROM keyword. Actually, the current version 3.2.0 returns the header of the results table, while the older versions say "No data set found" (yes, there is only the query sent for execution, because the data set is in the FROM clause).
>
> I have seen ARQ demonstrations that worked perfectly fine with remote data sets. Would you please suggest a specific ARQ version that would work with remote data sets.
>
> THANK YOU! and sorry for bothering you so much.
>
> Regards, Neli.
>
>
> Neli P. Zlatareva, PhD
> Professor of Computer Science
> Department of Computer Science
> Central Connecticut State University
> New Britain, CT 06050
> Phone: (860) 832-2723
> Fax: (860) 832-2712
> Web site: cs.ccsu.edu/~neli/
> ________________________________
> From: Andy Seaborne <an...@apache.org>
> Sent: Monday, February 20, 2017 6:11:40 PM
> To: users@jena.apache.org
> Subject: Re: request for help with FROM keyword in ARQ
>
> All older versions are available from
>
>      https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Farchive.apache.org%2Fdist%2Fjena%2F&data=01%7C01%7CZlatareva%40ccsu.edu%7C4cfd845d56ba4d25283b08d459e5db2f%7C2329c570b5804223803b427d800e81b6%7C0&sdata=pNu769NrSmdJi%2B%2FKIrktKl9FoEIgeNI%2BUclVlHZ0CEo%3D&reserved=0
>
> (Or maven central.)
>
>         Andy
>
> On 20/02/17 22:54, Zlatareva, Neli (Computer Science) wrote:
>> Andy, thank you so much. Indeed I have downloaded
>>
>> apache-jena 3.2.0 the zip file, but this is what is available on the
>>
>> web site. Would you be able to point me to an older version
>>
>> where FROM keyword works.
>>
>> Thank you -- really appreciate your help.
>>
>> Regards, Neli.
>>
>>
>> Neli P. Zlatareva, PhD
>> Professor of Computer Science
>> Department of Computer Science
>> Central Connecticut State University
>> New Britain, CT 06050
>> Phone: (860) 832-2723
>> Fax: (860) 832-2712
>> Web site: cs.ccsu.edu/~neli/
>> ________________________________
>> From: Andy Seaborne <an...@apache.org>
>> Sent: Monday, February 20, 2017 5:24:46 PM
>> To: users@jena.apache.org
>> Subject: Re: request for help with FROM keyword in ARQ
>>
>> Neli,
>>
>> There was a bug in some versions (from 3.1.0 to 3.2.0) of the command
>> query tool which did not process FROM correctly.
>>
>> Fuseki does not process FROM by reading a file (it would be a security
>> problem exposing files on the server).  It takes the graph from the
>> dataset of the query was sent to which is not what you want here.
>>
>>         Andy
>>
>> On 20/02/17 20:57, Zlatareva, Neli (Computer Science) wrote:
>>> Hi, I am going through a book on SPARQL which uses ARQ. I am not able to successfully run even the simplest query with the FROM keyword.
>>> Here is an example:
>>> works fine:
>>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>>> SELECT ?craigEmail
>>> WHERE
>>> { ab:craig ab:email ?craigEmail . }
>>>
>>> but
>>>
>>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>>> SELECT ?craigEmail FROM <ex002.ttl>
>>> WHERE
>>> { ab:craig ab:email ?craigEmail . }
>>>
>>> does not work -- does not return anything -- just an empty table with the column heading. I have the same problem trying to query a remote data se with Fuseki server.
>>> ANY help will be greatly appreciated.
>>> Thank you so much.
>>> Regards, Neli.
>>>
>>>
>>>
>>> Neli P. Zlatareva, PhD
>>> Professor of Computer Science
>>> Department of Computer Science
>>> Central Connecticut State University
>>> New Britain, CT 06050
>>> Phone: (860) 832-2723
>>> Fax: (860) 832-2712
>>> Web site: cs.ccsu.edu/~neli/
>>>
>>>
>>> ________________________________
>>> From: Zlatareva, Neli (Computer Science)
>>> Sent: Monday, February 20, 2017 9:34 AM
>>> To: users@jena.apache.org
>>> Subject: request for help with FROM keyword in ARQ
>>>
>>>
>>> Hi, I am going through a book on SPARQL which uses ARQ. I am not able to successfully run even the simplest query with the FROM keyword.
>>>
>>> Here is an example:
>>>
>>> works fine:
>>>
>>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>>>
>>> SELECT ?craigEmail
>>> WHERE
>>> { ab:craig ab:email ?craigEmail . }
>>>
>>> but
>>>
>>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>>> SELECT ?craigEmail FROM <ex002.ttl>
>>> WHERE
>>> { ab:craig ab:email ?craigEmail . }
>>> does not work -- does not return anything.
>>> ANY help will be greatly appreciated.
>>> Thank you so much.
>>> Regards, Neli.
>>>
>>>
>>>
>>> Neli P. Zlatareva, PhD
>>> Professor of Computer Science
>>> Department of Computer Science
>>> Central Connecticut State University
>>> New Britain, CT 06050
>>> Phone: (860) 832-2723
>>> Fax: (860) 832-2712
>>> Web site: cs.ccsu.edu/~neli/
>>>
-- 
Lorenz Bhmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center


Re: request for help with FROM keyword in ARQ

Posted by "Zlatareva, Neli (Computer Science)" <Zl...@ccsu.edu>.
Andy, thank you so much for the quick response. I tried 3.0.1, 2.13.0, and 2.10.0 versions and none works with the FROM keyword. Actually, the current version 3.2.0 returns the header of the results table, while the older versions say "No data set found" (yes, there is only the query sent for execution, because the data set is in the FROM clause).

I have seen ARQ demonstrations that worked perfectly fine with remote data sets. Would you please suggest a specific ARQ version that would work with remote data sets.

THANK YOU! and sorry for bothering you so much.

Regards, Neli.


Neli P. Zlatareva, PhD
Professor of Computer Science
Department of Computer Science
Central Connecticut State University
New Britain, CT 06050
Phone: (860) 832-2723
Fax: (860) 832-2712
Web site: cs.ccsu.edu/~neli/
________________________________
From: Andy Seaborne <an...@apache.org>
Sent: Monday, February 20, 2017 6:11:40 PM
To: users@jena.apache.org
Subject: Re: request for help with FROM keyword in ARQ

All older versions are available from

     https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Farchive.apache.org%2Fdist%2Fjena%2F&data=01%7C01%7CZlatareva%40ccsu.edu%7C4cfd845d56ba4d25283b08d459e5db2f%7C2329c570b5804223803b427d800e81b6%7C0&sdata=pNu769NrSmdJi%2B%2FKIrktKl9FoEIgeNI%2BUclVlHZ0CEo%3D&reserved=0

(Or maven central.)

        Andy

On 20/02/17 22:54, Zlatareva, Neli (Computer Science) wrote:
> Andy, thank you so much. Indeed I have downloaded
>
> apache-jena 3.2.0 the zip file, but this is what is available on the
>
> web site. Would you be able to point me to an older version
>
> where FROM keyword works.
>
> Thank you -- really appreciate your help.
>
> Regards, Neli.
>
>
> Neli P. Zlatareva, PhD
> Professor of Computer Science
> Department of Computer Science
> Central Connecticut State University
> New Britain, CT 06050
> Phone: (860) 832-2723
> Fax: (860) 832-2712
> Web site: cs.ccsu.edu/~neli/
> ________________________________
> From: Andy Seaborne <an...@apache.org>
> Sent: Monday, February 20, 2017 5:24:46 PM
> To: users@jena.apache.org
> Subject: Re: request for help with FROM keyword in ARQ
>
> Neli,
>
> There was a bug in some versions (from 3.1.0 to 3.2.0) of the command
> query tool which did not process FROM correctly.
>
> Fuseki does not process FROM by reading a file (it would be a security
> problem exposing files on the server).  It takes the graph from the
> dataset of the query was sent to which is not what you want here.
>
>         Andy
>
> On 20/02/17 20:57, Zlatareva, Neli (Computer Science) wrote:
>> Hi, I am going through a book on SPARQL which uses ARQ. I am not able to successfully run even the simplest query with the FROM keyword.
>> Here is an example:
>> works fine:
>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>> SELECT ?craigEmail
>> WHERE
>> { ab:craig ab:email ?craigEmail . }
>>
>> but
>>
>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>> SELECT ?craigEmail FROM <ex002.ttl>
>> WHERE
>> { ab:craig ab:email ?craigEmail . }
>>
>> does not work -- does not return anything -- just an empty table with the column heading. I have the same problem trying to query a remote data se with Fuseki server.
>> ANY help will be greatly appreciated.
>> Thank you so much.
>> Regards, Neli.
>>
>>
>>
>> Neli P. Zlatareva, PhD
>> Professor of Computer Science
>> Department of Computer Science
>> Central Connecticut State University
>> New Britain, CT 06050
>> Phone: (860) 832-2723
>> Fax: (860) 832-2712
>> Web site: cs.ccsu.edu/~neli/
>>
>>
>> ________________________________
>> From: Zlatareva, Neli (Computer Science)
>> Sent: Monday, February 20, 2017 9:34 AM
>> To: users@jena.apache.org
>> Subject: request for help with FROM keyword in ARQ
>>
>>
>> Hi, I am going through a book on SPARQL which uses ARQ. I am not able to successfully run even the simplest query with the FROM keyword.
>>
>> Here is an example:
>>
>> works fine:
>>
>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>>
>> SELECT ?craigEmail
>> WHERE
>> { ab:craig ab:email ?craigEmail . }
>>
>> but
>>
>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>> SELECT ?craigEmail FROM <ex002.ttl>
>> WHERE
>> { ab:craig ab:email ?craigEmail . }
>> does not work -- does not return anything.
>> ANY help will be greatly appreciated.
>> Thank you so much.
>> Regards, Neli.
>>
>>
>>
>> Neli P. Zlatareva, PhD
>> Professor of Computer Science
>> Department of Computer Science
>> Central Connecticut State University
>> New Britain, CT 06050
>> Phone: (860) 832-2723
>> Fax: (860) 832-2712
>> Web site: cs.ccsu.edu/~neli/
>>
>

Re: request for help with FROM keyword in ARQ

Posted by Andy Seaborne <an...@apache.org>.
All older versions are available from

     http://archive.apache.org/dist/jena/

(Or maven central.)

	Andy

On 20/02/17 22:54, Zlatareva, Neli (Computer Science) wrote:
> Andy, thank you so much. Indeed I have downloaded
>
> apache-jena 3.2.0 the zip file, but this is what is available on the
>
> web site. Would you be able to point me to an older version
>
> where FROM keyword works.
>
> Thank you -- really appreciate your help.
>
> Regards, Neli.
>
>
> Neli P. Zlatareva, PhD
> Professor of Computer Science
> Department of Computer Science
> Central Connecticut State University
> New Britain, CT 06050
> Phone: (860) 832-2723
> Fax: (860) 832-2712
> Web site: cs.ccsu.edu/~neli/
> ________________________________
> From: Andy Seaborne <an...@apache.org>
> Sent: Monday, February 20, 2017 5:24:46 PM
> To: users@jena.apache.org
> Subject: Re: request for help with FROM keyword in ARQ
>
> Neli,
>
> There was a bug in some versions (from 3.1.0 to 3.2.0) of the command
> query tool which did not process FROM correctly.
>
> Fuseki does not process FROM by reading a file (it would be a security
> problem exposing files on the server).  It takes the graph from the
> dataset of the query was sent to which is not what you want here.
>
>         Andy
>
> On 20/02/17 20:57, Zlatareva, Neli (Computer Science) wrote:
>> Hi, I am going through a book on SPARQL which uses ARQ. I am not able to successfully run even the simplest query with the FROM keyword.
>> Here is an example:
>> works fine:
>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>> SELECT ?craigEmail
>> WHERE
>> { ab:craig ab:email ?craigEmail . }
>>
>> but
>>
>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>> SELECT ?craigEmail FROM <ex002.ttl>
>> WHERE
>> { ab:craig ab:email ?craigEmail . }
>>
>> does not work -- does not return anything -- just an empty table with the column heading. I have the same problem trying to query a remote data se with Fuseki server.
>> ANY help will be greatly appreciated.
>> Thank you so much.
>> Regards, Neli.
>>
>>
>>
>> Neli P. Zlatareva, PhD
>> Professor of Computer Science
>> Department of Computer Science
>> Central Connecticut State University
>> New Britain, CT 06050
>> Phone: (860) 832-2723
>> Fax: (860) 832-2712
>> Web site: cs.ccsu.edu/~neli/
>>
>>
>> ________________________________
>> From: Zlatareva, Neli (Computer Science)
>> Sent: Monday, February 20, 2017 9:34 AM
>> To: users@jena.apache.org
>> Subject: request for help with FROM keyword in ARQ
>>
>>
>> Hi, I am going through a book on SPARQL which uses ARQ. I am not able to successfully run even the simplest query with the FROM keyword.
>>
>> Here is an example:
>>
>> works fine:
>>
>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>>
>> SELECT ?craigEmail
>> WHERE
>> { ab:craig ab:email ?craigEmail . }
>>
>> but
>>
>> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>> SELECT ?craigEmail FROM <ex002.ttl>
>> WHERE
>> { ab:craig ab:email ?craigEmail . }
>> does not work -- does not return anything.
>> ANY help will be greatly appreciated.
>> Thank you so much.
>> Regards, Neli.
>>
>>
>>
>> Neli P. Zlatareva, PhD
>> Professor of Computer Science
>> Department of Computer Science
>> Central Connecticut State University
>> New Britain, CT 06050
>> Phone: (860) 832-2723
>> Fax: (860) 832-2712
>> Web site: cs.ccsu.edu/~neli/
>>
>

Re: request for help with FROM keyword in ARQ

Posted by "Zlatareva, Neli (Computer Science)" <Zl...@ccsu.edu>.
Andy, thank you so much. Indeed I have downloaded

apache-jena 3.2.0 the zip file, but this is what is available on the

web site. Would you be able to point me to an older version

where FROM keyword works.

Thank you -- really appreciate your help.

Regards, Neli.


Neli P. Zlatareva, PhD
Professor of Computer Science
Department of Computer Science
Central Connecticut State University
New Britain, CT 06050
Phone: (860) 832-2723
Fax: (860) 832-2712
Web site: cs.ccsu.edu/~neli/
________________________________
From: Andy Seaborne <an...@apache.org>
Sent: Monday, February 20, 2017 5:24:46 PM
To: users@jena.apache.org
Subject: Re: request for help with FROM keyword in ARQ

Neli,

There was a bug in some versions (from 3.1.0 to 3.2.0) of the command
query tool which did not process FROM correctly.

Fuseki does not process FROM by reading a file (it would be a security
problem exposing files on the server).  It takes the graph from the
dataset of the query was sent to which is not what you want here.

        Andy

On 20/02/17 20:57, Zlatareva, Neli (Computer Science) wrote:
> Hi, I am going through a book on SPARQL which uses ARQ. I am not able to successfully run even the simplest query with the FROM keyword.
> Here is an example:
> works fine:
> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
> SELECT ?craigEmail
> WHERE
> { ab:craig ab:email ?craigEmail . }
>
> but
>
> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
> SELECT ?craigEmail FROM <ex002.ttl>
> WHERE
> { ab:craig ab:email ?craigEmail . }
>
> does not work -- does not return anything -- just an empty table with the column heading. I have the same problem trying to query a remote data se with Fuseki server.
> ANY help will be greatly appreciated.
> Thank you so much.
> Regards, Neli.
>
>
>
> Neli P. Zlatareva, PhD
> Professor of Computer Science
> Department of Computer Science
> Central Connecticut State University
> New Britain, CT 06050
> Phone: (860) 832-2723
> Fax: (860) 832-2712
> Web site: cs.ccsu.edu/~neli/
>
>
> ________________________________
> From: Zlatareva, Neli (Computer Science)
> Sent: Monday, February 20, 2017 9:34 AM
> To: users@jena.apache.org
> Subject: request for help with FROM keyword in ARQ
>
>
> Hi, I am going through a book on SPARQL which uses ARQ. I am not able to successfully run even the simplest query with the FROM keyword.
>
> Here is an example:
>
> works fine:
>
> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
>
> SELECT ?craigEmail
> WHERE
> { ab:craig ab:email ?craigEmail . }
>
> but
>
> PREFIX ab: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flearningsparql.com%2Fns%2Faddressbook%23&data=01%7C01%7CZlatareva%40ccsu.edu%7C0b99378fd70f49affa0208d459df4bf4%7C2329c570b5804223803b427d800e81b6%7C0&sdata=%2FPw2ZGSPDCr%2Fed3vVjl7cCiaamZPU%2FShRR5tdOso9MU%3D&reserved=0>
> SELECT ?craigEmail FROM <ex002.ttl>
> WHERE
> { ab:craig ab:email ?craigEmail . }
> does not work -- does not return anything.
> ANY help will be greatly appreciated.
> Thank you so much.
> Regards, Neli.
>
>
>
> Neli P. Zlatareva, PhD
> Professor of Computer Science
> Department of Computer Science
> Central Connecticut State University
> New Britain, CT 06050
> Phone: (860) 832-2723
> Fax: (860) 832-2712
> Web site: cs.ccsu.edu/~neli/
>

Re: request for help with FROM keyword in ARQ

Posted by Andy Seaborne <an...@apache.org>.
Neli,

There was a bug in some versions (from 3.1.0 to 3.2.0) of the command 
query tool which did not process FROM correctly.

Fuseki does not process FROM by reading a file (it would be a security 
problem exposing files on the server).  It takes the graph from the 
dataset of the query was sent to which is not what you want here.

	Andy

On 20/02/17 20:57, Zlatareva, Neli (Computer Science) wrote:
> Hi, I am going through a book on SPARQL which uses ARQ. I am not able to successfully run even the simplest query with the FROM keyword.
> Here is an example:
> works fine:
> PREFIX ab: <http://learningsparql.com/ns/addressbook#>
> SELECT ?craigEmail
> WHERE
> { ab:craig ab:email ?craigEmail . }
>
> but
>
> PREFIX ab: <http://learningsparql.com/ns/addressbook#>
> SELECT ?craigEmail FROM <ex002.ttl>
> WHERE
> { ab:craig ab:email ?craigEmail . }
>
> does not work -- does not return anything -- just an empty table with the column heading. I have the same problem trying to query a remote data se with Fuseki server.
> ANY help will be greatly appreciated.
> Thank you so much.
> Regards, Neli.
>
>
>
> Neli P. Zlatareva, PhD
> Professor of Computer Science
> Department of Computer Science
> Central Connecticut State University
> New Britain, CT 06050
> Phone: (860) 832-2723
> Fax: (860) 832-2712
> Web site: cs.ccsu.edu/~neli/
>
>
> ________________________________
> From: Zlatareva, Neli (Computer Science)
> Sent: Monday, February 20, 2017 9:34 AM
> To: users@jena.apache.org
> Subject: request for help with FROM keyword in ARQ
>
>
> Hi, I am going through a book on SPARQL which uses ARQ. I am not able to successfully run even the simplest query with the FROM keyword.
>
> Here is an example:
>
> works fine:
>
> PREFIX ab: <http://learningsparql.com/ns/addressbook#>
>
> SELECT ?craigEmail
> WHERE
> { ab:craig ab:email ?craigEmail . }
>
> but
>
> PREFIX ab: <http://learningsparql.com/ns/addressbook#>
> SELECT ?craigEmail FROM <ex002.ttl>
> WHERE
> { ab:craig ab:email ?craigEmail . }
> does not work -- does not return anything.
> ANY help will be greatly appreciated.
> Thank you so much.
> Regards, Neli.
>
>
>
> Neli P. Zlatareva, PhD
> Professor of Computer Science
> Department of Computer Science
> Central Connecticut State University
> New Britain, CT 06050
> Phone: (860) 832-2723
> Fax: (860) 832-2712
> Web site: cs.ccsu.edu/~neli/
>