Add ignoredProperties to DataRelease and add condition on relevant exceptions creation
- Hardcoding of special logic for
sphn:DataReleasesuch that the propertiessphn:hasDataProviderInstituteanddct:conformsToare added to thesh:ignoredProperties:
if nameOfClassElement == 'DataRelease':
ignoredPropertyList = [RDF.type, URIRef(str(SPHN) + 'hasDataProviderInstitute'), DCTERMS.conformsTo)]
else:
ignoredPropertyList = [RDF.type]
We assume that the DataRelease concept is defined only for SPHN.
- Add condition when defining relevant exception such that we add the element to the list only if it has not already been added:
if element not in relevantExceptions[element['property']]:
relevantExceptions[element['property']].append(element)