コード例 #1
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
コード例 #2
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