A list for the developers of CellML tools

Text archives Help


[cellml-dev] RDF Representation


Chronological Thread 
  • From: ak.miller at auckland.ac.nz (Andrew Miller)
  • Subject: [cellml-dev] RDF Representation
  • Date: Wed, 27 May 2009 14:22:49 +1200

Morgan Taschuk wrote:
> Hi,
>
> When I generate stub classes from the IDL file, I get Stubs with the
> queryInterface and addRef and releaseRef methods. However, as they only
> implement the RDFRepresentation interface and multiple inheritance is not
> possible in Java, I can't see a way that I can use the methods generated by
> that in order to access queryInterface.
>
I'm not sure how you are generating these stubs... do you mean that you
generated CORBA stubs? The native API binding does not require CORBA
stubs to be generated. It uses multiple inheritance of interfaces
(allowed in Java) with a single implementing class for each top-level
object.

At this stage, without code changes to the CellML API Java binding
generator, it won't be possible to access queryInterface. However, this
is something that we want to fix quite soon. I have created a tracker
item at https://tracker.physiomeproject.org/show_bug.cgi?id=1821 for this.

Due to a number of other competing priorities (e.g. the build system and
several other changes in progress) I can't work on this right now, and
Justin is currently on leave, but I will eventually get to it if no one
else does. Please feel free to implement this and submit a patch if you
feel you can.

Best wishes,
Andrew

> If you have any ideas how to work around this, I would be very grateful.
> Annotating CellML models will be much more difficult if I can't use the
> CellML DOM API to access the RDF.
>
> Thank you,
> Morgan
>
> ________________________________________
> From: cellml-tools-developers-bounces at cellml.org
> [cellml-tools-developers-bounces at cellml.org] On Behalf Of Andrew Miller
> [ak.miller at auckland.ac.nz]
> Sent: 22 May 2009 23:38
> To: A list for the developers of CellML tools
> Subject: Re: [cellml-dev] RDF Representation
>
> Morgan Taschuk wrote:
>
>> Hello all,
>>
>> Thank you for the quick response to my last question. I'm successfully
>> writing models to file now.
>>
>> I have another problem, though. I'm trying to extract the RDF from the
>> model. I successfully retrieve the generic RDFRepresentation, but as soon
>> as I try to cast it to RDFXMLStringRepresentation,
>>
>
> You will need to query_interface the model (casting is not
> sufficient)... this may be an oversight in the Java bindings, because
> I'm not sure we provided a way to do that, as add_ref and release_ref
> are handled automatically, and in hiding them from manual use by Java
> programs, I think we have also hidden query_interface.
>
> This is something I will need to look into next week.
>
> Best wishes,
> Andrew
> _______________________________________________
> cellml-tools-developers mailing list
> cellml-tools-developers at cellml.org
> http://www.cellml.org/mailman/listinfo/cellml-tools-developers
>





Archive powered by MHonArc 2.6.18.

Top of page