Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "View-builder vocabulary"

(Example)
(UML Overview)
Line 9: Line 9:
 
==UML Overview ==
 
==UML Overview ==
  
[[Image:View 2.0.101.png|center]]
+
[[Image:View 2.0.102.png|center]]
  
 
==Classes==
 
==Classes==

Revision as of 23:29, 27 February 2011

{{#eclipseproject:technology.higgins|eclipse_custom_style.css}}
Higgins logo 76Wx100H.jpg

Vocabulary to describe a "view" of a context. A view is a tree structure of groups of attributes to be displayed/edited.

Files

UML Overview

View 2.0.102.png

Classes

Field

Metadata about how an attribute in the Persona vocabulary should be presented

  • 1..1 attribute
  • 1..1 displayOrder

Group

A logical group of Fields and/or sub-Groups

  • 1..1 displayOrder
  • 0..N field
  • 1..1 skos:prefLable
  • 0..N subgroup

Attributes

attribute

The attribute that should be displayed in this field. The attribute may be in the Flat Persona vocabulary or in the Persona vocabulary (or one of its imported sub-vocabularies).

  • domain: Field
  • value: rdf:Property

field

A field of a Group

  • domain: Group
  • value: Field

subgroup

A child of a Group

  • domain: Group
  • value: Group

displayOrder

A number that indicates the relative position with respect to the displayOrder of sibling objects with this same attribute. Lower numbers indicate precedence.

  • domain: Field or Group
  • value: xsd:Integer

Example

Here is an example of a view:

:AgeRange
     rdf:type view:Field ;
     view:attribute <http://www.eclipse.org/higgins/ontologies/2010/6/fp#ageRange> ;
     view:displayOrder "1"^^xsd:string .

:DemographicsGroup
     rdf:type view:Group ;
     view:displayOrder "1"^^xsd:string ;
     view:field :Gender , :AgeRange , :PostalCode ;
     skos:prefLabel "DemographicsGroup"^^xsd:string .

:Gender
     rdf:type view:Field ;
     view:attribute <http://www.eclipse.org/higgins/ontologies/2010/6/fp#gender> ;
     view:displayOrder "2"^^xsd:string .

:Interest
     rdf:type view:Field ;
     view:attribute <http://www.eclipse.org/higgins/ontologies/2010/6/online-behavior#interest> ;
     view:displayOrder 1 .

:InterestsGroup
     rdf:type view:Group ;
     view:displayOrder "2"^^xsd:string ;
     view:field :Interest ;
     skos:prefLabel "InterestsGroup"^^xsd:string .

:PostalCode
     rdf:type view:Field ;
     view:attribute <http://www.eclipse.org/higgins/ontologies/2010/6/fp#postalCode> ;
     view:displayOrder 10 .

:ViewRoot
     rdf:type view:Group ;
     view:subgroup :DemographicsGroup , :InterestsGroup ;
     skos:prefLabel "Root"^^xsd:string .

Or visually:

View-example 2.0.101.png

The demographics group shown above has fields whose attributes, fp:gender, fp:ageRange, fp:postalCode, are all from the Flat Persona vocabulary. The interests group shown above has a single (multivalued) attribute from the Online-behavior_vocabulary imported by the Persona vocabulary.

Back to the top