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)
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)
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
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
def add_d_axioms(self): if self.rdfs: RDFS_Semantics.add_d_axioms(self) OWLRL_Semantics.add_d_axioms(self)
def add_d_axioms(self) : if self.rdfs: RDFS_Semantics.add_d_axioms(self) OWLRL_Semantics.add_d_axioms(self)