thegetty / crom

Python library to make creation of CIDOC CRM easier by mapping classes/predicates to python objects
Apache License 2.0
49 stars 16 forks source link

compact is broken? #37

Closed azaroth42 closed 5 years ago

azaroth42 commented 5 years ago
>>> print model.factory.toString(v)
{"@context":"https://linked.art/ns/v1/linked-art.json","id":"http://lod.example.org/museum/LinguisticObject/1","type":"LinguisticObject","classified_as":[{"id":"http://vocab.getty.edu/aat/300028045","type":"Type","_label":"A/V Content"}]}
>>> print model.factory.toString(v, compact=False)
{
  "id": "http://lod.example.org/museum/LinguisticObject/1", 
  "type": "LinguisticObject"
}
azaroth42 commented 5 years ago

Pretty sure this is fixed in #38

azaroth42 commented 5 years ago

Fixed :)