Date: 2011-10-12 22:06:55
From: msolanki.mailings@gmail.com
Hi Barry,
I checked the path to the ontology import folder, it seems correct. The
storage folder that is being read is indeed for the one in [ADUNA_DATA]  for
the repository. Further the main.log in [ADUNA_DATA] also does not record
any errors. The .ttl file has the defaultNS setup correctly.
I tried the same setup with a repository that I created through the
workbench UI  and it seems to be the same behaviour. I could not see the
TBox I uploaded in the Types area.
I have a couple of more concern
1. I have only one folder openrdf-sesame in [ADUNA_DATA]. I do not have
openrdf-worrkbench.
2. Where can I see the OWLIM log ?
3. How can I check if the ontology has indeed been imported- any way to
trouble shoot this?
4. Should I expect something to work at
http://localhost:8080/openrdf-sesame/, because this is returning 404.
I am using the distribution of OWLIM-SE 4.2.3924 and the sesame jars that
come bundled with it.
The config.ttl FWIW
#
# Sesame configuration template for a owlim repository
#
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix rep: <http://www.openrdf.org/config/repository#>.
@prefix sr: <http://www.openrdf.org/config/repository/sail#>.
@prefix sail: <http://www.openrdf.org/config/sail#>.
@prefix owlim: <http://www.ontotext.com/trree/owlim#>.
[] a rep:Repository ;
rep:repositoryID "testRepos" ;
rdfs:label "My repos" ;
rep:repositoryImpl [
rep:repositoryType "openrdf:SailRepository" ;
sr:sailImpl [
owlim:ruleset "owl-max-optimized" ;
owlim:entity-index-size "5000000" ;
owlim:cache-size "3000" ;
sail:sailType "owlim:Sail" ;
owlim:noPersist "false" ;
owlim:storage-folder "storage" ;
owlim:repository-type "file-repository" ;
owlim:base-URL "http://data.test.org/TestInstances/" ;
owlim:imports "./ontology/TestOntology.owl";
owlim:defaultNS "http://data.test.org/ontologies/test#";
]
].
Thanks,
Monika

asked 03 Apr '13, 09:15

Discussion-Board-Archive's gravatar image

Discussion-B...
6.1k136156214
accept rate: 30%


Date: 2011-10-13 08:07:13
From: barry.bishop@ontotext.com
(Trimming this thread to keep the size down)
Hi Monika,
I just tried creating a repository with invalid imports:
1. Missing file => repository won't initialise, exception in workbench
2. Invalid RDF format => same as above, but exception from RIO parser
Can you try one more thing, create a repository with a completely new id 
(and with the correct full path to your ontology file)?
e.g. change rep:repositoryID "testRepos" to
rep:repositoryID "testReposV2"
in your ttl file. I suspect that changes to your configuration file are 
being ignored if the repository already exists. An alternative is to 
delete all repository data from [ADUNA_DATA] (wherever that happens to 
be on your system). You will need to stop tomcat first!
Best,
barry
link

answered 03 Apr '13, 09:15

Discussion-Board-Archive's gravatar image

Discussion-B...
6.1k136156214
accept rate: 30%

Date: 2011-10-13 00:30:48
From: barry.bishop@ontotext.com
Hi Monika,
You will have to give me more information before I will be able to help 
you. Can you tell me how many computers you are using and what software 
you are running on each machine?
i.e. which machine has a tomcat instance and what webapps you have 
deployed there.
Where is your client application running?
How are you instantiating the RemoreRepositoryManager? What URL do you 
give it?
More questions below:
From your config file, the import file is 
"./ontology/TestOntology.owl". Are you sure you added this under your 
tomcat installation? On a linux setting, this relative path resolves to:
/var/lib/tomcat6/ontology/TestOntology.owl
which seems unlikely. If it is not located here, then change 
owlim:imports to be the full path to your ontology file. You cansee the 
sesame log file by pointing your browser at the sesame server (not the 
workbench), e.g. http://localhost:8080/openrdf-sesame, and clicking on 
'system' and logging.
If there is nothing here, try looking at the tomcat log files in 
/var/log/tomcat6/ - this will be something like c:\Program 
Files\Apache\Tomcat6\logs on a windows system.
There seems to be some basic configuration problem.
This is correct. The workbench is just like any other client to the 
Sesame HTTP server. It just happens to run in a browser. The workbench 
does not store any data itself, this is the job of the server.
You will see OWLIM output in the tomcat logs, e.g.
/var/log/tomcat6/localhost.2011-10-12.log or /var/log/tomcat6/catalina.out
Just run a query against a triple that you know is in your ontology, e.g.
ASK { :david_beckham a :Footballer }
This is the sesame server, so if this is not working then nothing is 
going to work unless it is running elsewhere - back to my original 
question: what computers do you have and what is running on them?
So this is the configuration that you load, parse and add add to the 
remote repository instance?
Looking forward to getting more info so I can better help you.
Best,
barry
link

