EDC-Custom Model and Scanner
What is Model?
In EDC, you can define models to represent metadata coming from different systems.
One of the models that can be reused easily is the core model.
Model Contains:
Model (package) information (name, description, version)
Classes available in the model
Attributes associated with each the classes
Associations between the classes defined in the model.
Model template
Below is a template for the XML file to build in order to create a model.
Class template
Attribute template
Association template
Follow the steps below to create Custom Scanners
Step 1: Login to ldladmin and then go to “Manage->Models”
Step 2: Click on the Smart Button near to “Models”, visible to left panel. Click on “New Custom
Model”
Step 3: Browse the XML file (Model)
XML File(Model): File is attached.
Step 4: You can see your model in left panel say “DeepTest”. And details of the same in right panel
Step 5: You can also see the relationship in model from right side of panel.
Step 6: Then to create Custom Resource Type, Click on “Manage->Custom Resource Types”
Step 7: Then you can Click on Plus Button (+) to create new Custom Resource Type
Step 8: Enter Name and description. Then select model
Step 9: After selecting model popup will be appeared. Choose your Model. And click on OK.
Step 10: After then select the Connection Type, the popup will be appeared. Choose your connection
Types. And click on OK.
Step 11: After selecting Model and Connection Type, you can see the screen as given below. Click on
“OK”.
Step 12: You can see the Custom Resource Type in the left panel.
Step 13: Now create a new Resource. Click on “New ->Resources”
Step 14: Enter Name, Description. Select the resource type.
Step 15: Popup will be appeared. Go to the “Custom Resource Types->DeepCustomResource” and
click on select.
Step 16: After then browse the connection properties.
To load the metadata, we need to create a resource that will allow use to provide the metadata to
be loaded as CSV files. The metadata is separated in 2 types of files
Object files, the filenames can be any name and contains the list of objects (class instances) to
create in the catalog.
Link file, the filename must be [Link] and contains the links between the objects loaded as part of
the resource.
When creating the resource, you can provide the files as a zip file (CSV files should be at the root of
the zip file and have headers containing the headers.).
Step 17: You can see the following screen, then click on Test Connection button. Then Click on
“Next” button.
Step 18: Then again click on Next Button then click on “Save and Run”.
Step 19: Following screen will be appeared and wait till status has not been completed.
Step 20: Login to ldlcatalog. And search “DeepCustomResource” and click on that you can see
following details.