List Info

Thread: Re: Re: Redland + Postgresql + Rails




Re: Re: Redland + Postgresql + Rails
country flaguser name
India
2007-10-22 01:45:53

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=&quot;harshal&quot;>' does not work. It has to be '<rdfescription rdf:about="harshal">;<rdf:type rdf:resource="Person"&gt;' 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 :
>
&gt;On 29.09.2007, at 13:34, Harshal Ganpatrao Hayatnagarkar wrote:
&gt;>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.
>&gt;
>&gt;--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--
&gt;>
&gt;>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&nbsp; examples? For example 'test_person_data.nt' is not in same format&nbsp; 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.
&gt;
>If you see things missing in one adapter, that are available in  another one, please report it here.
>;
>
&gt;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
>ActiveRDFlists.deri.org
>http://lists.deri.org/mailman/listinfo/activerdf



smart art
Hudson still sleeping?
user name
2007-10-22 04:07:02
can't reach him, error is below

Jeanette

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /hudson/.

Reason: Error reading from remote server


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )