Skip to content

Adapt Connector to support array of datatype properties

Nicola Stoira requested to merge sphnc-602 into main
  • JSON schema generation updated so that datatype properties without max cardinality are represented as arrays
  • RML generation does not change, the mapping works without [*], e.g.
[ rr:objectMap [ rml:reference "sphn:hasIdentifier" ;
                    rr:datatype xsd:string ] ;
            rr:predicate sphn:hasIdentifier ],
  • database.py adapted to support datatype properties fields. The schema does not change
  • database_extractor.py is adapted to support datatype properties fields. We define an additional field datatype_array to keep track of those properties and to extract the list correctly in the JSON data.
  • Pre-checks are updated to take into account key paths that lead to a list
  • De-Identification is adapted to take into account key paths that lead to a list and key paths (enumerated) that points directly to an element of the datatype property list.

If you can think of other functionalities that might be affected by this new pattern let me know and I'll work on them.

Merge request reports

Loading