Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lmb-407: predicates instead of json options #249

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion config/form-content/bestuursorgaan/form.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
@prefix mandaat: <http://data.vlaanderen.be/ns/mandaat#>.
@prefix besluit: <http://data.vlaanderen.be/ns/besluit#>.
@prefix lmb: <http://lblod.data.gift/vocabularies/lmb/>.
@prefix fieldOption: <http://lblod.data.gift/vocabularies/form-field-options/> .
@prefix conceptscheme: <http://data.lblod.info/id/conceptscheme/> .

ext:naamF
a form:Field;
Expand All @@ -33,7 +35,8 @@ ext:bestuursorgaanClassificatieCodeF
sh:name "Type";
sh:order 2;
sh:path <http://data.vlaanderen.be/ns/besluit#classificatie>;
form:options """{"conceptScheme":"http://data.lblod.info/id/conceptscheme/LokaalOrgaanClassificatieCode","searchEnabled":true}""".
fieldOption:conceptScheme conceptscheme:LokaalOrgaanClassificatieCode;
fieldOption:searchEnabled true.
ext:deactivatedAtF
a form:Field;
form:displayType displayTypes:archivedInput;
Expand Down
5 changes: 4 additions & 1 deletion config/form-content/mandataris-edit/form.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
@prefix mandaat: <http://data.vlaanderen.be/ns/mandaat#> .
@prefix org: <http://www.w3.org/ns/org#> .
@prefix lmb: <http://lblod.data.gift/vocabularies/lmb/> .
@prefix fieldOption: <http://lblod.data.gift/vocabularies/form-field-options/> .
@prefix conceptscheme: <http://data.lblod.info/id/conceptscheme/> .

