Skip to content

Commit

Permalink
Add the reverse rule also about having kids
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminaaron committed Aug 27, 2024
1 parent dbc5883 commit 4173ac6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions sozialplattform/materialization.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,21 @@ ff:NoKidsImpliesNoKidsInAgeRanges a ff:MaterializationRule, ff:SparqlRule ;
?person ff:kinder false .
}
""" .

ff:KidsInAgeRangesMeansHavingKids a ff:MaterializationRule, ff:SparqlRule ;
rdfs:label "Wenn jemand Kinder in Altersspannen hat, hat die Person Kinder"@de, "If someone has children in age ranges, the person has children"@en ;
ff:input ff:kinder_unter_18 ;
ff:input ff:kinder_18_25 ;
ff:output ff:kinder ;
ff:sparqlConstructQuery """
PREFIX ff: <https://foerderfunke.org/default#>
CONSTRUCT {
?person ff:kinder true .
} WHERE {
{
?person ff:kinder_unter_18 true .
} UNION {
?person ff:kinder_18_25 true .
}
}
""" .

0 comments on commit 4173ac6

Please sign in to comment.