org.rdfcontext.model.MSG
Interface IMSG

All Known Implementing Classes:
MSG, MSG

public interface IMSG

Author:
Proprietario TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Method Summary
 java.lang.String[] getInvolvedURIs()
          Gets al the URI involved in the MSG as Strings.
 java.lang.String getRDFXML()
          Serializes the MSG and return it as RDF/XML.
 java.util.ArrayList getSignatureReports()
          Returns the list of Signature Reports attached to this MSG.
 boolean hasSemanticsOf(IMSG msg)
          Detect if the current MSG has the same semantics of a given MSG.
 

Method Detail

getInvolvedURIs

public java.lang.String[] getInvolvedURIs()
Gets al the URI involved in the MSG as Strings.


getRDFXML

public java.lang.String getRDFXML()
Serializes the MSG and return it as RDF/XML.

Returns:
an InputStream containing the MSG statements serialized in RDF/XML
Throws:
org.openrdf.sesame.sail.SailUpdateException
java.io.IOException
org.openrdf.sesame.config.AccessDeniedException

hasSemanticsOf

public boolean hasSemanticsOf(IMSG msg)
Detect if the current MSG has the same semantics of a given MSG. Two MSGs have the same semantics (according to RDF Semantics) if they represent the same "information", that is if they have the same structure involing the same URIs. They can differ only for the blank nodes ID used.

Parameters:
msg -
Returns:
true if tht MSGs have represent the same information, that is if they have the same structure and use he same URIs.

getSignatureReports

public java.util.ArrayList getSignatureReports()
Returns the list of Signature Reports attached to this MSG.

Returns:
an ArrayList of SignatureReport