CRISalid-esr / crisalid-ikg

CRISalid institutional knowledge graph
Other
0 stars 0 forks source link

Structure identifier duplicates (for the same structure) #40

Closed s-marcq closed 3 weeks ago

s-marcq commented 3 weeks ago

Scenario

Duplicates for structure identifiers : two different ROR, RNSR and local identifiers for the same structure

Sent data

{
  "structures_event": {
    "type": "unchanged",
    "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": "local",
          "value": "U153"
        },
        {
          "type": "RNSR",
          "value": "200012123S"
        },
        {
          "type": "RNSR",
          "value": "200012133S"
        },
        {
          "type": "ROR",
          "value": "123456"
        },
        {
          "type": "ROR",
          "value": "153456"
        }

      ]
    }
  }
}

Expected result

Exception

Observed result

No exception and no problem in the graph : both ROR, RNSR and local identifiers connected to the structure node with relationship "has_identifier"