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 "Template vocabulary"

(Attributes)
m (Links)
Line 48: Line 48:
 
* domain: TemplateContext
 
* domain: TemplateContext
 
* value: persona:Role
 
* value: persona:Role
 +
 +
== Example ==
 +
Example of a NYTimes template:
 +
  :TemplateContext_1
 +
      rdf:type template:TemplateContext ;
 +
      template:desired fp:yearOfBirth ;
 +
      template:image "00ffafdcee224432"^^xsd:base64Binary ;
 +
      template:imageType "PNG"^^xsd:string ;
 +
      template:required fp:email , fp:ageRange , fp:familyName , fp:givenName , fp:postalCode .
 +
 +
Graphically:
 +
 +
[[Image:Nytimes-template.png|center]]
  
 
== Links ==
 
== Links ==

Revision as of 22:21, 18 July 2011

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

Vocabulary to describe a Template Context. Contains information necessary to dynamically instantiate regular contexts. Part of the Persona Data Model 2.0.

Files

UML Overview

Templatecontext 2.0.105.png

Classes

TemplateContext

May contain a view-builder:viewRoot attribute; may contain a subclass of person:Person (which in turn may have mapping rules). Superclass of RCardTemplateContext

Attributes

desired

Attribute desired by card issuer. Value is an attribute defined by persona.owl or fp.owl

  • domain: TemplateContext
  • value: rdf:Property

image

  • domain: Card
  • value: xsd:base64

imageType

  • domain: Card
  • one of ("JPG", "GIF", "PNG")

provided

Attribute provided by card issuer. Value is an attribute defined by persona.owl or fp.owl

  • domain: TemplateContext
  • value: rdf:Property

required

Attribute required by card issuer. Value is an attribute defined by persona.owl or fp.owl

  • domain: TemplateContext
  • value: rdf:Property

templateRole

The default role that p:Person nodes should inherit when dynamically created with contexts controlled by on this template

  • domain: TemplateContext
  • value: persona:Role

Example

Example of a NYTimes template:

 :TemplateContext_1
     rdf:type template:TemplateContext ;
     template:desired fp:yearOfBirth ;
     template:image "00ffafdcee224432"^^xsd:base64Binary ;
     template:imageType "PNG"^^xsd:string ;
     template:required fp:email , fp:ageRange , fp:familyName , fp:givenName , fp:postalCode .

Graphically:

Nytimes-template.png

Links

Back to the top