From a33e8168211aaaa3ec858839590803920f1c791e Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 19 Aug 2017 09:18:51 +0300 Subject: [PATCH] Update notes for 2017-08-18 --- content/post/2017-08.md | 29 +++++++++++++++++++++++++++++ public/2017-08/index.html | 36 +++++++++++++++++++++++++++++++++--- public/sitemap.xml | 10 +++++----- 3 files changed, 67 insertions(+), 8 deletions(-) diff --git a/content/post/2017-08.md b/content/post/2017-08.md index 94c39f16d..81821d136 100644 --- a/content/post/2017-08.md +++ b/content/post/2017-08.md @@ -290,5 +290,34 @@ dspace.log.2017-08-17:584 - I wired it up to the `dc.subject` field of the submission interface using the "lookup" type and it works! - I think we can use this example to get a working AGROVOC query - More information about authority framework: https://wiki.duraspace.org/display/DSPACE/Authority+Control+of+Metadata+Values +- Wow, I'm playing with the AGROVOC SPARQL endpoint using the [sparql-query tool](https://github.com/tialaramex/sparql-query): + +``` +$ ./sparql-query http://202.45.139.84:10035/catalogs/fao/repositories/agrovoc +sparql$ PREFIX skos: +SELECT + ?label +WHERE { + { ?concept skos:altLabel ?label . } UNION { ?concept skos:prefLabel ?label . } + FILTER regex(str(?label), "^fish", "i") . +} LIMIT 10 + +┌───────────────────────┐ +│ ?label │ +├───────────────────────┤ +│ fisheries legislation │ +│ fishery legislation │ +│ fishery law │ +│ fish production │ +│ fish farming │ +│ fishing industry │ +│ fisheries data │ +│ fishing power │ +│ fishing times │ +│ fish passes │ +└───────────────────────┘ +``` + +- More examples about SPARQL syntax: https://github.com/rsinger/openlcsh/wiki/Sparql-Examples - I found this blog post about speeding up the Tomcat startup time: http://skybert.net/java/improve-tomcat-startup-time/ - The startup time went from ~80s to 40s! diff --git a/public/2017-08/index.html b/public/2017-08/index.html index 12cbe053f..00c4a7657 100644 --- a/public/2017-08/index.html +++ b/public/2017-08/index.html @@ -37,7 +37,7 @@ Then I cleaned up the author authorities and HTML characters in OpenRefine and s - + @@ -85,9 +85,9 @@ Then I cleaned up the author authorities and HTML characters in OpenRefine and s "@type": "BlogPosting", "headline": "August, 2017", "url": "https://alanorth.github.io/cgspace-notes/2017-08/", - "wordCount": "2943", + "wordCount": "3039", "datePublished": "2017-08-01T11:51:52+03:00", - "dateModified": "2017-08-17T11:43:00+03:00", + "dateModified": "2017-08-18T18:21:00+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -493,6 +493,36 @@ dspace.log.2017-08-17:584
  • I wired it up to the dc.subject field of the submission interface using the “lookup” type and it works!
  • I think we can use this example to get a working AGROVOC query
  • More information about authority framework: https://wiki.duraspace.org/display/DSPACE/Authority+Control+of+Metadata+Values
  • +
  • Wow, I’m playing with the AGROVOC SPARQL endpoint using the sparql-query tool:
  • + + +
    $ ./sparql-query http://202.45.139.84:10035/catalogs/fao/repositories/agrovoc
    +sparql$ PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
    +SELECT 
    +    ?label 
    +WHERE {  
    +   {  ?concept  skos:altLabel ?label . } UNION {  ?concept  skos:prefLabel ?label . }
    +   FILTER regex(str(?label), "^fish", "i") .
    +} LIMIT 10
    +
    +┌───────────────────────┐                                                      
    +│ ?label                │                                                      
    +├───────────────────────┤                                                      
    +│ fisheries legislation │                                                      
    +│ fishery legislation   │                                                      
    +│ fishery law           │                                                      
    +│ fish production       │                                                      
    +│ fish farming          │                                                      
    +│ fishing industry      │                                                      
    +│ fisheries data        │                                                      
    +│ fishing power         │                                                      
    +│ fishing times         │                                                      
    +│ fish passes           │                                                      
    +└───────────────────────┘
    +
    + + diff --git a/public/sitemap.xml b/public/sitemap.xml index dfc6ce0cf..fbbb65f30 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2017-08/ - 2017-08-17T11:43:00+03:00 + 2017-08-18T18:21:00+03:00 @@ -114,7 +114,7 @@ https://alanorth.github.io/cgspace-notes/ - 2017-08-17T11:43:00+03:00 + 2017-08-18T18:21:00+03:00 0 @@ -125,19 +125,19 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2017-08-17T11:43:00+03:00 + 2017-08-18T18:21:00+03:00 0 https://alanorth.github.io/cgspace-notes/post/ - 2017-08-17T11:43:00+03:00 + 2017-08-18T18:21:00+03:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2017-08-17T11:43:00+03:00 + 2017-08-18T18:21:00+03:00 0