CRISalid-esr / crisalid-ikg

CRISalid institutional knowledge graph
Other
0 stars 0 forks source link

Multiple updates on a person and their structure #65

Closed s-marcq closed 1 day ago

s-marcq commented 2 weeks ago

Scenario

1) Create person and structures 2) Update person :

Sent data

Creation of person and structures

Structures

{
  "structures_event": {
    "type": "created",
    "data": {
      "names": [
        {
          "value": "Laboratoire toto",
          "language": "fr"
        },
        {
          "value": "Foobar Laboratory",
          "language": "en"
        }
      ],
      "acronym": "FL",
      "descriptions": [
        {
          "value": "Un laboratoire de recherche fictif",
          "language": "fr"
        },
        {
          "value": "An imaginary laboratory",
          "language": "en"
        }
      ],
      "contacts": [
        {
          "type": "postal_address",
          "format": "structured_physical_address",
          "value": {
            "country": "France",
            "zip_code": "75005",
            "city": "PARIS",
            "street": "Sorbonne, 1 rue de la Sorbonne"
          }
        }
      ],
      "identifiers": [
        {
          "type": "local",
          "value": "U123"
        },
        {
          "type": "RNSR",
          "value": "200012123S"
        },
        {
          "type": "ROR",
          "value": "123456"
        }
      ]
    }
  }
}
{
  "structures_event": {
    "type": "created",
    "data": {
      "names": [
        {
          "value": "Deuxième laboratoire",
          "language": "fr"
        },
        {
          "value": "Second Laboratory",
          "language": "en"
        }
      ],
      "acronym": "SL",
      "descriptions": [
        {
          "value": "Un 2e laboratoire de recherche fictif",
          "language": "fr"
        },
        {
          "value": "A second imaginary laboratory",
          "language": "en"
        }
      ],
      "contacts": [
        {
          "type": "postal_address",
          "format": "structured_physical_address",
          "value": {
            "country": "France",
            "zip_code": "75005",
            "city": "PARIS",
            "street": "Sorbonne, 1 rue de la Sorbonne"
          }
        }
      ],
      "identifiers": [
        {
          "type": "local",
          "value": "U133"
        },
        {
          "type": "RNSR",
          "value": "46355126S"
        },
        {
          "type": "ROR",
          "value": "1652735671"
        }
      ]
    }
  }
}

Person

{
  "people_event": {
    "type": "created",
    "data": {
      "names": [
        {
          "last_names": [
            {
              "value": "Dupont",
              "language": "fr"
            }
          ],
          "first_names": [
            {
              "value": "Jeanne",
              "language": "fr"
            }
          ]
        }
      ],
      "identifiers": [
        {
          "type": "local",
          "value": "jdupond"
        },
        {
          "type": "idref",
          "value": "012345678"
        }
      ],
      "memberships": [
        {
          "entity_uid": "local-U123"
        }
      ]
    }
  }
}

Updates on person

{
  "people_event": {
    "type": "updated",
    "data": {
      "names": [
        {
          "last_names": [
            {
              "value": "Dupont",
              "language": "fr"
            }
          ],
          "first_names": [
            {
              "value": "Boris",
              "language": "fr"
            }
          ]
        }
      ],
      "identifiers": [
        {
          "type": "local",
          "value": "jdupond"
        },
        {
          "type": "idref",
          "value": "012345678"
        },
        {
          "type": "id_hal_s",
          "value": "iddupont"
        }

      ],
      "memberships": [
        {
          "entity_uid": "local-U123"
        },
        {
          "entity_uid": "local-U133"
        }

      ]
    }
  }
}

Updates on structure

{
  "structures_event": {
    "type": "updated",
    "data": {
      "names": [
        {
          "value": "Laboratoire toto renommé",
          "language": "fr"
        },
        {
          "value": "Foobar Laboratory renamed",
          "language": "en"
        },
        {
          "value": "La version italienne",
          "language": "it"
        }

      ],
      "acronym": "FLR",
      "descriptions": [
        {
          "value": "Un laboratoire de recherche fictif modifié",
          "language": "fr"
        },
        {
          "value": "A modified imaginary laboratory",
          "language": "en"
        },
        {
          "value": "la traduction en italien",
          "language": "it"
        }

      ],
      "contacts": [
        {
          "type": "postal_address",
          "format": "structured_physical_address",
          "value": {
            "country": "France",
            "zip_code": "75005",
            "city": "PARIS",
            "street": "Sorbonne, 1 place du Panthéon"
          }
        }
      ],
      "identifiers": [
        {
          "type": "local",
          "value": "U123"
        },
        {
          "type": "RNSR",
          "value": "200012123S"
        },
        {
          "type": "ROR",
          "value": "123496"
        }
      ]
    }
  }
}

Expected result

No error, the information gets updated/added to the graph.

Observed result

No error in the terminal. The information supposed to be seen in the graph gets updated/added.