Skip to content

Pretty_print does not work for non 'namespce'd entities #854

@adhamhashibon

Description

@adhamhashibon

seems like pretty_print expects a that all superclasses of a class belong to a loaded name space. If for example we load the FOAF namespace and ontology, which uses internally geo, geo is not loaded as a name space, the superclass of a Person is a geo:SpatialThing. Using pretty_print on a Person instance fails:

a_person=foaf.Person()
pretty_print(a_person)

fails with AttributeError: 'NoneType' object has no attribute 'name' at end of a longish message.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions