Skip to content

Commit 9554595

Browse files
committed
add blindenhilfe
1 parent 025f452 commit 9554595

File tree

2 files changed

+113
-0
lines changed

2 files changed

+113
-0
lines changed

datafields/personal.ttl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,23 @@ ff:habitualResidence-ger a ff:AnswerOption ; rdfs:label "Deutschland"@de , "Germ
113113
ff:habitualResidence-eu a ff:AnswerOption ; rdfs:label "EU"@de , "EU"@en .
114114
ff:habitualResidence-3rd a ff:AnswerOption ; rdfs:label "Drittstaat (Nicht-EU)"@de , "Third country (non-EU)"@en .
115115

116+
ff:longTermStay a ff:DataField ;
117+
schema:category ff:persoenliche-angaben-df-kategorie ;
118+
rdfs:label "Langjähriger Aufenthalt in Deutschland"@de , "Long-term stay in Germany"@en ;
119+
schema:question "Leben Sie seit mindestens fünf Jahren ununterbrochen rechtmäßig in Deutschland?"@de ,
120+
"Have you been living lawfully and continuously in Germany for at least five years?"@en ;
121+
rdfs:comment "Dieses Feld erfasst, ob ein Anspruch nach § 23 Abs. 3 Satz 7 SGB XII bestehen kann (Sozialhilfe für Personen ohne regulären Aufenthaltstitel, aber mit langjährigem Aufenthalt)."@de ,
122+
"This field checks whether § 23(3) sentence 7 SGB XII may apply (social assistance eligibility after a long-term lawful stay without a regular residence permit)."@en ;
123+
ff:hasShaclShape [
124+
a sh:NodeShape ;
125+
sh:targetSubjectsOf ff:longTermStay ;
126+
sh:property [
127+
sh:path ff:longTermStay ;
128+
sh:datatype xsd:boolean ;
129+
sh:maxCount 1 ;
130+
] ;
131+
] .
132+
116133
ff:hasResidence a ff:DataField ;
117134
rdfs:label "Wohnort"@de , "Place of Residence"@en ;
118135
schema:question "In welcher Stadt oder Gemeinde wohnen Sie?"@de , "In which city or municipality do you live?"@en ;

shacl/beta/blindenhilfe.ttl

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
@prefix sh: <http://www.w3.org/ns/shacl#> .
2+
@prefix ff: <https://foerderfunke.org/default#> .
3+
@prefix shn: <https://schemas.link/shacl-next#> .
4+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
5+
6+
ff:blindenhilfe a ff:RequirementProfile ;
7+
ff:title "Blindenhilfe"@de , "Blindness Benefit"@en ;
8+
ff:category ff:gesundheit-pflege-bc-kategorie ;
9+
ff:validationStage ff:preliminary-validation ;
10+
ff:legalBasis ff:sgb-ix ;
11+
ff:administrativeLevel ff:bund ;
12+
ff:providingAgency ff:sozialamt ;
13+
ff:tag ff:bielefunke ;
14+
ff:benefitInfo "Die Blindenhilfe ist eine einkommensabhängige Sozialhilfeleistung, die blinden Menschen zur Deckung der durch die Blindheit entstehenden Mehraufwendungen gewährt wird."@de ,
15+
"The blindness benefit is an income-dependent social assistance benefit granted to blind people to cover the additional expenses incurred due to blindness."@en ;
16+
ff:moreInfoAt <https://raw.githubusercontent.com/Citizen-Knowledge-Graph/foerderfunke-react-app/refs/heads/main/public/assets/data/requirement-profiles/requirement-profiles-hydration.json> ;
17+
ff:hasMainShape ff:blindenhilfeMainShape ;
18+
ff:hasFlowShape ff:blindenhilfeFlowShape .
19+
20+
# ----- EVALUATION LOGIC -----
21+
22+
ff:blindenhilfeMainShape a sh:NodeShape ;
23+
sh:targetClass ff:Citizen ;
24+
sh:property [ sh:path ff:habitualResidence ; sh:minCount 1 ; sh:in (ff:habitualResidence-ger) ] ;
25+
sh:property [
26+
sh:or (
27+
sh:property [ sh:path ff:citizenship ; sh:in (ff:citizenship-ger) ]
28+
sh:property [
29+
sh:path ff:residencyStatus ; sh:in (
30+
ff:residencyStatus-residencePermit
31+
ff:residencyStatus-settlementPermit
32+
ff:residencyStatus-ger
33+
)
34+
]
35+
sh:property [ sh:path ff:longTermStay ; sh:in (true) ]
36+
)
37+
] ;
38+
sh:property [ sh:path ff:disability ; sh:in (true) ] ;
39+
sh:property [ sh:path ff:visualImpairment; sh:in (true) ] ;
40+
sh:property [ sh:path ff:visualImpairmentDegree; sh:in (
41+
ff:visualImpairmentDegree-fullyBlind
42+
ff:visualImpairmentDegree-below02
43+
ff:visualImpairmentDegree-below02Equivalent
44+
) ] .
45+
46+
# ----- DECISION TREE LOGIC -----
47+
48+
ff:blindenhilfeFlowShape a sh:NodeShape ;
49+
sh:targetClass ff:Citizen ;
50+
sh:property ff:baseRequirements ;
51+
sh:property ff:longTermStayPS ;
52+
sh:property ff:visualImpairmentPS ;
53+
sh:property ff:visualImpairmentDegreePS .
54+
55+
ff:baseRequirements a sh:PropertyShape ;
56+
sh:property [ sh:path ff:habitualResidence ; sh:minCount 1 ] ;
57+
sh:property [ sh:path ff:citizenship ; sh:minCount 1 ] ;
58+
sh:property [ sh:path ff:disability ; sh:minCount 1 ] .
59+
60+
ff:residencyStatusPS a sh:PropertyShape ;
61+
sh:deactivated [
62+
sh:not [
63+
sh:not [
64+
shn:eq ( [ sh:path ff:citizenship ] ff:citizenship-ger )
65+
]
66+
]
67+
] ;
68+
sh:property [ sh:path ff:residencyStatus ; sh:minCount 1 ] .
69+
70+
ff:longTermStayPS a sh:PropertyShape ;
71+
sh:deactivated [
72+
sh:not [
73+
sh:or (
74+
[ sh:property [ sh:path ff:residencyStatus ; sh:in (ff:residencyStatus-residencePermit) ] ]
75+
[ sh:property [ sh:path ff:residencyStatus ; sh:in (ff:residencyStatus-settlementPermit) ] ]
76+
[ sh:property [ sh:path ff:residencyStatus ; sh:in (ff:residencyStatus-ger) ] ]
77+
)
78+
]
79+
] ;
80+
sh:property [ sh:path ff:longTermStay ; sh:minCount 1 ] .
81+
82+
ff:visualImpairmentPS a sh:PropertyShape ;
83+
sh:deactivated [
84+
sh:not [
85+
shn:eq ( [ sh:path ff:disability ] true )
86+
]
87+
] ;
88+
sh:property [ sh:path ff:visualImpairment ; sh:minCount 1 ] .
89+
90+
ff:visualImpairmentDegreePS a sh:PropertyShape ;
91+
sh:deactivated [
92+
sh:not [
93+
shn:eq ( [ sh:path ff:visualImpairment ] true )
94+
]
95+
] ;
96+
sh:property [ sh:path ff:visualImpairmentDegree ; sh:minCount 1 ] .

0 commit comments

Comments
 (0)