ext:mandaatF
a form:Field;
Expand All @@ -32,7 +34,8 @@ ext:mandatarisStatusCodeF
sh:name "Status";
sh:order 300;
sh:path mandaat:status;
form:options """{"conceptScheme":"http://data.vlaanderen.be/id/conceptscheme/MandatarisStatusCode","searchEnabled":true}""";
fieldOption:conceptScheme conceptscheme:MandatarisStatusCode;
fieldOption:searchEnabled true;
form:validatedBy
[
a form:RequiredConstraint;
Expand Down
6 changes: 5 additions & 1 deletion config/form-content/mandataris-ext/form.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
@prefix displayTypes: <http://lblod.data.gift/display-types/> .
@prefix ext: <http://mu.semte.ch/vocabularies/ext/> .
@prefix mandaat: <http://data.vlaanderen.be/ns/mandaat#> .
@prefix fieldOption: <http://lblod.data.gift/vocabularies/form-field-options/> .
@prefix conceptscheme: <http://data.lblod.info/id/conceptscheme/> .

ext:beleidsdomeinCodeF
a form:Field;
Expand All @@ -12,7 +14,9 @@ ext:beleidsdomeinCodeF
sh:name "Beleidsdomein";
sh:order 601;
sh:path mandaat:beleidsdomein;
form:options """{"conceptScheme":"http://data.vlaanderen.be/id/conceptscheme/BeleidsdomeinCode","searchEnabled":true, "type":"beleidsdomein-code"}""".
fieldOption:conceptScheme conceptscheme:BeleidsdomeinCode;
fieldOption:searchEnabled true;
form:options """{"type":"beleidsdomein-code"}""".

<http://data.lblod.info/id/lmb/forms/mandataris-ext>
a form:Extension;
Expand Down
6 changes: 5 additions & 1 deletion config/form-content/mandataris-extra-info/form.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
@prefix ext: <http://mu.semte.ch/vocabularies/ext/> .
@prefix mandaat: <http://data.vlaanderen.be/ns/mandaat#> .
@prefix org: <http://www.w3.org/ns/org#> .
@prefix fieldOption: <http://lblod.data.gift/vocabularies/form-field-options/> .
@prefix conceptscheme: <http://data.lblod.info/id/conceptscheme/> .

ext:beleidsdomeinCodeF
a form:Field;
Expand All @@ -13,7 +15,9 @@ ext:beleidsdomeinCodeF
sh:name "Beleidsdomein";
sh:order 100;
sh:path mandaat:beleidsdomein;
form:options """{"conceptScheme":"http://data.vlaanderen.be/id/conceptscheme/BeleidsdomeinCode","searchEnabled":true, "type":"beleidsdomein-code"}""".
fieldOption:conceptScheme conceptscheme:BeleidsdomeinCode;
fieldOption:searchEnabled true;
form:options """{"type":"beleidsdomein-code"}""".
# Strictly this is not needed, but is used to check whether beleidsdomeinen should render ...
ext:hiddenmandaatF
a form:Field;
Expand Down
5 changes: 4 additions & 1 deletion config/form-content/persoon/form.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
@prefix persoon: <http://data.vlaanderen.be/ns/persoon#>.
@prefix adms: <http://www.w3.org/ns/adms#>.
@prefix skos: <http://www.w3.org/2004/02/skos/core#>.
@prefix fieldOption: <http://lblod.data.gift/vocabularies/form-field-options/> .
@prefix authority: <http://publications.europa.eu/resource/authority/> .

ext:gebruikteVoornaamF
a form:Field;
Expand Down Expand Up @@ -74,7 +76,8 @@ ext:geslachtCodeF
sh:name "Geslacht";
sh:order 7;
sh:path persoon:geslacht;
form:options """{"conceptScheme":"http://publications.europa.eu/resource/authority/human-sex","searchEnabled":false}""".
fieldOption:conceptScheme authority:human-sex;
fieldOption:searchEnabled false.
ext:persoonPG
a form:PropertyGroup; sh:name "Voeg persoon toe"; sh:order 1.

Expand Down
23 changes: 17 additions & 6 deletions config/form-content/test/form.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix ext: <http://mu.semte.ch/vocabularies/ext/>.
@prefix person: <http://www.w3.org/ns/person#>.
@prefix fieldOption: <http://lblod.data.gift/vocabularies/form-field-options/> .
@prefix conceptscheme: <http://data.lblod.info/id/conceptscheme/> .
@prefix authority: <http://publications.europa.eu/resource/authority/> .

ext:testFieldF
a form:Field;
Expand Down Expand Up @@ -56,47 +59,55 @@ ext:testConceptSchemeSelectorF
sh:name "testConceptSchemeSelector";
sh:order 5;
sh:path ext:testConceptSchemeSelector;
form:options """{"conceptScheme":"http://data.vlaanderen.be/id/conceptscheme/MandatarisStatusCode","searchEnabled":true}""".
fieldOption:conceptScheme conceptscheme:MandatarisStatusCode;
fieldOption:searchEnabled true.
ext:testConceptSchemeMultiSelectorF
a form:Field;
form:displayType displayTypes:conceptSchemeMultiSelector;
sh:group ext:testPG;
sh:name "testConceptSchemeMultiSelector";
sh:order 6;
sh:path ext:testConceptSchemeMultiSelector;
form:options """{"conceptScheme":"http://data.vlaanderen.be/id/conceptscheme/BeleidsdomeinCode","searchEnabled":true}""".
fieldOption:conceptScheme conceptscheme:BeleidsdomeinCode;
fieldOption:searchEnabled true.
ext:testConceptSchemeSelector2F
a form:Field;
form:displayType displayTypes:conceptSchemeMultiSelectCheckboxes;
sh:group ext:testPG;
sh:name "testConceptSchemeSelectorCheckboxes";
sh:order 7;
sh:path ext:testConceptSchemeSelector2;
form:options """{"conceptScheme":"http://data.vlaanderen.be/id/conceptscheme/BestuursorgaanClassificatieCode","searchEnabled":true}""".
fieldOption:conceptScheme conceptscheme:BestuursorgaanClassificatieCode;
fieldOption:searchEnabled true.
ext:testConceptSchemeMultiSelector2F
a form:Field;
form:displayType displayTypes:conceptSchemeRadioButtons;
sh:group ext:testPG;
sh:name "testConceptSchemeRadioButtons";
sh:order 8;
sh:path ext:testConceptSchemeMultiSelector2;
form:options """{"conceptScheme":"http://publications.europa.eu/resource/authority/human-sex","searchEnabled":true}""".
fieldOption:conceptScheme authority:human-sex;
fieldOption:searchEnabled true.
ext:testConceptSchemeSelectorWithCreateF
a form:Field;
form:displayType displayTypes:conceptSchemeSelectorWithCreate;
sh:group ext:testPG;
sh:name "testConceptSchemeSelectorWithCreate";
sh:order 9;
sh:path ext:testConceptSchemeSelectorWithCreate;
form:options """{"conceptScheme":"http://data.vlaanderen.be/id/conceptscheme/BeleidsdomeinCode","searchEnabled":true, "type":"beleidsdomein-code"}""".
fieldOption:conceptScheme conceptscheme:BeleidsdomeinCode;
fieldOption:searchEnabled true;
form:options """{"type":"beleidsdomein-code"}""".
ext:testConceptSchemeSelectorWithCreate2F
a form:Field;
form:displayType displayTypes:conceptSchemeMultiSelectorWithCreate;
sh:group ext:testPG;
sh:name "testConceptSchemeMultiSelectorWithCreate";
sh:order 10;
sh:path ext:testConceptSchemeSelectorWithCreate2;
form:options """{"conceptScheme":"http://data.vlaanderen.be/id/conceptscheme/BeleidsdomeinCode","searchEnabled":true, "type":"beleidsdomein-code"}""".
fieldOption:conceptScheme conceptscheme:BeleidsdomeinCode;
fieldOption:searchEnabled true;
form:options """{"type":"beleidsdomein-code"}""".
ext:testPG
a form:PropertyGroup; sh:name "Test"; sh:order 1.

Expand Down