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 "Template vocabulary"
(→Example) |
|||
Line 48: | Line 48: | ||
Here is a sample TemplateContext. It contains all of the metadata necessary to dynamically create the UDI service endpoint shown in this [http://www.azigo.com/udi/udi-resolution.html#anchor3 sample] XRDS discovery document. | Here is a sample TemplateContext. It contains all of the metadata necessary to dynamically create the UDI service endpoint shown in this [http://www.azigo.com/udi/udi-resolution.html#anchor3 sample] XRDS discovery document. | ||
− | + | <http://org.eclipse.higgins.ontology.examples/template-example> | |
+ | rdf:type owl:Ontology , template:TemplateContext ; | ||
+ | app-data:appData :AppData_1 ; | ||
+ | higgins:vocabulary <http://www.eclipse.org/higgins/ontologies/2010/6/persona> ; | ||
+ | template:authNMaterialsType | ||
+ | "urn:udi:authnmaterials:1.0:usernamePassword"^^xsd:string ; | ||
+ | template:contextType | ||
+ | "$context$xdi"^^xsd:string ; | ||
+ | template:udiMetadata | ||
+ | :UDIMetadata_1 ; | ||
+ | owl:imports <http://www.eclipse.org/higgins/ontologies/2010/6/persona> . | ||
+ | |||
+ | :AppData_1 | ||
rdf:type app-data:AppData ; | rdf:type app-data:AppData ; | ||
app-data:appId "1024"^^xsd:string ; | app-data:appId "1024"^^xsd:string ; | ||
Line 57: | Line 69: | ||
app-data:serviceURL "http://kynetx.com/appServer"^^xsd:anyURI ; | app-data:serviceURL "http://kynetx.com/appServer"^^xsd:anyURI ; | ||
app-data:version "2.4"^^xsd:string . | app-data:version "2.4"^^xsd:string . | ||
− | + | ||
− | + | :UDIMetadata_1 | |
rdf:type template:UDIMetadata ; | rdf:type template:UDIMetadata ; | ||
:address "ldap://ldap.company.net:389"^^xsd:string ; | :address "ldap://ldap.company.net:389"^^xsd:string ; | ||
− | :connectionType "LDAP"^^xsd:string . | + | :connectionType "LDAP"^^xsd:string . |
− | + | ||
− | + | :address | |
rdf:type owl:DatatypeProperty ; | rdf:type owl:DatatypeProperty ; | ||
rdfs:domain template:UDIMetadata ; | rdfs:domain template:UDIMetadata ; | ||
rdfs:range xsd:string . | rdfs:range xsd:string . | ||
− | + | ||
− | + | :connectionType | |
rdf:type owl:DatatypeProperty ; | rdf:type owl:DatatypeProperty ; | ||
rdfs:domain template:UDIMetadata ; | rdfs:domain template:UDIMetadata ; | ||
rdfs:range xsd:string . | rdfs:range xsd:string . | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
Or visually: | Or visually: |
Revision as of 23:46, 28 February 2011
{{#eclipseproject:technology.higgins|eclipse_custom_style.css}}Vocabulary to describe a Template Context. Contains information necessary to dynamically instantiate regular contexts. Imported by Persona vocabulary.
Contents
Files
- Most recently published
- SVN source: template.owl
UML Overview
Classes
TemplateContext
A template contains several kinds of "control" information necessary to instantiate and control (e.g. provide access control policies) for regular context instances.
- 0..1
app-data:appData
- provides a "template" for the AppData object within a dynamically created AppDataContext (see App-data vocabulary) - 1..1
authNMaterials
- part of the metadata necessary to dynamically generate an XRDS service endpoint block within an XRDS - 1..1
contextType
- part of the metadata necessary to dynamically generate an XRDS service endpoint block within an XRDS - 1..1
templateRole
- the default role that p:Person nodes should inherit when dynamically created with contexts controlled by on this template - 0..1
udiMetadata
- part of the metadata necessary to dynamically generate an XRDS service endpoint block within an XRDS
UDIMetadata
A set of attribute/values that, taken together, are considered the "Metadata" for the XRDS service endpoint. See http://www.azigo.com/udi/udi-resolution.html#anchor3 for an example.
Attributes
authNMaterialsType
Type of authentication materials required to open this context.
- domain: TemplateContext
- value: string, one of {"urn:udi:authnmaterials:1.0:usernamePassword"}
contextType
The type of context endpoint to instantiate from this template. This corresponds to the value of the <Type> element in XRDS resolution (see http://www.azigo.com/udi/udi-resolution.html).
- domain: TemplateContext
- value: string, one of {"$context$sparql" , "$context$xdi"}
templateRole
The type of context endpoint to instantiate from this template. This corresponds to the value of the <Type> element in XRDS resolution (see http://www.azigo.com/udi/udi-resolution.html).
- domain: TemplateContext
- value: persona:Role
udiMetadata
UDIMetadata instance
Example
Here is a sample TemplateContext. It contains all of the metadata necessary to dynamically create the UDI service endpoint shown in this sample XRDS discovery document.
<http://org.eclipse.higgins.ontology.examples/template-example> rdf:type owl:Ontology , template:TemplateContext ; app-data:appData :AppData_1 ; higgins:vocabulary <http://www.eclipse.org/higgins/ontologies/2010/6/persona> ; template:authNMaterialsType "urn:udi:authnmaterials:1.0:usernamePassword"^^xsd:string ; template:contextType "$context$xdi"^^xsd:string ; template:udiMetadata :UDIMetadata_1 ; owl:imports <http://www.eclipse.org/higgins/ontologies/2010/6/persona> . :AppData_1 rdf:type app-data:AppData ; app-data:appId "1024"^^xsd:string ; app-data:description "A wonderful app"^^xsd:string ; app-data:serviceType "kynetx"^^xsd:string ; app-data:serviceURL "http://kynetx.com/appServer"^^xsd:anyURI ; app-data:version "2.4"^^xsd:string . :UDIMetadata_1 rdf:type template:UDIMetadata ; :address "ldap://ldap.company.net:389"^^xsd:string ; :connectionType "LDAP"^^xsd:string . :address rdf:type owl:DatatypeProperty ; rdfs:domain template:UDIMetadata ; rdfs:range xsd:string . :connectionType rdf:type owl:DatatypeProperty ; rdfs:domain template:UDIMetadata ; rdfs:range xsd:string .
Or visually:
Notes:
- userUpdateable attribute not shown above
- vocabulary attribute not shown above