OCL Top-Level Declarations
A navigation specification is composed of a list of statements. It ends with a semicolon.
| Statement | Description |
|---|---|
| Description |
Declares a description text displayed at the top of the preview. Syntax: description [ html ] STRING ; Example 1: simple text description description 'Semantic Browser Exemple'; Example 2: rich text description, using HTML description html "Semantic <b>Browser</b> <i>Exemple</i>"; |
| Namespace |
Declares a namespace prefix for a URL. These prefixes can be used to form OCL property names. Syntax: namespace PREFIX_NAME = URL ; Example: namespace dc = http://purl.org/dc/terms/; |
| Navigation |
Declares a navigation expression. It can optionally declare:
Syntax: navigation NAME { condition EXPRESSION | predicate URL} : EXPRESSION ;
Example 1: navigation children
self->collect(e|e.syc:treeChild);
Example 2: navigation children
condition self.rdf:type='http://www.3ds.com/vocabularies/syc/type/Enovia.Requirement%20Specification'
predicate syc:semantic/child
self->collect(e|e.syc:treeChild);
|