Project

General

Profile

« Previous | Next » 

Revision 1595

Added by Jing Tao over 21 years ago

Change the code to get docid.

View differences:

src/edu/ucsb/nceas/metacat/RelationHandler.java
105 105
        MetaCatUtil.debugMessage("subject from triple:"+triple.getSubject(), 30);
106 106
        MetaCatUtil.debugMessage("relationship from triple:"+triple.getRelationship(),30);
107 107
        MetaCatUtil.debugMessage("object from triple: "+triple.getObject(),30);
108
        subject = (new DocumentIdentifier(triple.getSubject())).getIdentifier();
108
        //subject = (new DocumentIdentifier(triple.getSubject())).getIdentifier();
109
        subject = MetaCatUtil.getDocIdFromString(triple.getSubject());
109 110
        relationship = triple.getRelationship();
110
        object = (new DocumentIdentifier(triple.getObject())).getIdentifier();
111
     
111
        //object = (new DocumentIdentifier(triple.getObject())).getIdentifier();
112
        object = MetaCatUtil.getDocIdFromString(triple.getObject());
113
        
112 114
        //put the new relation into xml_relation
113 115
        MetaCatUtil.debugMessage("Insert into xml_relation table", 30);
114 116
        tstmt.setString(1, docid);

Also available in: Unified diff