OpenLink Software

Usage stats on Using parameterized snippet inserts

 Permalink

an Entity in Data Space: 134.155.108.49:8890

For example, I often use in my scripts a command sequence like this to optionally initialize some script local variable from a global one: let s:name = "value" if exists( "g:global_name" ) let s:name = g:global_name endif Here "name" is some variable name and "value" is the default value it will assume. Now, instead of explicitely hunting for "name" 4 times each time the snippet was inserted, I make them VPars variables by including them in "<| .. |>" delimiters, like this: let s:<|name|> = "<|value|>" if exists( "g:global_<|name|>" ) let s:<|name|> = g:global_<|name|> endif

EntityAttributeValueRank
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] This material is Open Knowledge Creative Commons License Valid XHTML + RDFa
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Copyright © 2009-2012 OpenLink Software