To create a new link type, you can either:
Select New link type from the link type card in the home page header; or,
Navigate to an object type you want to link and select the Create new link type button from within the link type graph on the object type’s Overview page.
After creating a new link type, the link type must be configured and saved. The following configuration steps are required before saving a new link type:
Aircraft
object type and a Flight
object type.
Aircraft
should be linked to a single Flight
. Note that the one-to-one cardinality serves as an indicator of the intended relationship, but the one-to-one mapping is not enforced.Aircraft
can be linked to many Flights
.Aircraft
can be linked to one Flight
.Aircraft
can be linked to many Flights
and one Flight
can be linked to many Aircraft
.
Aircraft
in this example) and the second object type (Flight
in this example).aircraft ID
property is the primary key on the Aircraft
object type. The assigned aircraft ID
property on the Flight
object type is the foreign key. Links will be created between Aircraft
and Flight
object types when the Aircraft
’s aircraft ID
matches a Flight
’s assigned aircraft ID
.Aircraft
object type describes the link from Flight
to Aircraft
. In this example, you could choose the display name Assigned Aircraft
since one Flight
has one Assigned Aircraft.
Flight
object type will describe the link from Aircraft
to Flight
. We might choose the plural display name to be Scheduled Flights
as one Aircraft
has many Scheduled Flights
.Aircraft
side of the link type is assignedAircraft
, then calling Flight.assignedAircraft.get()
will return the Aircraft
objects linked to those Flight
objects.
With these fields filled in, you will now be able to save your link type. To do this, follow the instructions on how to save changes to the Ontology.
Phonograph2:DatasetAndBranchAlreadyRegistered
If you receive the error Phonograph2:DatasetAndBranchAlreadyRegistered
, the datasource backing the link type you are trying to save is already backing a different link type in the Ontology and cannot be used again.