{"id":3002,"date":"2017-06-23T21:13:48","date_gmt":"2017-06-23T21:13:48","guid":{"rendered":"https:\/\/notebooks.dataone.org\/?p=3002"},"modified":"2017-06-23T21:13:48","modified_gmt":"2017-06-23T21:13:48","slug":"week-3-project-1","status":"publish","type":"post","link":"https:\/\/notebooks.dataone.org\/semantic-annotation\/week-3-project-1\/","title":{"rendered":"Week 3: Markdown-based Semantic Annotation of Workflow Scripts – Project 1"},"content":{"rendered":"
Hello everyone, this Xiaoliang Jiang from project 1. This is the third week for my internship. For this week, I used several days to keep learning how to create a R extension, and then based on that, I have created a \u201cprototype\u201d function to output a RDF file by using the annotations created by \u201cstrcode\u201d package.<\/span><\/p>\n \n For the first two days in this week, I kept learning how to create a R package (R extension) by reading some official help document and relative papers. I also discussed my working plan with my mentor online to confirm my tasks for this week. According to the 9-week working schedule, in this week, my primary task is trying to find out at least one way to summarize the semantics in annotated scripts and output them in RDF file.<\/span><\/span><\/p>\n \n For the rest time of this week, I created several functions to generate a RDF file from annotated R file. At the beginning, I spend a lot of time to understand the logic in depth about the \u201csum_str\u201d function in \u201cstrcode\u201d. I tried to create a new function called sum_rdf to generate RDF file. But due to my limited understanding on R package, there are always some problems in my edited package. So, at last, I decided to add a new argument into the original function as a new option for it to create a RDF file. For the original function, if I run sum_str() function, it will create a summary of annotated information. After I added an additional input called \u201crdf\u201d, if \u201crdf=TRUE\u201d, the function will create an RDF file instead of a summary of annotations by annotated information. Although it is only a prototype which does not contains any header, only has limited ProvONE words, and has many other problems, it at least could be a successful attempt and a positive way to generate RDF file. In addition, it provided several possible improvement options, like adding more different types of schema by extending word list.<\/span><\/span><\/p>\n \n For the next week, I think I could try to revise this prototype function, and add more information such as prefix headers into the RDF file. \u00a0<\/span><\/span><\/p>\n \n","protected":false},"excerpt":{"rendered":" Hello everyone, this Xiaoliang Jiang from project 1. This is the third week for my internship. For this week, I used several days to keep learning how to create a R extension, and then based on that, I have created a \u201cprototype\u201d function to output a RDF file by using Continue reading Week 3: Markdown-based Semantic Annotation of Workflow Scripts – Project 1<\/span>