Difference (from revision 57 to 58)
Changed: 115c115
|
A variety of name resolution strategies are supported when creating or referencing entities from cells. |
|
A variety of name resolution strategies are supported when creating or referencing OWL entities from cells. |
Added: 165a166,169
|
The language supports a literal encoding clause to allow a value specification clause to be used to assign values to OWL literals. This clause has a similar form to the {{{rdf:ID}}} and {{{rdfs:label}}} name resolution clauses and is introduced by the keyword {{{mm:Literal}}}. For example, an expression using this clause to create a string data value that is composed of the contents of cell A5 preceded by the string "Sale:" can be written as follows: {nid BQU} * Individual: @A5 Facts: hasItems(mm:Literal=("Sale:", @A5)) {nid BQV} |
Changed: 168c172
|
A similar approach can be used to selectively extract values from referenced cells. A regular expression [http://download.oracle.com/javase/tutorial/essential/regex/groups.html capturing groups] clause is provided and can be used in any position in a value specification clause. This clause can be used in a value assignment list and is contained in a quoted string enclosed by square parenthesis. For example, if cell A5 in a spreadsheet contains the string "Pfizer:Zyvox" but only the text following the ':' character is to be used in the label encoding, an appropriate capture expression could be written as: {nid BPE} |
|
A similar approach can be used to selectively extract values from referenced cells. A regular expression [http://download.oracle.com/javase/tutorial/essential/regex/groups.html capturing groups] clause is provided and can be used in any position in a value specification clause. This clause is contained in a quoted string enclosed by square parenthesis. For example, if cell A5 in a spreadsheet contains the string "Pfizer:Zyvox" but only the text following the ':' character is to be used in the label encoding, an appropriate capture expression could be written as: {nid BPE} |