Add notes for 2017-03-05

This commit is contained in:
Alan Orth 2017-03-05 12:39:09 +02:00
parent 032d72cd05
commit 22f2d07eca
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
6 changed files with 82 additions and 10 deletions

View File

@ -58,3 +58,15 @@ DirectClass CMYK
$ identify -format '%r\n' Africa\ group\ of\ negotiators.pdf\[0\]
DirectClass sRGB Alpha
```
## 2017-03-05
- Look into helping developers from landportal.info with a query for items related to LAND on the REST API
- They want something like the items that are returned by the general "LAND" query in the search interface, but we cannot do that
- We can only return specific results for metadata fields, like:
```
$ curl -s -H "accept: application/json" -H "Content-Type: application/json" -X POST "https://dspacetest.cgiar.org/rest/items/find-by-metadata-field" -d '{"key": "cg.subject.ilri","value": "LAND REFORM", "language": null}' | json_pp
```
- But there are hundreds of combinations of fields and values (like `dc.subject` and all the center subjects), and we can't use wildcards in REST!

View File

@ -37,7 +37,7 @@ $ identify ~/Desktop/alc_contrastes_desafios.jpg
<meta property="article:published_time" content="2017-03-01T17:08:52&#43;02:00"/>
<meta property="article:modified_time" content="2017-03-03T18:40:38&#43;02:00"/>
<meta property="article:modified_time" content="2017-03-04T01:15:47&#43;02:00"/>
@ -94,13 +94,13 @@ $ identify ~/Desktop/alc_contrastes_desafios.jpg
"headline": "March, 2017",
"url": "https://alanorth.github.io/cgspace-notes/2017-03/",
"wordCount": "368",
"wordCount": "465",
"datePublished": "2017-03-01T17:08:52&#43;02:00",
"dateModified": "2017-03-03T18:40:38&#43;02:00",
"dateModified": "2017-03-04T01:15:47&#43;02:00",
"author": {
@ -232,6 +232,21 @@ $ identify -format '%r\n' Africa\ group\ of\ negotiators.pdf\[0\]
DirectClass sRGB Alpha
</code></pre>
<h2 id="2017-03-05">2017-03-05</h2>
<ul>
<li>Look into helping developers from landportal.info with a query for items related to LAND on the REST API</li>
<li>They want something like the items that are returned by the general &ldquo;LAND&rdquo; query in the search interface, but we cannot do that</li>
<li>We can only return specific results for metadata fields, like:</li>
</ul>
<pre><code>$ curl -s -H &quot;accept: application/json&quot; -H &quot;Content-Type: application/json&quot; -X POST &quot;https://dspacetest.cgiar.org/rest/items/find-by-metadata-field&quot; -d '{&quot;key&quot;: &quot;cg.subject.ilri&quot;,&quot;value&quot;: &quot;LAND REFORM&quot;, &quot;language&quot;: null}' | json_pp
</code></pre>
<ul>
<li>But there are hundreds of combinations of fields and values (like <code>dc.subject</code> and all the center subjects), and we can&rsquo;t use wildcards in REST!</li>
</ul>

View File

@ -76,7 +76,22 @@
DirectClass CMYK
$ identify -format &#39;%r\n&#39; Africa\ group\ of\ negotiators.pdf\[0\]
DirectClass sRGB Alpha
&lt;/code&gt;&lt;/pre&gt;</description>
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&#34;2017-03-05&#34;&gt;2017-03-05&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Look into helping developers from landportal.info with a query for items related to LAND on the REST API&lt;/li&gt;
&lt;li&gt;They want something like the items that are returned by the general &amp;ldquo;LAND&amp;rdquo; query in the search interface, but we cannot do that&lt;/li&gt;
&lt;li&gt;We can only return specific results for metadata fields, like:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;$ curl -s -H &amp;quot;accept: application/json&amp;quot; -H &amp;quot;Content-Type: application/json&amp;quot; -X POST &amp;quot;https://dspacetest.cgiar.org/rest/items/find-by-metadata-field&amp;quot; -d &#39;{&amp;quot;key&amp;quot;: &amp;quot;cg.subject.ilri&amp;quot;,&amp;quot;value&amp;quot;: &amp;quot;LAND REFORM&amp;quot;, &amp;quot;language&amp;quot;: null}&#39; | json_pp
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;But there are hundreds of combinations of fields and values (like &lt;code&gt;dc.subject&lt;/code&gt; and all the center subjects), and we can&amp;rsquo;t use wildcards in REST!&lt;/li&gt;
&lt;/ul&gt;</description>
</item>
<item>

View File

@ -76,7 +76,22 @@
DirectClass CMYK
$ identify -format &#39;%r\n&#39; Africa\ group\ of\ negotiators.pdf\[0\]
DirectClass sRGB Alpha
&lt;/code&gt;&lt;/pre&gt;</description>
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&#34;2017-03-05&#34;&gt;2017-03-05&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Look into helping developers from landportal.info with a query for items related to LAND on the REST API&lt;/li&gt;
&lt;li&gt;They want something like the items that are returned by the general &amp;ldquo;LAND&amp;rdquo; query in the search interface, but we cannot do that&lt;/li&gt;
&lt;li&gt;We can only return specific results for metadata fields, like:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;$ curl -s -H &amp;quot;accept: application/json&amp;quot; -H &amp;quot;Content-Type: application/json&amp;quot; -X POST &amp;quot;https://dspacetest.cgiar.org/rest/items/find-by-metadata-field&amp;quot; -d &#39;{&amp;quot;key&amp;quot;: &amp;quot;cg.subject.ilri&amp;quot;,&amp;quot;value&amp;quot;: &amp;quot;LAND REFORM&amp;quot;, &amp;quot;language&amp;quot;: null}&#39; | json_pp
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;But there are hundreds of combinations of fields and values (like &lt;code&gt;dc.subject&lt;/code&gt; and all the center subjects), and we can&amp;rsquo;t use wildcards in REST!&lt;/li&gt;
&lt;/ul&gt;</description>
</item>
<item>

View File

@ -3,7 +3,7 @@
<url>
<loc>https://alanorth.github.io/cgspace-notes/2017-03/</loc>
<lastmod>2017-03-03T18:40:38+02:00</lastmod>
<lastmod>2017-03-04T01:15:47+02:00</lastmod>
</url>
<url>
@ -88,19 +88,19 @@
<url>
<loc>https://alanorth.github.io/cgspace-notes/</loc>
<lastmod>2017-03-03T18:40:38+02:00</lastmod>
<lastmod>2017-03-04T01:15:47+02:00</lastmod>
<priority>0</priority>
</url>
<url>
<loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc>
<lastmod>2017-03-03T18:40:38+02:00</lastmod>
<lastmod>2017-03-04T01:15:47+02:00</lastmod>
<priority>0</priority>
</url>
<url>
<loc>https://alanorth.github.io/cgspace-notes/post/</loc>
<lastmod>2017-03-03T18:40:38+02:00</lastmod>
<lastmod>2017-03-04T01:15:47+02:00</lastmod>
<priority>0</priority>
</url>

View File

@ -75,7 +75,22 @@
DirectClass CMYK
$ identify -format &#39;%r\n&#39; Africa\ group\ of\ negotiators.pdf\[0\]
DirectClass sRGB Alpha
&lt;/code&gt;&lt;/pre&gt;</description>
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&#34;2017-03-05&#34;&gt;2017-03-05&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Look into helping developers from landportal.info with a query for items related to LAND on the REST API&lt;/li&gt;
&lt;li&gt;They want something like the items that are returned by the general &amp;ldquo;LAND&amp;rdquo; query in the search interface, but we cannot do that&lt;/li&gt;
&lt;li&gt;We can only return specific results for metadata fields, like:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;$ curl -s -H &amp;quot;accept: application/json&amp;quot; -H &amp;quot;Content-Type: application/json&amp;quot; -X POST &amp;quot;https://dspacetest.cgiar.org/rest/items/find-by-metadata-field&amp;quot; -d &#39;{&amp;quot;key&amp;quot;: &amp;quot;cg.subject.ilri&amp;quot;,&amp;quot;value&amp;quot;: &amp;quot;LAND REFORM&amp;quot;, &amp;quot;language&amp;quot;: null}&#39; | json_pp
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;But there are hundreds of combinations of fields and values (like &lt;code&gt;dc.subject&lt;/code&gt; and all the center subjects), and we can&amp;rsquo;t use wildcards in REST!&lt;/li&gt;
&lt;/ul&gt;</description>
</item>
<item>