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.
View-builder vocabulary
Vocabulary to describe a "view" of a context. A view is a tree structure of groups of attributes to be displayed/edited.
Contents
Files
UML Overview
Classes
Frame
Group
A logical group of Fields and/or sub-Groups
- 1..1 displayOrder
- 0..N field
- 1..1 skos:prefLable
- 0..N subgroup
Slot
Metadata about how an attribute in the Persona vocabulary should be presented
- 1..1 attribute
- 1..1 displayOrder
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:Slot ; 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:slot :Gender , :AgeRange , :PostalCode ; skos:prefLabel "DemographicsGroup"^^xsd:string . :Gender rdf:type view:Slot ; view:attribute <http://www.eclipse.org/higgins/ontologies/2010/6/fp#gender> ; view:displayOrder "2"^^xsd:string . :Interest rdf:type view:Slot ; view:attribute rdf:type ; view:displayOrder 1 . :InterestFrame rdf:type view:Frame ; rdfs:comment "Presentation of an online-behavior:InterestTopic instance"^^xsd:string ; view:attribute <http://www.eclipse.org/higgins/ontologies/2010/6/online-behavior#interest> ; view:slot :Interest . :InterestsGroup rdf:type view:Group ; view:displayOrder "2"^^xsd:string ; view:frame :InterestFrame ; skos:prefLabel "InterestsGroup"^^xsd:string . :PostalCode rdf:type view:Slot ; 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 .
Here is a visual representation of the demographics group:
The demographics group shown above has slots whose attributes, fp:gender, fp:ageRange, fp:postalCode, are all from the Flat Persona vocabulary.
Here is a visual representation of the interests group:
The interests group shown above has a frame whose attribute is the complex valued attribute, online-behavior:interest. The frame in turn has a slot whose attribute is rdf:class. In other words the presentation logic should render the name of class of the instance (e.g. "Humor > Satire" or "World Destinations > Africa > East Africa > Nigeria").