Skip to content

Commit 9f10681

Browse files
committed
removing extra line
1 parent 09c5305 commit 9f10681

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

scripts/src/main/scala/org/dbpedia/extraction/scripts/LanguageSpecificLinksGenerator.scala

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ object LanguageSpecificLinksGenerator {
143143
for(obj <- triplesObjects)
144144
{
145145
//extracting language
146-
val langRegx = """<http:\/\/(.*).dbpedia.org\/resource\/.*>""".r
146+
val langRegx = """<http:\/\/(.*).dbpedia.*>""".r
147147
val langRegx(lang) = obj
148148

149149
//creating file for language if not exists
@@ -154,19 +154,15 @@ object LanguageSpecificLinksGenerator {
154154
CreateFile(fileName)
155155
}
156156

157-
//creating combination string
158-
var LLString :String= ""
159157
//removing itself
160158
val innerTripleObjects = triplesObjects.diff(List(obj))
161159

162160

163161
for(obj2 <- innerTripleObjects)
164162
{
165-
//LLString += obj +" <http://www.w3.org/2002/07/owl#sameAs> " +obj2+" .\n"
166-
LogToFile(fileName,obj +" <http://www.w3.org/2002/07/owl#sameAs> " +obj2+" .\n")
163+
LogToFile(fileName,obj +" <http://www.w3.org/2002/07/owl#sameAs> " +obj2+" .")
167164
}
168165

169-
//LogToFile(fileName,LLString)
170166
}
171167

172168
//empty the Chunk container
@@ -178,7 +174,7 @@ object LanguageSpecificLinksGenerator {
178174

179175
CloseWriters()
180176

181-
print("time taken: " + (System.nanoTime - startTime)/1000000000 +" secs" )
177+
print("time taken: " + (System.nanoTime - startTime)/1000000000 +" secs+\n" )
182178

183179

184180
}

0 commit comments

Comments
 (0)