@@ -290,8 +290,8 @@ def google_dataset_metadata(metadata: Dict[str, Any]) -> Dict[str, Any]:
290290 # If no schemaKey exists, create one
291291 result ["schemaKey" ] = ["schema:Dataset" ]
292292
293- # Create creator field from contributor if it doesn't exist
294- if "creator" not in result and "contributor" in result :
293+ # Create schema: creator field from contributor if it doesn't exist
294+ if "schema: creator" not in result and "contributor" in result :
295295 # Filter contributors with Author role
296296 authors = [
297297 contrib for contrib in result ["contributor" ]
@@ -302,7 +302,7 @@ def google_dataset_metadata(metadata: Dict[str, Any]) -> Dict[str, Any]:
302302 creators = authors if authors else result ["contributor" ]
303303
304304 # Format creators according to schema.org requirements
305- result ["creator" ] = []
305+ result ["schema: creator" ] = []
306306 for person in creators :
307307 # Create a new creator object with updated schemaKey
308308 creator = {
@@ -314,7 +314,7 @@ def google_dataset_metadata(metadata: Dict[str, Any]) -> Dict[str, Any]:
314314 if person .get ("identifier" ):
315315 creator ["identifier" ] = person ["identifier" ]
316316
317- result ["creator" ].append (creator )
317+ result ["schema: creator" ].append (creator )
318318
319319 # Update contributor schemaKey and remove roleName
320320 if "contributor" in result :
0 commit comments