Lawrence - I can't quite follow from your description what you are doing. Can you please post a (short) sample of the code you are using, so that we can see ...
listed below is the things i've done: <class A> .... </class> <datatypeProperty P> <domain A> </datatypeProperty> instanceOfA.addProperty(P, "testStr") ...
hi, i read an ontology, create an individual, use write() method of ontmodel to write to an output file "instances.daml" --done. Now to set property, i need to...
Hello, I don't know why this should give an out of memory error - a bug for the maintainers of the output code to look at when they get back to work next week....
Well, I requested that you post the code, not the design. The design is fine, so there is obviously a problem with your code. I tried this: public void...
Hi Ian, I am sorry for the misunderstanding. I forgot one "magic" word: range. What I mean is that I can't obtain the properties whose range consist of union...
Hello Linair, Thanks for the clear example of what you are trying to do. I understand the issue now. You are quite correct: a property whose domain is a union...
Hi Andie, thanks for your advice. Many things seem more clear now. Although the commands -set JOSEKIROOT and set CLASSPATH- work, I cannot run Joseki from...
Hi Ian, Thanks for your suggestion: "Alternatively, if this is something you need to do a lot (e.g. when rendering classes in a UI presentation), you could...
Hello Everyone.! I am pretty much new to Jena and was trying simple stuff. In doing so,I am getting this exception when I try to create a model in my Oracle8i...
Hi Kevin..! Thanks for your reply. But my "tnsnames.ora" file for Oracle has the following entry: ORCL = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL =...
Hello..! Is there a way to use the thin client instead of a thick client for Oracle (8i or 9i) with Jena2? I will really appreciate some sample code (if...
jyoti, i encourage you to try my suggestion. the "dbname" argument is the database type, not the name of the database. for example, to connect to MySQL, that ...
Hi Kevin, Thanks for your reply and patience. I did try your suggestion but it didnt work. I also re-checked my DB_URL and it looks ok to me. Regards, Jyoti....
jyoti, presumably, you got a slightly different error this time, e.g., com.hp.hpl.jena.db.RDFRDBException: Failure to instantiate DB Driver:*Oracle*...
Is it possible to search recursively with RDQL? For example to collect all of the children of a class tree? I am doing this: "SELECT ?x WHERE " + "(?x, <" +...
Hi John, RDQL provides only fixed length graph patterns, not recursive search. Queries can be applied to inference models as well as non- inference models....
Hi developers, I need an immediate help on how to get type and values of a DAMLDataInstance that is an anonymous resource. That's when an instance has as range...
It has been a while since I looked at Jena 1, and it's no longer supported since Jena 2 was released. I think you'll just have to use standard getProperty()...
Hi Kevin..! Thanks a lot for your reply. It did work buddy..:) However,now I am getting a null pointer exception. Can you please help me out with this? ...
you didn't say where you are getting the null pointer exception. if it occurs during the createModel call, then i suggest you call conn.cleanDB() before...
Kevin, This is what I got when I did e.printStackTrace() after I added the "conn.cleanDB()" statement to my code. MY code: (partial code) try { String...
Hi Kevin..! Also, the null pointer exception occurs during the create model statement. Here is again the partial code for your reference. Regards, Jyoti. ...
jyoti, as i recall, you are using a "personal" version of oracle. it probably has different configuration limits from the standard oracle (shared) server. so,...
Hi, I have tried to get the type of an anonymous DAMLDataInstance using a getProperty but it does not give any resource (the same thing for the value ...
Thanks Kevin. It did work for me now. However,if I am not wrong, then Jena stores each model in seperate tables. So, for example, if the name of my model is...