CRISalid-esr / crisalid-ikg

CRISalid institutional knowledge graph
Other
0 stars 0 forks source link

PersonName node not linked to Person node when only first or last name is provided #33

Closed s-marcq closed 3 weeks ago

s-marcq commented 4 weeks ago

Scenario

A person has only one name (mononym), therefore only the field first name or last name is completed.

Sent data

{
    "people_event": {
      "type": "unchanged",
      "data": {
        "names": [
          {
            "first_names": [
              {
                "value": "Jeanne",
                "language": "fr"
              }
            ]
          }
        ],
        "identifiers": [
          {
            "type": "local",
            "value": "jdupond"
          },
          {
            "type": "idref",
            "value": "012345678"
          }
        ],
        "memberships": [
          {
            "entity_id": "UR0456"
          }
        ]
      }
    }
  }

Also tested with the same json containing "last_names": []

Expected result

The last name or first name is linked to the PersonName node with the relationship "has_last_name" or "has_first_name" and the PersonName is linked to the Person node

Observed result

The PersonName node is not linked to the Person node. image