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 166 and version 165:

Line 33 was replaced by line 33
- familiarity with [http://www.w3.org/TR/REC-rdf-syntax|RDF], [http://www.w3.org/TR/owl-guide/|OWL], and basic [http://en.wikipedia.org/wiki/First-order_logic|first-order logic] is assumed.
+ familiarity with [RDF|http://www.w3.org/TR/REC-rdf-syntax], [OWL|http://www.w3.org/TR/owl-guide/], and basic [First-Order Logic|http://en.wikipedia.org/wiki/First-order_logic] is assumed.
At line 34 added 1 line.
+ !!! 2 Overview of Annotation Templates
Lines 36-37 were replaced by line 37
- <a name="section2"></a>
- <h2>2. Overview of Annotation Templates</h2>
+ An annotation template consists of one or more __instantiation patterns__ for constructing OWL individuals from resources. Instantiation patterns are typically based on (or driven by) resource structure and content.
At line 38 added 1 line.
+ The simplest form of an instantiation pattern is:
Lines 40-45 were replaced by lines 41-43
- <p> An annotation template consists of one or more <em><a
- href="#pattern">instantiation patterns</a></em> for constructing OWL
- individuals from resources. Instantiation patterns are typically based
- on (or driven by) resource structure and content.
-
- <p> The simplest form of an instantiation pattern is:
+ {{{
+ <individual type="ont:C"/>
+ }}}
Lines 47-49 were replaced by line 45
- <pre>
- <individual type="ont:C"/>
- </pre>
+ This expression creates a single, unique instance of the {{C}} class in the ontology refered to by {{ont}} (assumed to be an ontology prefix defined in the annotation header). The OWL document that results from running (executing) the pattern is:
Lines 51-55 were replaced by lines 47-51
- <p> This expression creates a single, unique instance of the
- <code>C</code> class in the ontology refered to by <code>ont</code>
- (assumed to be an ontology prefix defined in the annotation
- header). The OWL document that results from running (executing) the
- pattern is:
+ {{{
+ <rdf:RDF xmlns="local-ns" ...>
+ <owl:Ontology rdf:about="">;
+ <owl:imports rdf:resource="http://ontologies.org/ont"/>
+ </owl:Ontology>
Lines 57-61 were replaced by line 53
- <pre>
- <rdf:RDF xmlns="local-ns" ...>
- <owl:Ontology rdf:about="">
- <owl:imports rdf:resource="http://ontologies.org/ont"/>
- </owl:Ontology>
+ <ont:C rdf:ID="id1"/>
Line 63 was replaced by lines 55-56
- <ont:C rdf:ID="id1"/>
+ </rdf:RDF>
+ }}}
Lines 65-66 were replaced by line 58
- </rdf:RDF>
- </pre>
+ In this example, the pattern maps the resources given in the annotation to a single OWL individual[1]. Note that the identifier for the instance above is generated automatically as a result of executing the pattern[2].
Lines 68-81 were replaced by line 60
- <p> In this example, the pattern maps the resources given in the
- annotation to a single OWL individual <a href="#1"/>[1]</a>. Note that
- the identifier for the instance above is generated automatically as a
- result of executing the pattern <a href="#2"/>[2]</a>.
-
-
- <p> 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 <code>R</code> with attributes
- <code>x</code>, <code>y</code>, and <code>z</code> <a
- href="#3"/>[3]</a>. The following pattern, which uses a
- <code>foreach</code> attribute, creates an instance of class
- <code>C</code> for every unique value of <code>x</code> 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] <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.
Lines 83-85 were replaced by lines 62-64
- <pre>
- <individual type="ont:C" foreach="R.x"/>
- </pre>
+ {{{
+ <individual type="ont:C" foreach="R.x">
+ }}}

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