org.pasoa.util.rdf
Class RDFExporter

java.lang.Object
  extended by org.pasoa.util.rdf.RDFExporter

public class RDFExporter
extends Object


Constructor Summary
RDFExporter()
           
 
Method Summary
 Document export(BackendStore bs)
           
 String resourceName(GlobalPAssertionKey gpaid)
           
 String writeActorStatePAssertion(String prefix, ActorStatePAssertion assertion, Document doc)
           
 String writeArgument(String name, String operation, GlobalPAssertionKey object, String parameterName, Element dataID, Document doc)
           
 String writeClientId(String interactionId, Element clientId, Document doc)
           
 String writeDataItem(String prefix, GlobalPAssertionKey object, Element dataID, Document doc)
           
 void writeDataProperty(Document doc, String subj, QName subjType, QName rel, String objType, String obj)
           
 void writeDataProperty(Document doc, String subj, String subjType, String rel, String objType, String obj)
           
 String writeElementValue(String name, String type, Element value, Document doc)
           
 void writeGlobalObjectProperty(Document doc, String subj, QName subjType, QName rel, String obj)
           
 void writeGlobalObjectProperty(Document doc, String subj, String subjType, String rel, String obj)
           
 String writeIdentifiers(InteractionKey irid, Document doc)
           
 String writeInteractionId(String interactionId, Document doc)
           
 String writeInteractionPAssertion(String prefix, InteractionPAssertion assertion, Document doc)
           
 void writeInteractionRecord(InteractionRecord ir, Document doc)
           
 String writeMsgSink(String interactionId, Element msgSink, Document doc)
           
 String writeMsgSource(String interactionId, Element msgSource, Document doc)
           
 String writeObject(InteractionKey interactionRecordID, String viewName, String prefix, String relation, ObjectID object, int index, Document doc)
           
 void writeObjectProperty(Document doc, String subj, QName subjType, QName rel, String obj)
           
 void writeObjectProperty(Document doc, String subj, String subjType, String rel, String obj)
           
 String writeRelationshipPAssertion(InteractionKey interactionRecordID, String viewName, String prefix, Relationship assertion, Document doc)
           
 String writeServiceId(String interactionId, Element serviceid, Document doc)
           
 String writeSubject(InteractionKey interactionRecordID, String viewName, String prefix, String relation, SubjectID subject, Document doc)
           
 String writeView(InteractionKey interactionRecordID, String viewName, View view, Document doc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFExporter

public RDFExporter()
Method Detail

export

public Document export(BackendStore bs)
                throws Exception
Throws:
Exception

writeInteractionRecord

public void writeInteractionRecord(InteractionRecord ir,
                                   Document doc)

writeView

public String writeView(InteractionKey interactionRecordID,
                        String viewName,
                        View view,
                        Document doc)

writeInteractionPAssertion

public String writeInteractionPAssertion(String prefix,
                                         InteractionPAssertion assertion,
                                         Document doc)

writeActorStatePAssertion

public String writeActorStatePAssertion(String prefix,
                                        ActorStatePAssertion assertion,
                                        Document doc)

writeRelationshipPAssertion

public String writeRelationshipPAssertion(InteractionKey interactionRecordID,
                                          String viewName,
                                          String prefix,
                                          Relationship assertion,
                                          Document doc)

resourceName

public String resourceName(GlobalPAssertionKey gpaid)

writeArgument

public String writeArgument(String name,
                            String operation,
                            GlobalPAssertionKey object,
                            String parameterName,
                            Element dataID,
                            Document doc)

writeDataItem

public String writeDataItem(String prefix,
                            GlobalPAssertionKey object,
                            Element dataID,
                            Document doc)

writeSubject

public String writeSubject(InteractionKey interactionRecordID,
                           String viewName,
                           String prefix,
                           String relation,
                           SubjectID subject,
                           Document doc)

writeObject

public String writeObject(InteractionKey interactionRecordID,
                          String viewName,
                          String prefix,
                          String relation,
                          ObjectID object,
                          int index,
                          Document doc)

writeIdentifiers

public String writeIdentifiers(InteractionKey irid,
                               Document doc)

writeInteractionId

public String writeInteractionId(String interactionId,
                                 Document doc)

writeElementValue

public String writeElementValue(String name,
                                String type,
                                Element value,
                                Document doc)

writeClientId

public String writeClientId(String interactionId,
                            Element clientId,
                            Document doc)

writeMsgSource

public String writeMsgSource(String interactionId,
                             Element msgSource,
                             Document doc)

writeServiceId

public String writeServiceId(String interactionId,
                             Element serviceid,
                             Document doc)

writeMsgSink

public String writeMsgSink(String interactionId,
                           Element msgSink,
                           Document doc)

writeObjectProperty

public void writeObjectProperty(Document doc,
                                String subj,
                                String subjType,
                                String rel,
                                String obj)

writeObjectProperty

public void writeObjectProperty(Document doc,
                                String subj,
                                QName subjType,
                                QName rel,
                                String obj)

writeGlobalObjectProperty

public void writeGlobalObjectProperty(Document doc,
                                      String subj,
                                      String subjType,
                                      String rel,
                                      String obj)

writeGlobalObjectProperty

public void writeGlobalObjectProperty(Document doc,
                                      String subj,
                                      QName subjType,
                                      QName rel,
                                      String obj)

writeDataProperty

public void writeDataProperty(Document doc,
                              String subj,
                              String subjType,
                              String rel,
                              String objType,
                              String obj)

writeDataProperty

public void writeDataProperty(Document doc,
                              String subj,
                              QName subjType,
                              QName rel,
                              String objType,
                              String obj)