-
Notifications
You must be signed in to change notification settings - Fork 23
Description
I'm working on a script in Jupyter Notebook using python code that annotates research artifacts and their associated metadata (like License, Version, and URLs) using a CAS JSON structure (UIMA-based annotation system via INCEpTION/WebAnno). This ca be achieved by adding both 'ResearchArtifact' and 'ResearchArtifactMetadata' annotation types. I have successfully added both 'ResearchArtifact' and 'ResearchArtifactMetadata' annotations. The goal is to create a link between them, so that each 'ResearchArtifact' would have its corresponding 'ResearchArtifactMetadata'. To be more precise, there are no links to connect the two as expected.
I suspect I am missing how to associate the 'ResearchArtifactMetadata' with the 'ResearchArtifact' it should belong to. At first, I thought of using 'ResearchArtifactResearchArtifactMetadataLink' annotations to create links between them. This is shown in the code below. Although there is no error produced during this process, the 'target' value is equal to None.
How do I properly attach the ResearchArtifactMetadata annotation to the ResearchArtifact?
Description of the code parameters:
ExcelFile: a Pandas DataFrame from an .XLSX file with columns containing the Research Artifacts, and some metadata for annotations.
CasJson: a loaded CAS object (JSON format) that supports adding annotations.
Any suggestions or example code would be greatly appreciated!
