From f7f74b5578c21f33cde248ec8d3fb99b70d9c203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Argentina=20Ortega=20S=C3=A1inz?= Date: Thu, 21 Nov 2024 11:08:30 +0100 Subject: [PATCH] Add metamodel for feature models --- variability/feature-model.json | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 variability/feature-model.json diff --git a/variability/feature-model.json b/variability/feature-model.json new file mode 100644 index 0000000..2ea5d37 --- /dev/null +++ b/variability/feature-model.json @@ -0,0 +1,35 @@ +{ + "@context": { + "xsd": "http://www.w3.org/2001/XMLSchema#", + "fm": "https://secorolab.github.io/metamodels/variability/feature-model#", + + "Feature": { "@id": "fm:Feature" }, + "RootFeature": { + "@id": "fm:RootFeature" + }, + "SolitaryFeature": { "@id": "fm:SolitaryFeature" }, + "GroupedFeature": { "@id": "fm:GroupedFeature" }, + "Group": { "@id": "fm:Group" }, + "OrGroup": { "@id": "fm:OrGroup" }, + "XORGroup": { "@id": "fm:XORGroup" }, + + "features": { + "@id": "fm:features" + }, + "group-members": { + "@id": "fm:group-members", + "@container": "@set", + "@type": "@id" + }, + "optional-subfeatures": { + "@id": "fm:optional-subfeatures", + "@container": "@set", + "@type": "@id" + }, + "mandatory-subfeatures": { + "@id": "fm:mandatory-subfeatures", + "@container": "@set", + "@type": "@id" + } + } +}