示例#1
0
 def _get_vocab_data(self, newCache=True):
     """Just a macro like function to get the data to be cached"""
     from pyRdfa.rdfs.process import return_graph
     (self.graph,
      self.expiration_date) = return_graph(self.uri, self.options, newCache)
     return self.graph != None
示例#2
0
文件: cache.py 项目: daattaa/pyrdfa3
	def _get_vocab_data(self, newCache = True) :
		"""Just a macro like function to get the data to be cached"""		
		from pyRdfa.rdfs.process import return_graph
		(self.graph, self.expiration_date) = return_graph(self.uri, self.options, newCache)
		return self.graph != None