Re: [Karmatool-users] Annotations
Brought to you by:
datatoinsight,
yuanluo
From: Devarshi G. <dgh...@um...> - 2013-05-10 23:26:16
|
Hi Michael, Only entities (annotableEntityType) and files are valid for addAnnotation. However annotations can be added for all types of provenance objects, like entities (processes), data-objects (artifacts), and relationships (causal dependencies). This is possible to embed the annotation along with the original event. As for adding annotations 'after the fact' (using addAnnotation), only file and entity annotations can be added that way. For causal dependencies you can add annotations (after the fact) by using their internal-ids (these ids are record-ids assigned to each relationship tuple in the corresponding database table). An example to add an annotation for a tuple with invocation_id=2 in exe_invocation table is given below: <ns:addRelationshipAnnotationByIdType xmlns:ns=" http://www.dataandsearch.org/karma/2010/08/" xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/"> <ns:relationshipID>2</ns:relationshipID> <ns:annotableRelationshipType>INVOCATION</ns:annotableRelationshipType> <ns:annotations> <ns:property>some-property</ns:property> <ns:value>somevalue</ns:value> </ns:annotations> <ns:annotatingTimestamp>2012-01-13T00:32:56</ns:annotatingTimestamp> <ns:notificationtimestamp>2012-01-13T00:32:56</ns:notificationtimestamp> </ns:addRelationshipAnnotationByIdType> On Thu, May 9, 2013 at 10:17 AM, Black, Michael (IS) <Mic...@ng... > wrote: > I got the annotableFileType working and am now wondering what other > annotations are available. > <ns:addAnnotation xmlns:ns="http://www.dataandsearch.org/karma/2010/08/" > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> > <ns:annotableFile> > <ns:fileURI>file:DamScape_002</ns:fileURI> > <ns:ownerDN>Amy_Elliott</ns:ownerDN> > </ns:annotableFile> > <ns:annotableObjectType>FILE</ns:annotableObjectType> > <ns:annotations> > <ns:property>% Out of Bounds</ns:property> > <ns:value>0</ns:value> > </ns:annotations> > <ns:annotatingTimestamp>2011-09-14T00:39:16</ns:annotatingTimestamp> > > <ns:notificationtimestamp>2011-09-16T19:31:59.065-04:00</ns:notificationtimestamp> > </ns:addAnnotation> > > > I see annotableEntityType and it appears that's the only other one > available for addAnnotation? Correct? > > I also see > <simpleType name="annotableRelationshipEnumType"> > <restriction base="string"> > <enumeration value="INVOCATION"/> > <enumeration value="DATA_TRANSFER"/> > </restriction> > </simpleType> > > Is there an example for those? I'm at a bit of a loss trying to figure > out the syntax for these transactions from the XSD. > > > > Michael D. Black > Senior Scientist > Analytics, Production and Services > Advanced GEOINT Systems > Northrop Grumman Information Systems > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > _______________________________________________ > Karmatool-users mailing list > Kar...@li... > https://lists.sourceforge.net/lists/listinfo/karmatool-users > -- Thanks & regards, Devarshi |