<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic CMIS Query - Get the PATH from a cmis:document in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-get-the-path-from-a-cmis-document/m-p/265953#M219083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I make the next query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;SELECT *&amp;nbsp; FROM cmis:document WHERE cmis:name LIKE 'name'&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Nothing of the values returned is the path (it's not al the cmis:document table)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Exists some meaning to recovery the path of there? Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Nov 2011 16:30:02 GMT</pubDate>
    <dc:creator>tremalnaik</dc:creator>
    <dc:date>2011-11-30T16:30:02Z</dc:date>
    <item>
      <title>CMIS Query - Get the PATH from a cmis:document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-get-the-path-from-a-cmis-document/m-p/265953#M219083</link>
      <description>Hi,If I make the next query&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;ELECT *&amp;nbsp; FROM cmis:document WHERE cmis:name LIKE 'name'‍Nothing of the values returned is the path (it's not al the cmis:document table)Exists some meaning to recovery the path of there? Thanks</description>
      <pubDate>Wed, 30 Nov 2011 16:30:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-query-get-the-path-from-a-cmis-document/m-p/265953#M219083</guid>
      <dc:creator>tremalnaik</dc:creator>
      <dc:date>2011-11-30T16:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Query - Get the PATH from a cmis:document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-get-the-path-from-a-cmis-document/m-p/265954#M219084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The path for a CMIS object has to be reconstructed by invoking the object's "getParents" URL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, suppose you have a cmis:document with a self link of: &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;A href="http://localhost:8080/alfresco/cmisatom/c0c56a69-abbb-41a4-90fe-c3750b376199/entry?id=workspace%3A%2F%2FSpacesStore%2F20a3a95b-3c14-4f19-b2e3-1b601de139f4%3B1.0" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/cmisatom/c0c56a69-abbb-41a4-90fe-c3750b376199/entry?id=workspace%3A%2F%2FSpacesStore%2F20a3a95b-3c14-4f19-b2e3-1b601de139f4%3B1.0&lt;/A&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look at the cmis:document, it will have an "up" URL, otherwise known as the getParents URL. In my example, the up URL looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;A href="http://localhost:8080/alfresco/cmisatom/c0c56a69-abbb-41a4-90fe-c3750b376199/parents?id=workspace%3A%2F%2FSpacesStore%2F20a3a95b-3c14-4f19-b2e3-1b601de139f4%3B1.0" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/cmisatom/c0c56a69-abbb-41a4-90fe-c3750b376199/parents?id=workspace%3A%2F%2FSpacesStore%2F20a3a95b-3c14-4f19-b2e3-1b601de139f4%3B1.0&lt;/A&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you have that URL you invoke it with a filter of 'cmis&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ath' and the includeRelativePathSegment set to True, like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;A href="http://localhost:8080/alfresco/cmisatom/c0c56a69-abbb-41a4-90fe-c3750b376199/parents?id=workspace%3A%2F%2FSpacesStore%2F1a2d2fd7-612d-4105-a33f-55a0df8f1c5d%3B1.0&amp;amp;filter=cmis%3Apath&amp;amp;includeRelativePathSegment=True" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/cmisatom/c0c56a69-abbb-41a4-90fe-c3750b376199/parents?id=workspace%3A%2F%2FSpacesStore%2F1a2d2fd7-612d-4105-a33f-55a0df8f1c5d%3B1.0&amp;amp;filter=cmis%3Apath&amp;amp;includeRelativePathSegment=True&lt;/A&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;What you'll get back is a feed of parent entries, even if the object only has a single parent. Each parent entry will contain a path and a relative path segment, which can be concatenated to form the path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, if you are using a CMIS client library like OpenCMIS (Java) or cmislib (Python), you can just ask the object for its paths and the library does all of this work for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2011 16:27:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-query-get-the-path-from-a-cmis-document/m-p/265954#M219084</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2011-12-27T16:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Query - Get the PATH from a cmis:document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-get-the-path-from-a-cmis-document/m-p/265955#M219085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;A href="http://www.losangelescaraccidentattorney.co" rel="nofollow noopener noreferrer"&gt;&lt;SPAN style="color:#333333;"&gt;I&lt;/SPAN&gt;&lt;/A&gt; know what you to do. The path for a CMIS object has to be reconstructed by invoking the object's "getParents" URL.&lt;BR /&gt;&lt;BR /&gt;For example, suppose you have a cmis:document with a self link of: &lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;A href="http://localhost:8080/alfresco/cmisatom/c0c56a69-abbb-41a4-90fe-c3750b376199/entry?id=workspace%3A%2F%2FSpacesStore%2F20a3a95b-3c14-4f19-b2e3-1b601de139f4%3B1.0" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/cmisatom/c0c56a69-abbb-41a4-90fe-c3750b376199/entry?id=workspace%3A%2F%2FSpacesStore%2F20a3a95b-3c14-4f19-b2e3-1b601de139f4%3B1.0&lt;/A&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;If you look at the cmis:document, it will have an "up" URL, otherwise known as the getParents URL. In my example, the up URL looks like this:&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;A href="http://localhost:8080/alfresco/cmisatom/c0c56a69-abbb-41a4-90fe-c3750b376199/parents?id=workspace%3A%2F%2FSpacesStore%2F20a3a95b-3c14-4f19-b2e3-1b601de139f4%3B1.0" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/cmisatom/c0c56a69-abbb-41a4-90fe-c3750b376199/parents?id=workspace%3A%2F%2FSpacesStore%2F20a3a95b-3c14-4f19-b2e3-1b601de139f4%3B1.0&lt;/A&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;Once you have that URL you invoke it with a filter of 'cmis&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ath' and the includeRelativePathSegment set to True, like this:&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;A href="http://localhost:8080/alfresco/cmisatom/c0c56a69-abbb-41a4-90fe-c3750b376199/parents?id=workspace%3A%2F%2FSpacesStore%2F1a2d2fd7-612d-4105-a33f-55a0df8f1c5d%3B1.0&amp;amp;filter=cmis%3Apath&amp;amp;includeRelativePathSegment=True" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/cmisatom/c0c56a69-abbb-41a4-90fe-c3750b376199/parents?id=workspace%3A%2F%2FSpacesStore%2F1a2d2fd7-612d-4105-a33f-55a0df8f1c5d%3B1.0&amp;amp;filter=cmis%3Apath&amp;amp;includeRelativePathSegment=True&lt;/A&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;What you'll get back is a feed of parent entries, even if the object only has a single parent. Each parent entry will contain a path and a relative path segment, which can be concatenated to form the path.&lt;BR /&gt;&lt;BR /&gt;Of course, if you are using a CMIS client library like OpenCMIS (Java) or cmislib (Python), you can just ask the object for its paths and the library does all of this work for you.&lt;BR /&gt;&lt;BR /&gt;Hope that helps,&lt;BR /&gt;&lt;BR /&gt;Jeff&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey, I have the same problem as his. I tried what you said but it didn't work. Do you have any alternate solution for this problem? I AM REALLY REALLY FRUSTRATED. I've been facing this for a week now and been researching about it for about 2 days straight. I really want to finish my task. Please help me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 16:02:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-query-get-the-path-from-a-cmis-document/m-p/265955#M219085</guid>
      <dc:creator>ihanna</dc:creator>
      <dc:date>2012-05-30T16:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Query - Get the PATH from a cmis:document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-get-the-path-from-a-cmis-document/m-p/265956#M219086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"It didn't work" is not helpful. Can you provide details on what specifically does not work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 16:10:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-query-get-the-path-from-a-cmis-document/m-p/265956#M219086</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-05-30T16:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Query - Get the PATH from a cmis:document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-get-the-path-from-a-cmis-document/m-p/265957#M219087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case someone arrives here when looking for how to do this with the OpenCMIS Java library, the call is&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;CmisObject cmisObject &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; session&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getObject&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;id&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="token function"&gt;println&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;cmisObject&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getPaths&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;See &lt;A href="http://stackoverflow.com/questions/37304687/how-can-i-get-the-path-of-a-document-in-opencmis-java" rel="nofollow noopener noreferrer"&gt;this StackOverflow&lt;/A&gt; for reference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 20:09:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-query-get-the-path-from-a-cmis-document/m-p/265957#M219087</guid>
      <dc:creator>aowian</dc:creator>
      <dc:date>2017-03-15T20:09:13Z</dc:date>
    </item>
  </channel>
</rss>

