File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
scripts/src/main/scala/org/dbpedia/extraction/scripts Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1- // package org.dbpedia.extraction.scripts
1+ package org .dbpedia .extraction .scripts
22
33import java .io ._
44import scala .collection .immutable .HashMap
55import scala .io .Source
66import scala .io ._
77import sys .process ._
8+ import org .dbpedia .util .text .uri ._
9+
10+
811
912
1013/**
@@ -89,7 +92,9 @@ object LanguageSpecificLinksGenerator {
8992
9093 if (regx.findFirstIn(ln) != None ){
9194 triple(0 ) = triple(0 ).replace(" .wikipedia.org/wiki" ," .dbpedia.org/resource" )
92- logToFile(" ./languagelinks.ttl" ,triple(2 )+ " " + " <http://www.w3.org/2002/07/owl#sameAs>" + " " + triple(0 )+ " ." )
95+ val sub = UriDecoder .decode(triple(2 ))
96+ val obj = UriDecoder .decode(triple(0 ))
97+ logToFile(" ./languagelinks.ttl" ,sub+ " " + " <http://www.w3.org/2002/07/owl#sameAs>" + " " + obj+ " ." )
9398 }
9499
95100 }
You can’t perform that action at this time.
0 commit comments