Exemple #1
0
 def to_functional(self, w: FunctionalWriter) -> FunctionalWriter:
     self.list_cardinality(self.classExpressions, 'exprs', 2)
     return w.func(self, lambda: w.iter(self.classExpressions))
Exemple #2
0
 def to_functional(self, w: FunctionalWriter) -> FunctionalWriter:
     return w.func(self, lambda: w + self.v)
Exemple #3
0
 def to_functional(self, w: FunctionalWriter) -> FunctionalWriter:
     return w.func(self, lambda:
                   (w + self.dataPropertyExpression + self.literal))
Exemple #4
0
 def to_functional(self, w: FunctionalWriter) -> FunctionalWriter:
     return w.func(
         self, lambda:
         (w + self.card + self.dataPropertyExpression).opt(self.dataRange))
Exemple #5
0
 def to_functional(self, w: FunctionalWriter) -> FunctionalWriter:
     return w.func(
         self,
         lambda: w.iter(self.dataPropertyExpressions) + self.dataRange)
Exemple #6
0
 def to_functional(self, w: FunctionalWriter) -> FunctionalWriter:
     return w.func(
         self, lambda: (w + self.card + self.objectPropertyExpression).opt(
             self.classExpression))
Exemple #7
0
 def to_functional(self, w: FunctionalWriter) -> FunctionalWriter:
     return w.func(self, lambda: w + self.objectPropertyExpression)
Exemple #8
0
 def to_functional(self, w: FunctionalWriter) -> FunctionalWriter:
     return w.func(self, lambda: w.iter(self.individuals))
Exemple #9
0
 def to_functional(self, w: FunctionalWriter) -> FunctionalWriter:
     return w.func(self, lambda: w + self.classExpression)