answered 03 Apr '13, 09:15

Discussion-Board-Archive's gravatar image

Discussion-B...
6.1k136156214
accept rate: 30%

Date: 2011-10-13 05:47:40
From: msolanki.mailings@gmail.com
First thing, I switched back to tomcat 6.0.33. I can now atleast see the
sesame server at http://localhost:8080/openrdf-sesame. I was not able to see
any server running on 7.0.22. Would you know if anyone else has experienced
this problem with tomcat 7.0.22 on Ubuntu 11.04?he workbench works fine but
the sesame server does not on 7.0.22.
I am on Ubuntu 11.04, client and server on the same machine. No other webapp
is deployed on the instance of tomcat i am running, tomcat is running on
8080.
This is my mechanism for instantiating the remote repos:
String url = "http://localhost:8080/openrdf-sesame";
repositoryManager = new RemoteRepositoryManager(url);
I have given the full path to the imported ontology in the .ttl file for the
config.
Something must be working because I can see all the repositories I made, on
the workbench UI along with the context and the data. The  (very big)
problem is that I cannot see any inferences happening against my TBox. In
fact even very simple queries on the imported ontology are not working.
Direct SPARQL queries on the ABox I uploaded through my Java program are
working fine. The openrdf:sesame log as reported on the server interface is
clean, nothing has been recorded there.
What else should I do [?]
Thanks,
M.
link

answered 03 Apr '13, 09:15

Discussion-Board-Archive's gravatar image

Discussion-B...
6.1k136156214
accept rate: 30%

Date: 2011-10-13 07:48:37
From: barry.bishop@ontotext.com
Hi Monika,
If Sesame is not working with this version of Tomcat then it is 
important for us to know - so thanks for raising this. I will look in to it.
However, you need to get your set up running properly and it sounds like 
you have made progress.
From what you say, it seems that only the imported ontology is missing. 
Can you check:
1. That the full path is indeed correct
2. File permissions (are you using windows or linux?) - either way the 
user running tomcat must have read access to the ontology files.
3. If it still doesn't load, can you try a local url instead of the full 
path to the ontology, e.g. file:///home/monika/ontology/myontology.rdf.xml
4. Check the RDF syntax - at the moment only RDF/XML is supported
If your ontology is not in RDF/XML format you can convert it here:
http://www.rdfabout.com/demo/validator/index.xpd
Or if it is some more obscure format then please send it to me and I 
will convert it for you.
If the import is failing then I am surprised nothing is being logged. I 
will investigate if this is a more general problem.
Best of luck,
barry
link

answered 03 Apr '13, 09:15

Discussion-Board-Archive's gravatar image

Discussion-B...
6.1k136156214
accept rate: 30%

rom: msolanki.mailings@gmail.com
No need, feedback from the sesame mailing list (Jeen):
Ah, yes, this is a known issue with Sesame on Tomcat 7:
http://www.openrdf.org/issues/browse/SES-845.
The problem seems to be in the redirect. You can still access the Sesame
server by directly going to the link
http://localhost:8080/openrdf-sesame/home/overview.view.
It is indeed
Linux, but tomcat does have read access to the files.
I tried this as well, cannot see anything new but will try again
Thanks!!
link

answered 03 Apr '13, 09:15

Discussion-Board-Archive's gravatar image

Discussion-B...
6.1k136156214
accept rate: 30%

Date: 2011-10-13 07:16:51
From: msolanki.mailings@gmail.com
*Success!!!*
It was indeed what you mentioned, I deleted all repository related data from
.aduna, restarted tomcat and ran the application again and the new
repository has been setup with the correct imports!!
Many thanks for helping me through this.
Monika
link

answered 03 Apr '13, 09:15

Discussion-Board-Archive's gravatar image

Discussion-B...
6.1k136156214
accept rate: 30%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×261
×242
×18

Asked: 03 Apr '13, 09:15

Seen: 5,793 times

Last updated: 27 Jun, 03:41

powered by BitNami OSQA