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

ensure nationality instances are classified as Nationalities #64

Closed azaroth42 closed 5 years ago

azaroth42 commented 5 years ago

Slight refactor to the vocab processing order to allow instances to use the pseudo-classes defined in ext_classes.

Now nationalities come out as:

  "@context": "https://linked.art/ns/v1/linked-art.json", 
  "id": "http://vocab.getty.edu/aat/300107956", 
  "type": "Type", 
  "_label": "American", 
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300379842", 
      "type": "Type", 
      "_label": "Nationality"
    }
  ]
}

As described here: https://linked.art/model/actor/#nationality