コード例 #1
0
ファイル: CombinedClosure.py プロジェクト: pombredanne/OWL-RL
	def rules(self, t, cycle_num) :
		"""
		@param t: a triple (in the form of a tuple)
		@param cycle_num: which cycle are we in, starting with 1. This value is forwarded to all local rules; it is also used
		locally to collect the bnodes in the graph.
		"""
		OWLRL_Semantics.rules(self, t, cycle_num)
		if self.rdfs: RDFS_Semantics.rules(self, t, cycle_num)
コード例 #2
0
 def rules(self, t, cycle_num):
     """
     @param t: a triple (in the form of a tuple)
     @param cycle_num: which cycle are we in, starting with 1. This value is forwarded to all local rules; it is
     also used locally to collect the bnodes in the graph.
     """
     OWLRL_Semantics.rules(self, t, cycle_num)
     if self.rdfs:
         RDFS_Semantics.rules(self, t, cycle_num)
コード例 #3
0
 def __init__(self, graph, axioms, daxioms, rdfs=True):
     """
     @param graph: the RDF graph to be extended
     @type graph: rdflib.Graph
     @param axioms: whether (non-datatype) axiomatic triples should be added or not
     @type axioms: bool
     @param daxioms: whether datatype axiomatic triples should be added or not
     @type daxioms: bool
     @param rdfs: placeholder flag (used in subclassed only, it is always defaulted to True in this class)
     @type rdfs: boolean
     """
     OWLRL_Semantics.__init__(self, graph, axioms, daxioms, rdfs)
     RDFS_Semantics.__init__(self, graph, axioms, daxioms, rdfs)
     self.rdfs = True
コード例 #4
0
ファイル: CombinedClosure.py プロジェクト: pombredanne/OWL-RL
	def __init__(self, graph, axioms, daxioms, rdfs = True) :
		"""
		@param graph: the RDF graph to be extended
		@type graph: rdflib.Graph
		@param axioms: whether (non-datatype) axiomatic triples should be added or not
		@type axioms: Boolean
		@param daxioms: whether datatype axiomatic triples should be added or not
		@type daxioms: Boolean
		@param rdfs: placeholder flag (used in subclassed only, it is always defaulted to True in this class)
		@type rdfs: boolean
		"""
		OWLRL_Semantics.__init__(self, graph, axioms, daxioms, rdfs)
		RDFS_Semantics.__init__(self, graph, axioms, daxioms, rdfs)
		self.rdfs = True
コード例 #5
0
 def add_d_axioms(self):
     if self.rdfs:
         RDFS_Semantics.add_d_axioms(self)
     OWLRL_Semantics.add_d_axioms(self)
コード例 #6
0
ファイル: CombinedClosure.py プロジェクト: pombredanne/OWL-RL
	def add_d_axioms(self) :
		if self.rdfs: RDFS_Semantics.add_d_axioms(self)
		OWLRL_Semantics.add_d_axioms(self)