Skip to content

Commit

Permalink
[New] UFO based question rendering examples
Browse files Browse the repository at this point in the history
  • Loading branch information
blcham committed Jul 28, 2021
1 parent c18a8d5 commit 2811803
Showing 1 changed file with 169 additions and 1 deletion.
170 changes: 169 additions & 1 deletion test/rendering/form1.json
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,173 @@
"@id" : "layout-options-65"
}
},
{
"@type" : "doc:question",
"has_related_question" : [
"intrinsic-aspects"
],
"description" : {
"@value" : "This section demonstrates different form components that can be used to collect data from patterns within Unified Foundation Ontology (UFO) models.",
"@language" : "en"
},
"@id" : "ufo-based-patterns",
"has-layout-class" : [
"section",
"wizard-step"
],
"label" : {
"@value" : "UFO-based patterns",
"@language" : "en"
},
"form:has-preceding-question" : {
"@id" : "layout-options-65"
}
},
{
"@type" : "doc:question",
"has_related_question" : [
"simple-intrinsic-aspects"
],
"description" : {
"@value" : "This section demonstrates different form components that can be used to collect data about UFO intrinsic aspects.",
"@language" : "en"
},
"@id" : "intrinsic-aspects",
"has-layout-class" : [
"section"
],
"label" : {
"@value" : "Intrinsic aspects",
"@language" : "en"
},
"label" : {
"@value" : "Vlastnosti",
"@language" : "cs"
}
},
{
"@type" : "doc:question",
"has_related_question" : [
"simple-intrinsic-aspects-boolean"
],
"description" : {
"@value" : "This section demonstrates different form components that can be used to collect data about UFO intrinsic aspects, i.e. those that require only one question to answer.",
"@language" : "en"
},
"@id" : "simple-intrinsic-aspects",
"has-layout-class" : [
"section"
],
"label" : {
"@value" : "Simple aspects",
"@language" : "en"
},
"label" : {
"@value" : "Jednoduché vlastnosti",
"@language" : "cs"
}
},
{
"@type" : "doc:question",
"has_related_question" : [
"smoking-allowed-variant-1",
"smoking-allowed-variant-2"
],
"@id" : "simple-intrinsic-aspects-boolean",
"has-layout-class" : [
"section"
],
"label" : {
"@value" : "With boolean answer",
"@language" : "en"
},
"label" : {
"@value" : "Booleovská odpověď",
"@language" : "en"
}
},
{
"@type" : "doc:question",
"has_related_question" : [
],
"@id" : "smoking-allowed-variant-1",
"description" : {
"@value" : "Is smoking allowed?",
"@language" : "en"
},
"has-layout-class" : [
"checkbox"
],
"label" : {
"@value" : "Smoking allowed",
"@language" : "en"
},
"label" : {
"@value" : "Kouření povoleno",
"@language" : "cs"
}
},
{
"@type" : "doc:question",
"has_related_question" : [
],
"@id" : "smoking-allowed-variant-2",
"description" : {
"@value" : "Is smoking allowed?",
"@language" : "en"
},
"label" : {
"@value" : "Kouření povoleno",
"@language" : "cs"
},
"has-layout-class" : [
"type-ahead"
],
"has-possible-value" : [
{
"@id" : "ex:yes"
},
{
"@id" : "ex:no"
},
{
"@id" : "ex:dont-know"
}
]
},
{
"label" : {
"@language" : "en",
"@value" : "Yes"
},
"label" : {
"@language" : "cs",
"@value" : "Ano"
},
"@id" : "ex:yes"
},
{
"label" : {
"@language" : "en",
"@value" : "No"
},
"label" : {
"@language" : "cs",
"@value" : "Ne"
},
"@id" : "ex:no"
},
{
"label" : {
"@language" : "en",
"@value" : "Don't know"
},
"label" : {
"@language" : "cs",
"@value" : "Nevím"
},
"@id" : "ex:dont-know"
},
{
"has_related_question" : [
"http://vfn.cz/ontologies/fss-form/diagnosis-q",
Expand All @@ -784,7 +951,7 @@
"@language" : "en"
},
"form:has-preceding-question" : {
"@id" : "conditional-logic-6448"
"@id" : "ufo-based-patterns"
}
},
{
Expand Down Expand Up @@ -2093,6 +2260,7 @@
"has_related_question" : [
"layout-options-65",
"conditional-logic-6448",
"ufo-based-patterns",
"domain-specific-9087",
"http://vfn.cz/ontologies/fss-form/new-q",
"category-1-wizard-question-65",
Expand Down

0 comments on commit 2811803

Please sign in to comment.