https://redmine.openatlas.eu/https://redmine.openatlas.eu/favicon.ico?17112826112020-06-07T11:08:47ZRedmineOpenAtlas - Question #1270: Administrative Unit and Historical Place get not covered with links or relationshiphttps://redmine.openatlas.eu/issues/1270?journal_id=61072020-06-07T11:08:47ZBernhard Koschiček-Krombholz
<ul><li><strong>Parent task</strong> set to <i>#1206</i></li></ul> OpenAtlas - Question #1270: Administrative Unit and Historical Place get not covered with links or relationshiphttps://redmine.openatlas.eu/issues/1270?journal_id=61092020-06-07T17:27:53ZAlexander Watzingeralexander.watzinger@oeaw.ac.at
<ul><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Question</i></li><li><strong>Found in version</strong> deleted (<del><i></i></del>)</li></ul><p>Without having looked at the code I assume that's because administrative units and historical places are linked to the place, not the object. So you would have to get the place (<strong>E53</strong>) linked to the object (<strong>E18</strong>) with "has location" (<strong>P53</strong>) and than get them via "falls within" (<strong>P89</strong>).</p>
<p>e.g. at <strong>place_update()</strong> in <strong>views/place.py</strong> the location "brings" its own types/nodes (including admin. units and historical places):<br /><pre>
object_ = Entity.get_by_id(id_, nodes=True, aliases=True, view_name='place')
location = object_.get_linked_entity_safe('P53', nodes=True)
</pre></p>
<p>This is just the technical answer but raises the questions how we want to deal with it in the API. In the user interface object and place are presented as one and I guess it would make sense to do the same in the API since it's a 1:1 relation. So one way to stay CIDOC CRM conform would be to present a "sub entity" <strong>E53</strong> with all the links when requesting the object (<strong>E18</strong>). Be aware that there can be multiple links, e.g. a region spans multiple historical places.</p>
<p>Feel free to ask, meet or discuss at next API meeting if you need more information.</p> OpenAtlas - Question #1270: Administrative Unit and Historical Place get not covered with links or relationshiphttps://redmine.openatlas.eu/issues/1270?journal_id=61782020-06-28T11:26:34ZAlexander Watzingeralexander.watzinger@oeaw.ac.at
<ul><li><strong>Target version</strong> set to <i>208</i></li></ul> OpenAtlas - Question #1270: Administrative Unit and Historical Place get not covered with links or relationshiphttps://redmine.openatlas.eu/issues/1270?journal_id=61862020-06-28T11:46:09ZAlexander Watzingeralexander.watzinger@oeaw.ac.at
<ul></ul><p>Didn't we solve this in the last session? Can this be closed?</p> OpenAtlas - Question #1270: Administrative Unit and Historical Place get not covered with links or relationshiphttps://redmine.openatlas.eu/issues/1270?journal_id=61872020-06-28T12:04:24ZBernhard Koschiček-Krombholz
<ul></ul><p>Yes and no. It works, but it has bugs that I need to clean up before we can close this.</p> OpenAtlas - Question #1270: Administrative Unit and Historical Place get not covered with links or relationshiphttps://redmine.openatlas.eu/issues/1270?journal_id=61882020-06-28T12:34:50ZAlexander Watzingeralexander.watzinger@oeaw.ac.at
<ul></ul><p>Got it. Thanks for feedback.</p> OpenAtlas - Question #1270: Administrative Unit and Historical Place get not covered with links or relationshiphttps://redmine.openatlas.eu/issues/1270?journal_id=61992020-07-01T12:40:14ZBernhard Koschiček-Krombholz
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li></ul><p>Ok I tested it today and it seems to work fine. Sry for the misinformation.</p> OpenAtlas - Question #1270: Administrative Unit and Historical Place get not covered with links or relationshiphttps://redmine.openatlas.eu/issues/1270?journal_id=62002020-07-01T12:40:38ZBernhard Koschiček-Krombholz
<ul><li><strong>Assignee</strong> changed from <i>Bernhard Koschiček-Krombholz</i> to <i>Alexander Watzinger</i></li></ul> OpenAtlas - Question #1270: Administrative Unit and Historical Place get not covered with links or relationshiphttps://redmine.openatlas.eu/issues/1270?journal_id=62022020-07-01T12:48:11ZAlexander Watzingeralexander.watzinger@oeaw.ac.at
<ul><li><strong>Target version</strong> deleted (<del><i>208</i></del>)</li></ul><p>Cleared target version so that it doesn't show up in roadmap anymore</p>