Beispiel #1
0
 def to_functional(self, w: FunctionalWriter) -> FunctionalWriter:
     return w.concat(self.literal, '^^', self.datatype)
Beispiel #2
0
 def to_functional(self, w: FunctionalWriter) -> FunctionalWriter:
     return w.concat(str(self), sep='')
Beispiel #3
0
 def to_functional(self, w: FunctionalWriter) -> FunctionalWriter:
     return w.concat(self.literal, self.language)
Beispiel #4
0
 def to_functional(self, w: FunctionalWriter) -> FunctionalWriter:
     return w.func(self, lambda: w.concat((self.prefixName or '') + ':', '=',
                                          URIRef(str(self.fullIRI)).n3(), sep=' '))