Skip to content

Commit

Permalink
[VIVO-1690] - Remove trailing whitespace throughout project (vivo-pro…
Browse files Browse the repository at this point in the history
…ject#126)

* Remove trailing whitespace throughout project

Resolves: https://jira.duraspace.org/browse/VIVO-1690
** Along with: vivo-project/Vitro#117
  • Loading branch information
gneissone authored and Andrew Woods committed May 3, 2019
1 parent 48dcf87 commit 87092ce
Show file tree
Hide file tree
Showing 685 changed files with 26,784 additions and 26,784 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public class LCSHService implements ExternalConceptService {
private final String schemeUri = hostUri + "/authorities/subjects";
private final String baseUri = hostUri + "/search/";



@Override
public List<Concept> getConcepts(String term) throws Exception {
List<Concept> conceptList = new ArrayList<Concept>();
Expand Down Expand Up @@ -111,19 +111,19 @@ private List<Concept> processOutput(String results) throws Exception {
conceptList.add(c);
}
i++;

}
return conceptList;
}


//Load individual concept using a request
//private
//private

public Concept createConcept(String bestMatch, String conceptURLString, String skosConceptURI) {

Concept concept = new Concept();

log.debug("SKOSConceptURI is " + skosConceptURI);
// get skos version of uri

Expand All @@ -133,31 +133,31 @@ public Concept createConcept(String bestMatch, String conceptURLString, String s
concept.setDefinedBy(schemeUri);
concept.setSchemeURI(schemeUri);
concept.setType("");

//Utilize the XML directly instead of the SKOS API
try {
//LCSH doesn't need a language tag right now as results in english
//Also want to add skos notes as definition
concept = SKOSUtils.createConceptUsingXMLFromURL(concept, conceptURLString, null, true);

} catch(Exception ex) {
log.debug("Error occurred for annotation retrieval for skos concept " + skosConceptURI, ex);
return null;
}


return concept;
}



private String getSKOSURL(String uri) {
String skosURI = uri + skosSuffix;

return skosURI;
}



public List<String> getConceptURISFromJSON(String results) {
List<String> uris = new ArrayList<String>();
Expand Down Expand Up @@ -197,7 +197,7 @@ protected List<String> getConceptURIFromXML(String rdf) {

}
}

log.debug("concept uri is " + conceptUri);
uris.add(conceptUri);
}
Expand Down Expand Up @@ -241,6 +241,6 @@ public List<Concept> getConceptsByURIWithSparql(String uri)
// TODO Auto-generated method stub
return null;
}


}
Loading

0 comments on commit 87092ce

Please sign in to comment.