Hi,
There seems to be some problem with my previous post, because only attachment was carried and not the actual mail. Here is the mail -
I was working on this problem and finally could arrive with solution.
First thing to mention is - '<myns:Person rdf:ID="harshal">' does not work. It has to be '<rdf escription rdf:about="harshal"><rdf:type rdf:resource="Person">' and so on.
Secondly, I could not extract better performance from 'Redland + Postgresql', which I got from RDFLite. So finally I decided to switch to 'Redland + MySQL'. It did not work outrightly, but after making some minor code changes in 'redland.rb' (i.e. by adding another method 'initialize_mysql' immitating 'initialize_postgresql'. It could have been better, like combining them into one method, but I avoided that).
I have attached the patch with this mail.
I hope this would help us.
Thanks for your precious time.
With regards,
Harshal
On Sun, 30 Sep 2007 Benjamin Heitmann wrote :
>
>On 29.09.2007, at 13:34, Harshal Ganpatrao Hayatnagarkar wrote:
>>Meanwhile, I continued working on the problem to know a fact that the standard data file 'test_person_data.nt' stops working if I remove following lines from it.
>>
>>--Begin--
>># everything is a resource
>>ar:Person a rdfs:Resource .
>>ar:eye a rdfs:Resource .
>>ar:eyal a rdfs:Resource .
>>ar:age a rdfs:Resource .
>>ar:car a rdfs:Resource .
>>--End--
>>
>>Does it mean that RDFLite is performing something (some inference) which Redland is not?
>
>Yes, rdflite is able to do some very minimal inferencing, which is just hacked into the source. In fact, I think it only works for querying instances of RDFS::Resource.
>
>Right now the only safe bet is to explicitly declare every class of which an entity is an instance.
>
>>One suggestion. Can we have a common data file and format across examples? For example 'test_person_data.nt' is not in same format for RDFLite that of Redland adapter.
>
>Due to the widely different abilities of the supported RDF libraries, the different adapters also have sometimes different abilities, which reflects in the examples and unit tests.
>
>If you see things missing in one adapter, that are available in another one, please report it here.
>
>
>Something else: It is not a good idea to have different versions of the same game installed at the same time. Please remove all older versions of the various activerdf gems, before reporting bugs. I think this is generally true for all ruby gems.
>
>_______________________________________________
>ActiveRDF mailing list
>ActiveRDF lists.deri.org
>http://lists.deri.org/mailman/listinfo/activerdf
|