[Activerdf] Object creation problem

Eyal Oren eyal.oren at deri.org
Tue Apr 24 18:03:15 IST 2007


On 04/24/07/04/07 17:57 +0100, Eyal Oren wrote:
>On 04/23/07/04/07 15:39 -0000, Harshal Ganpatrao Hayatnagarkar wrote:
>>Since I am learning ActiveRDF and RDF both, my questions can be silly.
>no problem.
>
>>manager1 = TEST::Project_Manager.new 
>>'http://www.example.com/schema#manager1'
>>
>>With respect to this code, I have following issues -
>>
>>    1. 'manager1' object is 'nil'
>>    2. 'manager1' object is created successfully only if 'class 
>>    Project_manager' and 'TEST::Project_manager' are specified
>Right. That is the expected behaviour currently. You have to define the 
>class first, otherwise Ruby doesn't know what to do. I'm trying to get rid 
>of all class definitions, but we're not yet there completely. So currently 
>you still need to do this:
Actually, I think we solved this in ActiveRDF 1.6, see [1]. Does the code 
in that message work for you or also not?

 -eyal

[1] http://lists.deri.org/pipermail/activerdf/2007-April/000333.html


More information about the ActiveRDF mailing list