Skip to content

Commit 4173ac6

Browse files
committed
Add the reverse rule also about having kids
1 parent dbc5883 commit 4173ac6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

sozialplattform/materialization.ttl

+18
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,21 @@ ff:NoKidsImpliesNoKidsInAgeRanges a ff:MaterializationRule, ff:SparqlRule ;
9090
?person ff:kinder false .
9191
}
9292
""" .
93+
94+
ff:KidsInAgeRangesMeansHavingKids a ff:MaterializationRule, ff:SparqlRule ;
95+
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 ;
96+
ff:input ff:kinder_unter_18 ;
97+
ff:input ff:kinder_18_25 ;
98+
ff:output ff:kinder ;
99+
ff:sparqlConstructQuery """
100+
PREFIX ff: <https://foerderfunke.org/default#>
101+
CONSTRUCT {
102+
?person ff:kinder true .
103+
} WHERE {
104+
{
105+
?person ff:kinder_unter_18 true .
106+
} UNION {
107+
?person ff:kinder_18_25 true .
108+
}
109+
}
110+
""" .

0 commit comments

Comments
 (0)