Author Topic: Import ODATA (EDM)  (Read 3566 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1370
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Import ODATA (EDM)
« on: June 18, 2018, 05:11:33 pm »
Hi,

I have a request to import ODATA metadata information in EA.
This is a standard and an example is available here: http://services.odata.org/V4/(S(5u1pssgd00d0isccyny5pihm))/TripPinServiceRW/$metadata

I managed to import the EDM XSD in EA (http://docs.oasis-open.org/odata/odata-csdl-xml/v4.01/cs01/schemas/edmx.xsd and http://docs.oasis-open.org/odata/odata-csdl-xml/v4.01/cs01/schemas/edm.xsd).

I tried to change the metadata XML file so it looks like an XSD, with a reference to the EDM XML schema, e.g. by adding the following (see content from the link above)

Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<Schema Namespace="odatatest" xmlns="http://docs.oasis-open.org/odata/ns/edm">
      <EnumType Name="PersonGender">
        <Member Name="Male" Value="0"/>
        <Member Name="Female" Value="1"/>
        <Member Name="Unknown" Value="2"/>
      </EnumType>
...
    </Schema>

Running the XSD import in EA doesn't generate anything, even when I enable the Import Ref XML Schema option.
I feel I'm not far from getting the expected result. Any idea?

Thanks
Guillaume
« Last Edit: June 18, 2018, 11:43:45 pm by Guillaume »
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Guillaume

  • EA Practitioner
  • ***
  • Posts: 1370
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Import ODATA (EDM)
« Reply #1 on: June 20, 2018, 04:23:22 pm »
As an update on this one, I identified as a potential solution using XSLT to generate a CSV that will let me import Classes and Attributes into EA.
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com