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









 

 

 



Sparrow Language

Difference between version 10 and version 9:

Line 10 was replaced by line 10
- Sparrow is a description-logic variant that is meant as a "lightweight" alternative to RDF/S and OWL for defining ontologies. This document describes the syntax of sparrow.
+ Sparrow is a description-logic syntax that is meant as a "lightweight" alternative to RDF/S and OWL for defining ontologies. This document details the sparrow syntax.
Line 16 was replaced by line 16
- !! Basics: Simple Concept Definitions
+ !! Basic Concept Definitions
Line 18 was replaced by line 18
- Concepts in sparrow are defined using sentences. For instance, we can introduce a new concept called 'vegetarian' into an ontology using the following sentence.
+ Concepts in sparrow are defined using ''sentences.'' For instance, we can introduce a new concept called 'vegetarian' into an ontology using the following sentence.
Line 21 was replaced by line 21
- concept vegetarian.
+ concept Vegetarian
Line 24 was replaced by line 24
- This sentence simply states that the term 'vegetarian' is a concept. Instead, we can give more details by defining concepts.
+ This sentence simply states that the term 'Vegetarian' is a concept. In the above sentence, the term 'concept' is a reserved word. We can give further elaborate concepts using ''concept axioms,'' for example:
Line 27 was replaced by line 27
- concept animal is_a organism.
+ concept Animal kind_of Organism
Line 30 was replaced by line 30
- This sentence states that the term 'animal' is a sub-concept of the concept 'organism'. In other words, every animal is an organism. Both 'animal' and 'organism' are asserted as being concepts by this sentence. The sentence is equivalent to the following three sparrow sentences.
+ This sentence states that the term 'Animal' is a sub-concept of the concept 'Organism'. In other words, every animal is an organism. The term 'kind_of' is a reserved word. Both 'Animal' and 'Organism' are asserted as being concepts by this sentence. The sentence is equivalent to the following three sparrow sentences.
Lines 33-35 were replaced by lines 33-35
- concept organism.
- concept animal.
- concept animal is_a organism.
+ concept Organism
+ concept Animal
+ concept Animal kind_of Organism.
Line 38 was replaced by line 38
- Multiple sentences about the same concept are combined through conjunction (and). For example, the sentences:
+ Multiple sentences defining the same concept are combined through conjunction (and). For example, the sentences:
Lines 41-45 were replaced by lines 41-45
- concept organism.
- concept animal.
- concept plant.
- concept animal is_a organism.
- concept animal is_a not plant.
+ concept Organism
+ concept Animal
+ concept Plant
+ concept Animal kind_of Organism
+ concept Animal kind_of not Plant
Line 48 was replaced by line 48
- can be combined into the equivalent sentence:
+ can be combined into the sentence:
Line 51 was replaced by line 51
- concept animal is_a organism and not plant.
+ concept Animal kind_of Organism and not Plant
Line 54 was replaced by line 54
- In other words, an animal is an organism but not a plant.
+ That is, an animal is an organism but not a plant. The terms 'and' and 'not' are sparrow reserved words.
At line 55 added 1 line.
+ Capitalization is not important in sparrow, thus the previous sentence is equivalent to:
At line 56 added 8 lines.
+ {{{
+ CONCEPT animal KIND_OF organism AND NOT plant
+ }}}
+
+ !!! Complex Concept Definitions
+
+
+

Back to Sparrow Language, or to the Page History.