Example #1
0
 def to_functional(self, w: FunctionalWriter) -> FunctionalWriter:
     return w.concat(self.literal, '^^', self.datatype)
Example #2
0
 def to_functional(self, w: FunctionalWriter) -> FunctionalWriter:
     return w.concat(str(self), sep='')
Example #3
0
 def to_functional(self, w: FunctionalWriter) -> FunctionalWriter:
     return w.concat(self.literal, self.language)
Example #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=' '))