Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[bioontology-support] Question concerning REST API mapping response format

Manuel Salvadores Olaizola manuelso at stanford.edu
Mon Nov 24 07:25:41 PST 2014


Erik,

I have created a ticket to address this issue. It seems reasonable to apply the changes that you are suggesting though it might take us some time to address it. In the meantime you can probably get around this by modifying the response before parsing it with your JSON library.

Best,

Manuel

----- Original Message -----
From: "Erik Fäßler" <erik.faessler at uni-jena.de>
To: support at bioontology.org
Sent: Monday, November 24, 2014 5:48:02 AM
Subject: [bioontology-support] Question concerning REST API mapping response	format

Dear Bioontology-Team,

I use the BioPortal 4.x REST API to download ontology mappings. It seems that in the JSON response of some ontologies, the “process” key has as value an array of Strings, e.g. [“LOOM”] whereas others have an object as value, e.g.

"process" : { "comment" : null,
            "creator" : "http://data.bioontology.org/users/twicker",
            "date" : "2013-04-02T18:32:06+00:00",
            "id" : "http://purl.bioontology.org/mapping/cefd7f9e-e5bb-4ebe-bdbb-4fdb2c5c19f4",
            "name" : null,
            "relation" : null,
            "source" : "Application",
            "source_contact_info" : "support at bioontology.org",
            "source_name" : "BioPortal UI"
          }

Looking at the object, I guess the difference is automatic mapping vs. manually entered mapping. The different value types for the “process” key pose an issue for my code since I deserialise the JSON string into an object using Gson or Jackson.

Thus, my question is whether this format will be unified soon or if it will stay in the heterogeneous way and I just have to implement the two cases. Another question would if there are more types of values planned for the future.

Thank you and best regards,

Erik
_______________________________________________
bioontology-support mailing list
bioontology-support at lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/bioontology-support



More information about the bioontology-support mailing list