Mercurial > hg > may
changeset 578:b28ef45035ac
Properties code now in yertle
author | Chris Cannam |
---|---|
date | Fri, 06 Jun 2014 14:23:23 +0100 |
parents | 514299fc8751 |
children | 8b6da3db8689 |
files | .hgsubstate src/may/vamp/vamprdf.yeti |
diffstat | 2 files changed, 2 insertions(+), 26 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgsubstate Thu Jun 05 19:23:26 2014 +0100 +++ b/.hgsubstate Fri Jun 06 14:23:23 2014 +0100 @@ -1,1 +1,1 @@ -ea762d69743ec57dd9f10dbfc3ff87ffacf64565 ext +296d6490a8cf5c7079390e71e7e9b575a5ecc600 ext
--- a/src/may/vamp/vamprdf.yeti Thu Jun 05 19:23:26 2014 +0100 +++ b/src/may/vamp/vamprdf.yeti Fri Jun 06 14:23:23 2014 +0100 @@ -3,6 +3,7 @@ read = load yertle.read; { newRdfStore } = load yertle.store; +{ textProperty, iriProperty, nodeProperty } = load yertle.property; import java.io: File; @@ -148,31 +149,6 @@ _: None (); esac; -textProperty store subject name = - case store.match { - s = Known subject, p = Known (store.expand name), o = Wildcard () - } of - { o = Literal { value = text } }::others: text; - _: ""; - esac; - -iriProperty store subject name = - case store.match { - s = Known subject, p = Known (store.expand name), o = Wildcard () - } of - { o = IRI iri }::others: IRI iri; - _: None (); - esac; - -nodeProperty store subject name = - case store.match { - s = Known subject, p = Known (store.expand name), o = Wildcard () - } of - { o = IRI iri }::others: Some (IRI iri); - { o = Blank n }::others: Some (Blank n); - _: None (); - esac; - inputDomainOf store pluginNode = case store.match { s = Known pluginNode, p = Known (store.expand "vamp:input_domain"), o = Wildcard ()