示例#1
0
 def _create_literal(self, p, s, dt=None):
     return create_literal(self.g, self.res, p, s, dt)
 def create_keyword(self, g, res, string):
     return create_literal(g, res, self.keyword, string)
 def create_byte_size(self, g, res, string):
     return create_literal(g, res, self.byte_size, string, XSD.decimal)
 def create_title(self, g, res, string):
     return create_literal(g, res, self.title, string)
 def create_description(self, g, res, string):
     return create_literal(g, res, self.description, string)
 def create_publication_date(self, g, res, string):
     return create_literal(g, res, self.issued, string, XSD.dateTime)
 def update_modification_date(self, g, res, string):
     g.remove((res, self.modified, None))
     return create_literal(g, res, self.modified, string, XSD.dateTime)
示例#8
0
 def _create_literal(self, p, s, dt=None):
     return create_literal(self.g, self.res, p, s, dt)
 def create_label(self, g, res, string):
     return create_literal(g, res, RDFS.label, string)
示例#10
0
 def create_publication_date(self, g, res, string):
     return create_literal(g, res, self.issued, string, XSD.dateTime)
示例#11
0
 def update_modification_date(self, g, res, string):
     g.remove((res, self.modified, None))
     return create_literal(g, res, self.modified, string, XSD.dateTime)
示例#12
0
 def create_label(self, g, res, string):
     return create_literal(g, res, RDFS.label, string)
示例#13
0
 def create_byte_size(self, g, res, string):
     return create_literal(g, res, self.byte_size, string, XSD.decimal)
示例#14
0
 def create_keyword(self, g, res, string):
     return create_literal(g, res, self.keyword, string)
示例#15
0
 def create_description(self, g, res, string):
     return create_literal(g, res, self.description, string)
示例#16
0
 def create_title(self, g, res, string):
     return create_literal(g, res, self.title, string)