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

update ontology, profile for P182 #63

Closed azaroth42 closed 5 years ago

azaroth42 commented 5 years ago
>>> from cromulent import model
>>> a = model.Activity()
>>> b = model.Activity()
>>> a.ends_before_the_start_of = b
>>> print model.factory.toString(a, compact=False)
{
  "@context": "https://linked.art/ns/v1/linked-art.json", 
  "id": "http://lod.example.org/museum/Activity/0", 
  "type": "Activity", 
  "ends_before_the_start_of": [
    {
      "id": "http://lod.example.org/museum/Activity/1", 
      "type": "Activity"
    }
  ]
}