| |
---|
| | restriction = BNode() |
---|
| | g.add((childNode, OWL.equivalentClass, restriction)) |
---|
| | g.add((restriction, RDF.type, OWL.Restriction)) |
---|
| | g.add((restriction, OWL.onProperty, URIRef(args.property))) |
---|
| | g.add((restriction, OWL.hasValue, URIRef(urljoin(args.codes, childam)))) |
---|
| | g.add((restriction, OWL.hasValue, URIRef(urljoin(args.codes, child)))) |
---|
| | defined.add(childNode) |
---|
| | c = Collection(g, childrenNode, childNodes) |
---|
| | |
---|
| | print(g.serialize(format='turtle').decode('utf-8')) |
---|
| | |
|