Project

General

Profile

« Previous | Next » 

Revision 8763

simplify lookup for classes and orcid. remove the "random" annotation code branches -- just too confusing to look at those bogus classes especially now that we have "real" generated annotations.

View differences:

BioPortalService.java
12 12
import com.hp.hpl.jena.ontology.OntClass;
13 13
import com.hp.hpl.jena.rdf.model.Resource;
14 14

  
15
import edu.ucsb.nceas.metacat.replication.ReplicationService;
16 15
import edu.ucsb.nceas.utilities.XMLUtilities;
17 16

  
18 17
public class BioPortalService {
......
43 42
			
44 43
			String url = REST_URL + "/annotator?" + urlParameters ;
45 44
			URL restURL = new URL(url);
46
			InputStream is = ReplicationService.getURLStream(restURL);
45
			InputStream is = restURL.openStream();
47 46
			Document doc = XMLUtilities.getXMLReaderAsDOMDocument(new InputStreamReader(is, "UTF-8"));
48 47
			NodeList classNodeList = XMLUtilities.getNodeListWithXPath(doc, "//annotation/annotatedClass/id");
49 48
			if (classNodeList != null && classNodeList.getLength() > 0) {

Also available in: Unified diff