haipv1108 / androjena

Automatically exported from code.google.com/p/androjena
0 stars 0 forks source link

issue about sparql query with model in android #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
i want to get query result but it show the null value. otherwise,i  input the 
content and create model already

If you're using a real device and not the emulated AVD, what is the device
model?
 - android 4.2

What version of Android runs on your device/emulated AVD? (please put an X
next to the correct version)

Android 1.1
Android 1.5 (Cupcake)
Android 1.6 (Donut)
Android 2.0/2.1 (Eclair)
Android 2.2 (Froyo)
Android 2.3 (Gingerbread)
Android 3.x (Honeycomb)
Android 4.0 (Ice Cream Sandwich)
Android 4.1/4.2 (Jelly Bean) X

What version of Android is your application targeting? (please put an X
next to the correct version)

Android 1.1
Android 1.5 (Cupcake)
Android 1.6 (Donut)
Android 2.0/2.1 (Eclair)
Android 2.2 (Froyo)
Android 2.3 (Gingerbread)
Android 3.x (Honeycomb)
Android 4.0 (Ice Cream Sandwich)
Android 4.1/4.2 (Jelly Bean) X

What IDE/environment are you developing with? (Eclipse w/ ADT, Android SDK
w/ Apache Ant, ...)
 - eclipse and adt

What operating system and hardware is your IDE/development environment
running on?

Please attach the following application files (when applicable):

- AndroidManifest.xml
- .classpath
- default.properties
- a full LogCat dump from application launch to exception/crash
- a meaningful portion of the source code where the exception is thrown

Please provide any additional detail below
 this is my code and my log. i am new sparql so i hope you help me.

Original issue reported on code.google.com by tanaporn...@gmail.com on 6 Sep 2013 at 3:49

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

Original comment by tanaporn...@gmail.com on 6 Sep 2013 at 3:52

Attachments:

GoogleCodeExporter commented 8 years ago
https://www.dropbox.com/s/vsmex0rjc2tsy5b/Demonstrationtoissue.rar this is my 
file. i can not send  zip file it directly because it is too big than 
limitation in this web.

Original comment by tanaporn...@gmail.com on 6 Sep 2013 at 4:21

GoogleCodeExporter commented 8 years ago
Hi Tanaporn,
I missed this issue, sorry for the delay. Did you already solve your problem?
I see from logcat that there's some errors related to the missing baseURI, like

{E211} Base URI is null, but there are relative URIs to resolve.: <>

This can be easily solved by specifying a base uri either in 
storage/extSdCard/foaf.rdf or in your code, passing it to the read method of 
your Model:

model.read(in,"http://baseuri.com");

I didn't test it but I think this should solve the problem.
Tell me if you need more advice, then I'll compile and test your application 
and see where the problem lies exactly.
Hope this helps, bye

Original comment by loreca...@gmail.com on 13 Feb 2014 at 1:58