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"
(→Example) |
(→Example) |
||
Line 116: | Line 116: | ||
Here is a visual representation of the demographics sub-group: | Here is a visual representation of the demographics sub-group: | ||
− | [[Image: | + | [[Image:Awp-template.png|center]] |
The demographics group shown above has slots whose attributes, fp:gender, fp:ageRange, fp:postalCode, are all from the [[Flat Persona vocabulary]]. | 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: | 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 this rather special case the presentation logic should render the name of class of the instance (e.g. "Humor > Satire" or "World Destinations > Africa > East Africa > Nigeria") as opposed to rendering the value of an attribute of the instance as is done in the usual case. | 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 this rather special case the presentation logic should render the name of class of the instance (e.g. "Humor > Satire" or "World Destinations > Africa > East Africa > Nigeria") as opposed to rendering the value of an attribute of the instance as is done in the usual case. |
Revision as of 23:52, 28 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
displayOrder
A number that indicates the relative position with respect to the displayOrder of sibling objects with this same attribute. Lower numbers indicate precedence. The displayOrder values of all child nodes of a given node in the tree should be considered together irrespective of the class of the child (i.e. Slot, Group or Frame).
- domain: Slot, Frame or Group
- value: xsd:Integer
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
viewRoot
Link to the root of the tree of Groups, Frames and Slots
- domain: h:Context
- range: Group
Example
Here is an example of a view:
<http://org.eclipse.higgins.ontology.examples/view-example> rdf:type higgins:Context ; view:viewRoot :ViewRoot ; owl:imports <http://www.eclipse.org/higgins/ontology/2011/2/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 sub-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 this rather special case the presentation logic should render the name of class of the instance (e.g. "Humor > Satire" or "World Destinations > Africa > East Africa > Nigeria") as opposed to rendering the value of an attribute of the instance as is done in the usual case.