changeset 582:deeaef1c3cd2

Download and info URLs: library level
author Chris Cannam
date Tue, 10 Jun 2014 17:54:52 +0100
parents a9c5a29bb248
children f65e6f84259f
files src/may/vamp/vamprdf.yeti
diffstat 1 files changed, 12 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/may/vamp/vamprdf.yeti	Tue Jun 10 14:43:52 2014 +0100
+++ b/src/may/vamp/vamprdf.yeti	Tue Jun 10 17:54:52 2014 +0100
@@ -248,6 +248,18 @@
                 textsProperty store n "vamp:has_binary"
                 done (libraryNodesFor store pluginNode),
             source = strLower (libtextprop "vamp:has_source") == "true",
+            downloadURL = 
+                case concatMap do n:
+                    irisProperty store n "doap:download-page"
+                    done (libraryNodesFor store pluginNode) of
+                IRI iri::_: iri;
+                _: "";
+                esac,
+            infoURL =
+                case iriProperty store pluginNode "foaf:page" of
+                IRI iri: iri;
+                 _: "";
+                esac,
         },
         apiVersion = numprop "vamp:vamp_API_version",
         identifier = textprop "vamp:identifier",
@@ -277,12 +289,6 @@
             IRI iri::_: iri;
             _: "";
             esac,
-        downloadURL =
-            case nodeprop "doap:download-page" of
-            Some (IRI iri): iri;
-            Some _: "";
-            _: "";
-            esac,
         copyright = textprop "dc:rights",
         version = textprop "owl:versionInfo",
         category =