A list for the developers of CellML tools

Text archives Help


[cellml-dev] CellML API and RDF in Java


Chronological Thread 
  • From: ak.miller at auckland.ac.nz (Andrew Miller)
  • Subject: [cellml-dev] CellML API and RDF in Java
  • Date: Wed, 22 Jul 2009 09:15:46 +1200

Morgan Taschuk wrote:
> Hi all,
>
> I have one code-related problem and one question:
>
> 1) I have the RDF loading using the API now, and I can serialize it into
> a string with RDFXMLStringRepresentation. However, using
> RDFXMLDOMRepresentation, I run into a bug when I attempt to query the
> DOM for its data. Specifically, the line it dies on is
>
> Document doc = domRep.getData();

I haven't seen that problem yet in my tests, but I will try to reproduce
it later today.

>
>
> Here is the error:
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> # SIGSEGV (0xb) at pc=0xb7695ac6, pid=6321, tid=3073334160
> #
> # JRE version: 6.0_14-b08
> # Java VM: Java HotSpot(TM) Server VM (14.0-b16 mixed mode linux-x86 )
> # Problematic frame:
> # V [libjvm.so+0x379ac6]
> #
> # An error report file with more information is saved as:
> # /home/morgan/IntelliJ/cellml-test/hs_err_pid6321.log
> #
> # If you would like to submit a bug report, please visit:
> # http://java.sun.com/webapps/bugreport/crash.jsp
> #
>
> The log file and the offending Java file are both attached.
>
>
> 2) I'm also curious as to why you have both this DOM representation and
> the RDF package. Don't they perform the same function essentially?

No, the RDF package enables access to RDF triples, while the DOM view
provides access to the DOM of the RDF/XML. There are many different ways
to write the same RDF triple in RDF/XML, and so working with RDF from
the DOM is quite tricky. To help with this, we built another layer for
accessing RDF triples on top of the DOM.

Best wishes,
Andrew

>
>
>
> Thank you in advance,
> Morgan Taschuk
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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