Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEI endpoint for person/id #15

Open
skurzinz opened this issue Oct 11, 2024 · 0 comments
Open

TEI endpoint for person/id #15

skurzinz opened this issue Oct 11, 2024 · 0 comments

Comments

@skurzinz
Copy link

Desired shape is

<person xml:id="mpr16545">
  <persName>
     <forename>-</forename>
     <surname>Sulaiman I., Osmanisches Reich, Sultan</surname>
     <addName type="alt" subtype="alternative_name" xml:lang="en">Süleyman I</addName>
     <addName type="alt" subtype="QHOD_original_text" xml:lang="deu">Soleyman</addName>
     <addName type="alt" subtype="Legacy_name_(merge)" xml:lang="deu">Kanuni / Lawgiver / Magnificient, Süleyman</addName>
  </persName>
  <birth when="1494-07-02"/>
  <death when="1566-07-02"/>
  <occupation>Sultan</occupation>
  <link type="collection" n="1" subtype="Default_import_collection" target="#collection1"><!--Default import collection--></link>
  <link type="collection" n="4" subtype="manually_created_entity" target="#collection4"><!--manually created entity--></link>
  <link type="collection" n="17" subtype="QHOD" target="#collection17"><!--QHOD--></link>
  <link type="collection" n="24" subtype="vrancic" target="#collection24"><!--vrancic--></link>
  <idno type="legacy">https://mpr.acdh.oeaw.ac.at/entity/11015/</idno>
  <idno type="apis-url">https://mpr.acdh.oeaw.ac.at/entity/16545/</idno>
  <idno type="GND">https://d-nb.info/gnd/118619993</idno>
  <!--2024-05-06T10:03:50Z: SKurz-->
  <!--2024-02-01T14:30:49Z: SKurz-->
  <!--2023-06-07T14:34:54Z: SKurz-->
  <!--2023-06-07T14:34:37Z: SKurz-->
  <idno type="apis_id">https://mpr.acdh.oeaw.ac.at/entity/16545/</idno>
  <idno type="mpr">https://mpr.acdh.oeaw.ac.at/apis/entities/entity/person/16545/detail</idno>
<listRelation type="Person_persons">
            <relation active="#mpr16545" passive="#mpr19358">
               <desc>
                  <term ref="https://mpr.acdh.oeaw.ac.at/apis/api/vocabularies/personpersonrelation/30/">spouseOf</term>
                  <rs ref="https://mpr.acdh.oeaw.ac.at/entity/19358/"/>
               </desc>
            </relation>
            <relation active="#mpr16545" passive="#mpr14045">
               <desc>
                  <term ref="https://mpr.acdh.oeaw.ac.at/apis/api/vocabularies/personpersonrelation/127/">parentOf</term>
                  <rs ref="https://mpr.acdh.oeaw.ac.at/entity/14045/">Selim II., Osmanisches Reich, Sultan</rs>
               </desc>
            </relation>
         </listRelation>
</person>

The comment lines are the changes, we do not rely on them but it would also be nice to have them for traceability. Putting them into a <listChange><change who="user" when="timestamp"/></listChange> does not conform to tei_all.rng, but would be a decent option for this usecase, and I'll maybe file an issue with the TEI if I find time :)

Including the listRelation may be preferable when directly using the API to fetch entity data, but we could also do with a large listRelation with all relations/edges and their type. Depends on what you think possible and desirable for performance reasons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant