Re: SPARQL issue - named GRAPH query not giving any results

2018-07-13 Thread Andy Seaborne
JENA-1574 - now resolved. On 10/07/18 21:44, Andy Seaborne wrote: The root of is that the command line --namegraph does not make sure URIs are resolved and it looks like it used to. Oddly, if you don't use PREFIX :<.> it is hard to tell as the base URI is used to create table items and so

Re: reading a ttl file from remote location for quering

2018-07-13 Thread Zlatareva, Neli (Computer Science)
Yes, I saw that -- it is indeed strange. I'll try to check with my school to ensure that there are no security restrictions on accessing .ttl files. Thanks a lot. Neli P. Zlatareva, PhD Professor of Computer Science Department of Computer Science Central Connecticut State University New

Re: reading a ttl file from remote location for quering

2018-07-13 Thread ajs6f
This: > Encountered: " " (32), after : "http://www.cs.ccsu.edu/~neli/TryFriends.ttl) I get redirected to http://www.ccsu.edu/cs/, which indeed begins with " On Jul 13, 2018, at 8:39 AM, Andy Seaborne wrote: > > > > > > On 13/07/18 13:16, Zlatareva, Neli (Computer Science) wrote: >> Hi Rob,

Re: reading a ttl file from remote location for quering

2018-07-13 Thread Andy Seaborne
On 13/07/18 13:16, Zlatareva, Neli (Computer Science) wrote: Hi Rob, thank you so much for quick reply. I did try that, i.e. model.read("http://www.cs.ccsu.edu/~neli/TryFriends.ttl;, null, "TTL"); but I get the following error Exception in thread "main"

Re: reading a ttl file from remote location for quering

2018-07-13 Thread Andy Seaborne
On 13/07/18 13:16, Zlatareva, Neli (Computer Science) wrote: Hi Rob, thank you so much for quick reply. I did try that, i.e. model.read("http://www.cs.ccsu.edu/~neli/TryFriends.ttl;, null, "TTL"); but I get the following error Exception in thread "main"

Re: reading a ttl file from remote location for quering

2018-07-13 Thread Rob Vesse
FileInputStream is used for accessing local files, this is a standard Java component. It cannot be used to read remote URLs. There is actually no need to explicitly specify a stream here, you can simply provide the URL as a string and Jena will do the right thing i.e.

reading a ttl file from remote location for quering

2018-07-13 Thread Zlatareva, Neli (Computer Science)
Hi, I am trying to access a remote Turtle file for querying with no success ( I tried libraries from the latest Apache Jena and earlier Jena versions) I can read a local file as follows and it works fine: Model model = ModelFactory.createDefaultModel(); model.read(new

AW: java.lang.ClassCastException: org.apache.jena.tdb.store.GraphTxnTDB cannot be cast to org.apache.jena.tdb.store.GraphNonTxnTDB

2018-07-13 Thread Neubert, Joachim
Hi Andy, Thanks a lot! Cheers, Joachim > -Ursprüngliche Nachricht- > Von: Andy Seaborne [mailto:a...@apache.org] > Gesendet: Donnerstag, 12. Juli 2018 21:52 > An: users@jena.apache.org > Betreff: Re: java.lang.ClassCastException: > org.apache.jena.tdb.store.GraphTxnTDB cannot be cast to