Skip to content

Commit

Permalink
Add no kids materialization rule
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminaaron committed Aug 27, 2024
1 parent 842032c commit dbc5883
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions sozialplattform/materialization.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,18 @@ ff:Year1961 ff:hasPensionAgeYears 66 ; ff:hasPensionAgeMonths 4 ; ff:appliesToBi
ff:Year1962 ff:hasPensionAgeYears 66 ; ff:hasPensionAgeMonths 6 ; ff:appliesToBirthYear 1962 .
ff:Year1963 ff:hasPensionAgeYears 66 ; ff:hasPensionAgeMonths 8 ; ff:appliesToBirthYear 1963 .
ff:Year1964 ff:hasPensionAgeYears 66 ; ff:hasPensionAgeMonths 10 ; ff:appliesToBirthYear 1964 .

ff:NoKidsImpliesNoKidsInAgeRanges a ff:MaterializationRule, ff:SparqlRule ;
rdfs:label "Wenn jemand keine Kinder hat, hat er auch keine Kinder in diesen beiden Altersspannen"@de, "If someone has no children, they also have no children in these two age ranges"@en ;
ff:input ff:kinder ;
ff:output ff:kinder_unter_18 ;
ff:output ff:kinder_18_25 ;
ff:sparqlConstructQuery """
PREFIX ff: <https://foerderfunke.org/default#>
CONSTRUCT {
?person ff:kinder_unter_18 false .
?person ff:kinder_18_25 false .
} WHERE {
?person ff:kinder false .
}
""" .

0 comments on commit dbc5883

Please sign in to comment.