Adds utils/info.py, a CLI utility for inspecting the ontology.
Usage: info.py --profile [bool] --filter [fclass] ; shows all of the properties for class, optionally filtered by the linked art profile, and optionally filtered by those properties that have a range of fclass
crm-profile.json: Removes Phase and Relationship classes from the profile and their predicates, (but not from the ontology) as we don't currently use them anywhere. Relationship is being moved to AttributeAssignment, and Phase we're trying hard to avoid. Also removes BeginningOfExistence / EndOfExistence properties
Fixes processing of the ontology for inverses and namespaces. Inverses weren't processing namespaces and thus weren't linking up in the processing. The check for something needing crm: as a prefix was far too liberal, and found things with the linked art namespace, so changed to looking for : for both classes and properties.
Then reran process_ontologies and make_jsonld_context to generate new datafiles to power model.py
This PR:
Adds utils/info.py, a CLI utility for inspecting the ontology. Usage: info.py --profile [bool] --filter [fclass] ; shows all of the properties for class, optionally filtered by the linked art profile, and optionally filtered by those properties that have a range of fclass
crm-profile.json: Removes Phase and Relationship classes from the profile and their predicates, (but not from the ontology) as we don't currently use them anywhere. Relationship is being moved to AttributeAssignment, and Phase we're trying hard to avoid. Also removes BeginningOfExistence / EndOfExistence properties
Fixes processing of the ontology for inverses and namespaces. Inverses weren't processing namespaces and thus weren't linking up in the processing. The check for something needing crm: as a prefix was far too liberal, and found things with the linked art namespace, so changed to looking for
:
for both classes and properties.Then reran process_ontologies and make_jsonld_context to generate new datafiles to power model.py