<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div>
<div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
Dear Jim,</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
There is no easy user interface for doing this, but it is possible using the graph endpoint of the repository (<a href="https://open.med.harvard.edu/wiki/display/eaglei/Repository&#43;Design&#43;Specification&#43;and&#43;API&#43;Manual#RepositoryDesignSpecificationandAPIManual-LoadSerializedRDFintoNamedGraph(/graph-POST,PUT">https://open.med.harvard.edu/wiki/display/eaglei/Repository&#43;Design&#43;Specification&#43;and&#43;API&#43;Manual#RepositoryDesignSpecificationandAPIManual-LoadSerializedRDFintoNamedGraph(/graph-POST,PUT</a>)).
 This endpoint allows users to directly manipulate the triples in the triple store.</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
One possible solution is to get the list of URIs for the resources that need to moved and then write a script which first deletes the triple “resource location oldLocation” and then adds the triple “resource location newLocation”. The following are two example
 curl commands which do this for a resource, delete &amp; add:</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div>
<div><font face="Calibri,sans-serif">curl -s -S -u USERNAME:PASSWORD</font></div>
<div><font face="Calibri,sans-serif">-F 'content=@-;type=text/rdf&#43;n3'</font></div>
<div><font face="Calibri,sans-serif">-F 'name=http://eagle-i.org/ont/repo/1.0/NG_Published'</font></div>
<div><font face="Calibri,sans-serif">-F 'action=delete' &quot;https://alaska.qa.eagle-i.net:8443/repository/graph&quot; &lt;&lt;.</font></div>
<div><font face="Calibri,sans-serif">&lt;http://alaska.qa.eagle-i.net/i/0000012b-d012-84c9-cc6c-4dda80000000&gt; &lt;http://purl.obolibrary.org/obo/RO_0001025&gt; &lt;http://alaska.qa.eagle-i.net/i/0000012a-25c2-586d-76e0-f22c80000000&gt; .</font></div>
<div><font face="Calibri,sans-serif">.</font></div>
<div><font face="Calibri,sans-serif"><br>
</font></div>
<div><font face="Calibri,sans-serif">curl -s -S -u USERNAME:PASSWORD</font></div>
<div><font face="Calibri,sans-serif">-F 'content=@-;type=text/rdf&#43;n3'</font></div>
<div><font face="Calibri,sans-serif">-F 'name=http://eagle-i.org/ont/repo/1.0/NG_Published'</font></div>
<div><font face="Calibri,sans-serif">-F 'action=add’ &quot;https://alaska.qa.eagle-i.net:8443/repository/graph&quot; &lt;&lt;.</font></div>
<div><font face="Calibri,sans-serif">&lt;http://alaska.qa.eagle-i.net/i/0000012b-d012-84c9-cc6c-4dda80000000&gt; &lt;http://purl.obolibrary.org/obo/RO_0001025&gt; &lt;http://alaska.qa.eagle-i.net/i/00000154-7d0c-6df8-8a67-527480000000&gt; .</font></div>
<div><font face="Calibri,sans-serif">.</font></div>
</div>
<div><font face="Calibri,sans-serif"><br>
</font></div>
<div><font face="Calibri,sans-serif">Please note the following:</font></div>
</div>
</div>
<ul>
<li><font face="Calibri,sans-serif">There is intentionally an extra period on its own line at the end</font></li><li>Replace USERNAME:PASSWORD with credentials for a user that has editing permissions</li><li>This command specifically assumes the resource has been published. If you are moving resources that are in the Withdrawn or Draft state, update the name parameter accordingly</li></ul>
<div>I would highly recommend testing this out on test data as the changes that are made are not reversible. Or making a backup of your data prior to trying this out.</div>
<div><br>
</div>
<div>I hope this helps. Let me know if you have any other questions.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Sophia</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION" style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>&lt;<a href="mailto:eagle-i-admins-bounces@open.med.harvard.edu">eagle-i-admins-bounces@open.med.harvard.edu</a>&gt; on behalf of &quot;Robertson, Jim&quot; &lt;<a href="mailto:jrobertson3@hmc.psu.edu">jrobertson3@hmc.psu.edu</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Monday, May 2, 2016 at 4:08 PM<br>
<span style="font-weight:bold">To: </span>eagle-i-admins &lt;<a href="mailto:eagle-i-admins@open.med.harvard.edu">eagle-i-admins@open.med.harvard.edu</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>[Eagle-i-admins] Eagle-i update for location of existing resource<br>
</div>
<div><br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Dear eagle-i admins,<o:p></o:p></p>
<p class="MsoNormal">&nbsp; We have resources which need to be moved to a new provider.&nbsp; Is there a built-in way to update the location on a record other than to duplicate the record?<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">Jim Robertson<o:p></o:p></p>
<p class="MsoNormal">Systems Analyst – Research Informatics<o:p></o:p></p>
<p class="MsoNormal">Phone: (717) 531-0003 x289483<o:p></o:p></p>
<p class="MsoNormal">Email:&nbsp;&nbsp; <a href="mailto:jrobertson3@hmc.psu.edu">jrobertson3@hmc.psu.edu</a><o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</div>
</blockquote>
</span>
</body>
</html>