@@ -259,16 +259,31 @@ function process_file($infile) {
259259 );
260260
261261 ##########################################################################################
262- #info
262+ #identifiers
263263 ##########################################################################################
264264 parent ::addRDF (
265- parent ::triplifyString ($ study_id , parent ::getVoc ()."nct-id " , $ this ->getString ('//id_info/nct_id ' )).
266- parent ::triplifyString ($ study_id , parent ::getVoc ()."org-study-id " , $ this ->getString ('//id_info/org_study_id ' )).
267- parent ::triplifyString ($ study_id , parent ::getVoc ()."secondary-id " , $ this ->getString ('//id_info/secondary_id ' )). // this can be a list
268- parent ::triplifyString ($ study_id , parent ::getVoc ()."nct-alias " , $ this ->getString ('//id_info/nct_alias ' )) // this can be a list
265+ parent ::triplifyString ($ study_id , parent ::getVoc ()."nct-id " , $ this ->getString ('//id_info/nct_id ' ), "xsd:string " ).
266+ parent ::triplifyString ($ study_id , parent ::getVoc ()."org-study-id " , $ this ->getString ('//id_info/org_study_id ' ), "xsd:string " )
269267 );
270268
271269
270+ $ sids = $ root ->xpath ('//id_info/secondary_id ' );
271+ if (isset ($ sids )) {
272+ foreach ($ sids AS $ id ) {
273+ parent ::addRDF (
274+ parent ::triplifyString ($ study_id , parent ::getVoc ()."secondary-id " , (string )$ id , "xsd:string " )
275+ );
276+ }
277+ }
278+ $ nctaliases = $ root ->xpath ('//id_info/nct-alias ' );
279+ if (isset ($ nctaliases )) {
280+ foreach ($ nctaliases AS $ id ) {
281+ parent ::addRDF (
282+ parent ::triplifyString ($ study_id , parent ::getVoc ()."nct-alias " , (string )$ id , "xsd:string " )
283+ );
284+ }
285+ }
286+
272287 ##########################################################################################
273288 #titles
274289 ##########################################################################################
0 commit comments