Merge branch 'develop' of git+ssh://github.com/vivo-project/Vitro into develop
This commit is contained in:
commit
3f8286756a
1 changed files with 0 additions and 37 deletions
|
@ -104,41 +104,4 @@ public class NameFieldsTest {
|
|||
nameFields.modifyDocument(ind, doc);
|
||||
assertEquals(expected, doc);
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO Test plan
|
||||
*
|
||||
* <pre>
|
||||
* // also run SPARQL query to get rdfs:label values
|
||||
* String query = "SELECT ?label WHERE { " + "<" + ind.getURI() + "> "
|
||||
* + "<http://www.w3.org/2000/01/rdf-schema#label> ?label }";
|
||||
*
|
||||
* try {
|
||||
* RDFService rdfService = rsf.getRDFService();
|
||||
* BufferedReader stream = new BufferedReader(new InputStreamReader(
|
||||
* rdfService.sparqlSelectQuery(query, ResultFormat.CSV)));
|
||||
*
|
||||
* StringBuffer buffer = new StringBuffer();
|
||||
* String line;
|
||||
*
|
||||
* // throw out first line since it is just a header
|
||||
* stream.readLine();
|
||||
*
|
||||
* while ((line = stream.readLine()) != null) {
|
||||
* buffer.append(line).append(' ');
|
||||
* }
|
||||
*
|
||||
* log.debug("Adding labels for " + ind.getURI() + " \"" + buffer.toString()
|
||||
* + "\"");
|
||||
* doc.addField(term.NAME_RAW, buffer.toString());
|
||||
*
|
||||
* } catch (RDFServiceException e) {
|
||||
* log.error("could not get the rdfs:label for " + ind.getURI(), e);
|
||||
* } catch (IOException e) {
|
||||
* log.error("could not get the rdfs:label for " + ind.getURI(), e);
|
||||
* }
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue