In Designer I can import a named graph that was created by someone else and publish to the same endpoint. Therefore I have two named graphs and in both I have classes that have the same name and close to the same set of instances. I want the StarDog platform to understand that it is the same class and merge those two named graphs, how can I do that?
Please let me know if there is a way to treat those two classes from a different models as one?
Thanks,
Katarzyna
Hi Kataryzna,
There are a couple of different approaches you can take when working with an imported data model (named graph):
1. Keep two distinct data models
Use a Combo Model. This lets end users reference one or more data models with a single identifier.
-
In Designer, maintain both the imported data model and a separate model for your use case.
-
Add new concepts to the appropriate model rather than duplicating them in both.
-
When publishing, on the
Configure Data Modelsstep, you’ll publish asMultiple data models:-
Publish your data model a new data model.
-
(Optional) Replace the imported model if you’ve modified it.
-
Publish a combo model that references both the imported model and your new model.
-
2. Merge into a single data model
When publishing from Designer, on the Configure Data Models step, choose to Consolidate to a single data model.
- Replace an existing data model and select the imported model.
This will replace the existing model with your updated version, rather than creating a separate one.
Thanks,
Laura