Science Environment for Ecological Knowledge
Ecoinformatics site parent site of Partnership for Biodiversity Informatics site parent site of SEEK - Home
Science Environment for Ecological Knowledge









 

 

 



KRSMS Semantic Annotation Language

Difference between version 167 and version 166:

Line 60 was replaced by line 60
- A more common use of templates is to relate data values in a resource to class instances in the ontology. Assume we are annotating a relational table labeled {{R}} with attributes {{x}}, {{y}}, and {{z}}[3] <a href="#3"/>[3]</a>. The following pattern, which uses a {{foreach}} attribute, creates an instance of class {{C}} for every unique value of {{x}} in the dataset.
+ A more common use of templates is to relate data values in a resource to class instances in the ontology. Assume we are annotating a relational table labeled {{R}} with attributes {{x}}, {{y}}, and {{z}}[3]. The following pattern, which uses a {{foreach}} attribute, creates an instance of class {{C}} for every unique value of {{x}} in the dataset.
Line 766 was replaced by line 766
- <p> <a name="7">[7]</a> Implicitly, this pattern is equivalent to the pattern:
+ [#7] Implicitly, this pattern is equivalent to the pattern:
Lines 768-771 were replaced by lines 768-771
- <pre>
- <individual type="ont:C" foreach="R.x">
- <property type="ont:P" value="$R.y" foreach="R.y"/>
- </individual>
+ {{{
+ <individual type="ont:C" foreach="R.x">
+ <property type="ont:P" value="$R.y" foreach="R.y">
+ </individual>
Lines 773-787 were replaced by line 773
-
- <p> That is, for each unique <code>x</code>, <code>y</code> pair,
- assign a <code>P</code> property with value <code>y</code> to the
- corresponding <code>C</code> instance. Additional uses of
- <code>foreach</code> attributes on properties are discussed later.
-
- <p> <a name="8">[8]</a> Because the variable used within a
- <code>value</code> attribute is implicitly carried over to the
- <code>property</code> statement's <code>foreach</code> expression
- (see <a href="#7">[7]</a>), these resource variables are considered
- to be part of the <code>property</code> statement's iteration
- context.
-
- <p> <a name="9">[9]</a> Pattern references can be cyclic, i.e., a
- property within a pattern p can contain a property that refers to p.
+ }}}
At line 788 added 1 line.
+ That is, for each unique <code>x</code>, <code>y</code> pair, assign a <code>P</code> property with value <code>y</code> to the corresponding <code>C</code> instance. Additional uses of <code>foreach</code> attributes on properties are discussed later.
Lines 790-791 were replaced by line 777
- </body>
- </html>
+ [#8] Because the variable used within a {{value}} attribute is implicitly carried over to the {{property}} statement's {{foreach}} expression (see [7]), these resource variables are considered to be part of the {{property}} statement's iteration context.
At line 792 added 1 line.
+ [#9] Pattern references can be cyclic, i.e., a property within a pattern p can contain a property that refers to p.

Back to KRSMS Semantic Annotation Language, or to the Page History.