Skip to content

Commit

Permalink
printing lang and text
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav SinghaRoy committed Nov 18, 2014
1 parent 6e8d445 commit de02b7d
Showing 1 changed file with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,21 @@ else if (variableDictionary.containsKey(bodyChunk.value)) {
String var = bcSplits[0];
String varExt = bcSplits[1];
if (variableDictionary.containsKey(var)) {

if (varExt.equals("text")) {
outputString = SPARQLHandler
.getLabelText(variableDictionary.get(var));
} else if (varExt.equals("lang")) {
outputString = SPARQLHandler
.getLabelLanguage(variableDictionary.get(var));
List<String> thisProperties = rdfObject
.getPropertyValues(variableDictionary.get(var));
outputString = "";
for (String thisProperty : thisProperties) {
if (varExt.equals("text")) {
if (!outputString.equals(""))
outputString += ";";
outputString += SPARQLHandler
.getLabelText(thisProperty);
} else if (varExt.equals("lang")) {
if (!outputString.equals(""))
outputString += ";";
outputString += SPARQLHandler
.getLabelLanguage(thisProperty);
}
}
} else if (intermediateVariableDictionary.containsKey(var)) {
if (varExt.equals("text")) {
Expand Down

0 comments on commit de02b7d

Please sign in to comment.