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.
Difference between revisions of "View-builder vocabulary"
(→Attributes) |
(→Example) |
||
Line 63: | Line 63: | ||
<http://higgins.eclipse.org/pds/anonymous-web-profile-template> | <http://higgins.eclipse.org/pds/anonymous-web-profile-template> | ||
− | rdf:type higgins:Context | + | rdf:type owl:Ontology , higgins:Context ; |
− | + | ||
view:viewRoot :ViewRoot ; | view:viewRoot :ViewRoot ; | ||
owl:imports <http://www.eclipse.org/higgins/ontology/2011/2/view> ; | owl:imports <http://www.eclipse.org/higgins/ontology/2011/2/view> ; | ||
− | owl:versionInfo "2.0. | + | owl:versionInfo "2.0.101"^^xsd:string . |
:AgeRange | :AgeRange | ||
Line 76: | Line 75: | ||
:DemographicsGroup | :DemographicsGroup | ||
rdf:type view:Group ; | rdf:type view:Group ; | ||
+ | view:child :PostalCode , :AgeRange , :Gender ; | ||
view:displayOrder "1"^^xsd:string ; | view:displayOrder "1"^^xsd:string ; | ||
− | |||
skos:prefLabel "DemographicsGroup"^^xsd:string . | skos:prefLabel "DemographicsGroup"^^xsd:string . | ||
Line 83: | Line 82: | ||
rdf:type view:Slot ; | rdf:type view:Slot ; | ||
view:attribute <http://www.eclipse.org/higgins/ontologies/2010/6/fp#gender> ; | view:attribute <http://www.eclipse.org/higgins/ontologies/2010/6/fp#gender> ; | ||
− | view:displayOrder "2"^^xsd:string . | + | view:displayOrder "2"^^xsd:string . |
:Interest | :Interest | ||
Line 94: | Line 93: | ||
rdfs:comment "Presentation of an online-behavior:InterestTopic instance"^^xsd:string ; | 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:attribute <http://www.eclipse.org/higgins/ontologies/2010/6/online-behavior#interest> ; | ||
− | view: | + | view:child :Interest . |
:InterestsGroup | :InterestsGroup | ||
rdf:type view:Group ; | rdf:type view:Group ; | ||
+ | view:child :InterestFrame ; | ||
view:displayOrder "2"^^xsd:string ; | view:displayOrder "2"^^xsd:string ; | ||
− | |||
skos:prefLabel "InterestsGroup"^^xsd:string . | skos:prefLabel "InterestsGroup"^^xsd:string . | ||
Line 109: | Line 108: | ||
:ViewRoot | :ViewRoot | ||
rdf:type view:Group ; | rdf:type view:Group ; | ||
− | view: | + | view:child :InterestsGroup , :DemographicsGroup ; |
skos:prefLabel "Root"^^xsd:string . | skos:prefLabel "Root"^^xsd:string . | ||
Revision as of 12:33, 1 March 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 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 one child.
- subClassOf: ViewNode
- 1..N slot
- 0..1 skos:prefLabel
Group
A logical group of Slots and/or sub-Groups and/or sub-Objects
- subClassOf: ViewNode
- 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
- subClassOf: ViewNode
- 1..1 attribute
ViewNode
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
child
A frame child of a Group
- domain: Group or Frame
- value: ViewNode
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
viewRoot
Link to the root of the tree of Groups, Frames and Slots (aka ViewNodes)
- domain: h:Context
- range: Group
Example
Here is an example of a view:
<http://higgins.eclipse.org/pds/anonymous-web-profile-template> rdf:type owl:Ontology , higgins:Context ; view:viewRoot :ViewRoot ; owl:imports <http://www.eclipse.org/higgins/ontology/2011/2/view> ; owl:versionInfo "2.0.101"^^xsd:string . :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:child :PostalCode , :AgeRange , :Gender ; view:displayOrder "1"^^xsd:string ; 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:child :Interest . :InterestsGroup rdf:type view:Group ; view:child :InterestFrame ; view:displayOrder "2"^^xsd:string ; 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:child :InterestsGroup , :DemographicsGroup ; skos:prefLabel "Root"^^xsd:string .
Here is a visual representation:
The demographics group shown above has slots whose attributes, fp:gender, fp:ageRange, fp:postalCode, are all from the Flat Persona vocabulary.
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.