def main(): print("Welcome:") p = OWLParser() mgr = p.parse("examples/mod.rdf") print(mgr) for i in mgr.all_individual(): print("IND: {:s} '{:s}'".format(str(i), i.label(""))) for f in i.facts_out(): print(" FACT: {:s}".format(str(f)))
def main(): print("Welcome:") p = OWLParser() mgr = p.parse("examples/mod.rdf") print(mgr) for i in mgr.all_individual(): print("IND: {:s} '{:s}'".format(str(i), i.label(""))) for f in i.facts_out(): print(" FACT: {:s}".format(str(f)))
def main(): print("Welcome:") p = OWLParser() mgr = p.parse("examples/ceph.owl") mgr.load_prefix_map("examples/curies.yaml") print(mgr) for p in mgr.all_property(): print("{:s} '{:s}' TR: '{:b}'".format(p.id, p.label, p.is_transitive)) for c in mgr.all_cls(): if not c.label: continue if c.definition: print("{:s} '{:s}' DEF: '{:s}'".format(c.id, c.label, c.definition)) else: print("{:s} '{:s}'".format(c.id, c.label)) for s in c.exactSynonyms: print(" AKA: {:s}".format(s)) for s in c.superclasses(): print(" SUPER: {:s} '{:s}'".format(s.id, s.label)) for s in c.svf_superclasses(partOf): print(" PARTOF: {:s} '{:s}'".format(str(s), s.label))
def main(): print("Welcome:") p = OWLParser() mgr = p.parse("examples/ceph.owl") mgr.load_prefix_map("examples/curies.yaml") print(mgr) for p in mgr.all_property(): print("{:s} '{:s}' TR: '{:b}'".format(p.id, p.label, p.is_transitive)) for c in mgr.all_cls(): if not c.label: continue if c.definition: print("{:s} '{:s}' DEF: '{:s}'".format(c.id, c.label, c.definition)) else: print("{:s} '{:s}'".format(c.id, c.label)) for s in c.exactSynonyms: print(" AKA: {:s}".format(s)) for s in c.superclasses(): print(" SUPER: {:s} '{:s}'".format(s.id, s.label)) for s in c.svf_superclasses(partOf): print(" PARTOF: {:s} '{:s}'".format(str(s), s.label))
def setUp(self): p = OWLParser() self.manager = p.parse("examples/mod.rdf") self.manager.load_prefix_map("examples/curies.yaml") self.model = Model(self.manager) return
def setUp(self): p = OWLParser() self.manager = p.parse("examples/ceph.owl") self.manager.load_prefix_map("examples/curies.yaml") logger.info("LOADED") return
def setUp(self): p = OWLParser() self.manager = p.parse("examples/ceph.owl") self.manager.load_prefix_map("examples/curies.yaml") logger.info("LOADED") return