researchgraph / Crosswalks

Crosswalk code from {system X} to the ReseachGraph schema
MIT License
1 stars 1 forks source link

CERN: add researcher and relationship #34

Closed aaryani closed 7 years ago

aaryani commented 7 years ago

This is applied to the inspireHep dump files: http://inspirehep.net/dumps/inspire-dump.html

Creating researcher objects from CERN with the following fields:

"researchgraph.org/inspirehep/{700.x} ->researcher.key 700.a -> researcher.full_name 700.x -> researcher.local_id

https://github.com/researchgraph/Crosswalks/blob/master/inspirehep.net/dumps/sampleHEP-records-Input.xml#L581

Example:

  <datafield tag="100" ind1=" " ind2=" ">
    <subfield code="a">Miller, Roger H.</subfield>
    <subfield code="u">SLAC</subfield>
    <subfield code="w">Roger.H.Miller.1</subfield>
    <subfield code="x">1019152</subfield>
    <subfield code="y">1</subfield>
    <subfield code="z">903206</subfield>
  </datafield>

and create a relation object from the current record to to_uri=researchgraph.org/inspirehep/{700.x} label="relatedTo"

and if there is an ORCID

Please add an extra relationship to to_uri='https://orcid.org/0000-0002-4698-5429' label="relatedTo"

Example:

<marc:datafield tag="700" ind1=" " ind2=" ">
            <marc:subfield code="a">Bracco, Chiara</marc:subfield>
            <marc:subfield code="j">JACoW-00021537</marc:subfield>
            <marc:subfield code="j">ORCID:0000-0002-4698-5429</marc:subfield>
            <marc:subfield code="u">CERN</marc:subfield>
            <marc:subfield code="0">AUTHOR|(CDS)2068249</marc:subfield>
            <marc:subfield code="9">#BEARD#</marc:subfield>
</marc:datafield>