Sparql 将GATE Gazzetter_lkb连接到geonames远程存储库

Sparql 将GATE Gazzetter_lkb连接到geonames远程存储库,sparql,rdf,gate,geonames,turtle-rdf,Sparql,Rdf,Gate,Geonames,Turtle Rdf,我正在尝试使用geonames.com远程存储库配置gazzetteer\u lkb,以便执行全局位置查找 我需要帮助来正确配置config.ttl和query.txt文件 Config.ttl是否需要有效的海龟RDF格式 另外,在使用下面的config.ttl加载示例字典时,我也遇到了错误: # Gazetteer_LKB dictionary configuration file. # # %temp% will be automatically replaced with the TEMP

我正在尝试使用
geonames.com
远程存储库配置
gazzetteer\u lkb
,以便执行全局位置查找

我需要帮助来正确配置
config.ttl
query.txt
文件

Config.ttl
是否需要有效的海龟RDF格式

另外,在使用下面的
config.ttl
加载示例字典时,我也遇到了错误:

# Gazetteer_LKB dictionary configuration file.
#
# %temp% will be automatically replaced with the TEMP folder for the current user
# %relpath% will be replaced with the path to the dictionary folder.
#
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix rep: <http://www.openrdf.org/config/repository#>.
@prefix hr: <http://www.openrdf.org/config/repository/http#>.
@prefix lkbg: <http://www.ontotext.com/lkb_gazetteer#>.

# The dictionary will be loaded from a remote Sesame HTTP repository. 
# Its configuration follows. See the Sesame configuration for detals.
# http://www.openrdf.org/doc/sesame2/users/ch07.html#section-repository-config
[] a rep:Repository ;
   rep:repositoryImpl [
      rep:repositoryType "openrdf:HTTPRepository" ;

      # This URL is a public limitted SPARQL endpoint. All queries are truncated to 10000 results.
      hr:repositoryURL <http://factforge.net/sparql>

      # This URL points to the unlimitted password-protected factforge endpoint.
      # Ontotext partners can contact info@factforge.net to request credentials. 
      # Please include the SPARQL that you indend to run.
      # Set the credentials below.
      #hr:repositoryURL <http://factforge.net/repositories/owlim>


   ];
   rep:repositoryID "owlim" ;
   rdfs:label "FactForge" .

# The gazetteer-specific options follow.
lkbg:DictionaryConfiguration 
   # Whether the gazeetteer will be sensitive to case.
   # Possible values: caseinsensitive, casesensitive
   lkbg:caseSensitivity "caseinsensitive" ;

   #(optional) Authentication
   #If you are connecting to a repository guarded by HTTP basic authentication,
   #supply credentials as follows:
   #lkbg:username "<username>" ;
   #lkbg:password "<password>" ;

   # Whether the gazetteer will cache the dictionary after loading it from the data source.   
   # Put "enabled" to enable the cache, any other values will disable it.
   lkbg:caching "enabled" .

   # The cache will be automatically reloaded on initialization if the configuration have been    
   # modified since the last initialization. However, changes in the underlying datastore 
   # can't be detected and the cache will not be automatically reloaded in that case. 
   # Thus, if you expect changes in your datastore, disable the cache, or make use
   # of the modifications API.
是否有人成功地将geonames连接到gate应用程序


非常感谢

我想
http://factforge.net/sparql
是一个断开的链接。试试
http://factforge.net/repositories/ff-news
。请参见@StanislavKralin发布的问题页面中的一些详细信息
Aug 27, 2018 7:31:13 PM org.openrdf.http.client.HTTPClient getErrorInfo
WARNING: Server reports problem: Not Found (HTTP status 404)
Loading failed.
com.ontotext.kim.client.query.KIMQueryException: Error in repository connection.