Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "View-builder vocabulary"
(→Attributes) |
(→Classes) |
||
Line 14: | Line 14: | ||
===Frame=== | ===Frame=== | ||
− | + | Metadata about how a complex (possibly multi-valued) attribute from the Persona vocabulary (or one of its imports). It may have a skos:prefLabel to be displayed. Must have at least on field. | |
+ | * 1..N slot | ||
+ | * 0..1 skos:prefLabel | ||
+ | * 1..1 displayOrder | ||
===Group=== | ===Group=== | ||
− | A logical group of | + | A logical group of Slots and/or sub-Groups and/or sub-Objects |
* 1..1 displayOrder | * 1..1 displayOrder | ||
* 0..N field | * 0..N field | ||
− | * 1..1 skos: | + | * 1..1 skos:prefLabel |
* 0..N subgroup | * 0..N subgroup | ||
− | |||
===Slot=== | ===Slot=== | ||
− | Metadata about how an attribute | + | Metadata about how an attribute from the Persona vocabulary (or one of its imports) or from the Flat Persona vocabulary or from the rdf (e.g. rdf:class) should be presented |
* 1..1 attribute | * 1..1 attribute | ||
* 1..1 displayOrder | * 1..1 displayOrder |
Revision as of 23:42, 27 February 2011
{{#eclipseproject:technology.higgins|eclipse_custom_style.css}}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
Metadata about how a complex (possibly multi-valued) attribute from the Persona vocabulary (or one of its imports). It may have a skos:prefLabel to be displayed. Must have at least on field.
- 1..N slot
- 0..1 skos:prefLabel
- 1..1 displayOrder
Group
A logical group of Slots and/or sub-Groups and/or sub-Objects
- 1..1 displayOrder
- 0..N field
- 1..1 skos:prefLabel
- 0..N subgroup
Slot
Metadata about how an attribute from the Persona vocabulary (or one of its imports) or from the Flat Persona vocabulary or from the rdf (e.g. rdf:class) 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: Slot or Frame
- value: rdf:Property
frame
A frame child of a Group
- domain: Group
- value: Frame
slot
A slot child of a Group
- domain: Group
- value: Slot
subgroup
A group 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").