Developing use case definitions
fix food allergies/description issue
@@ -100,6 +100,15 @@ const socialUseCases = {
...details.description,
identifier: "foodallergies",
label: "Food Allergies",
+ parseToRDF: function({ value }) {
+ if (!value) {
+ return { "won:foodAllergies": undefined }; // FIXME: won:foodAllergies does not exist
+ }
+ return { "won:foodAllergies": value };
+ },
+ parseFromRDF: function(jsonLDImm) {
+ return jsonLDImm && jsonLDImm.get("won:foodAllergies");
+ },
},
location: { ...details.location },
tags: { ...details.tags },
@@ -275,7 +284,7 @@ export const useCases = {
export const useCaseGroups = {
social: {
identifier: "socialgroup",
- label: "Fun activities",
+ label: "Fun activities to do together",
icon: undefined,
useCases: { ...socialUseCases },
},
