简体   繁体   English

Virtuoso DBpedia“英语以外的其他语言”图表

[英]Virtuoso DBpedia “Other Language than English” graph

I'm trying to use Virtuoso with ita-Dbpedia dumps. 我正在尝试将Virtuoso与ita-Dbpedia转储一起使用。 These are the steps i've done using the guide: 这些是我使用指南完成的步骤:

1: Installed virtuoso and made a Service (called "Nostromo"). 1:安装专家并提供服务(称为“ Nostromo”)。 2: Downloaded Dumps 3: Bulkloaded dumps 4: registered graph iri with (SQL> ld_dir ('tmp', ' . ', ' http://dbpedia.org ') 5: Inserted the graph file in the 6: started the loader Run: SQL> rdf_loader_run (); (5 hours wait...) 2:已下载的转储3:批量转储4:使用(SQL> ld_dir('tmp',' ',' http ://dbpedia.org')注册的图形iri 5:在6中插入图形文件:启动加载程序运行:SQL> rdf_loader_run();(等待5个小时...)

Than all seems good but when i try to sparql something it results empty... 比一切似乎都好,但是当我尝试sparql时,结果为空...

with the SQL command: 使用SQL命令:

SELECT ll_graph, ll_file FROM DB.DBA.LOAD_LIST;

it comes: Query result: 它来了:查询结果:

> ll_graph VARCHAR  ll_file VARCHAR  http://it.dbpedia. org 
> tmp/itwiki-20140302-article-categories.ttl  http:// it.dbpedia. org   
> tmp/itwiki-20140302-article-templates.ttl  http:// it.dbpedia. org    
> tmp/itwiki-20140302-available_interlanguage-links.ttl 
> http:// it.dbpedia. org    tmp/itwiki-20140302-category-labels.ttl 
> http:// it.dbpedia. org    tmp/itwiki-20140302-disambiguations.ttl 
> http:// it.dbpedia. org    tmp/itwiki-20140302-external-links.ttl 
> http:// it.dbpedia. org    tmp/itwiki-20140302-geo-coordinates.ttl 
> http:// it.dbpedia. org    tmp/itwiki-20140302-images.ttl 
> http:// it.dbpedia. org    tmp/itwiki-20140302-infobox-properties.ttl 
> http:// it.dbpedia. org   
> tmp/itwiki-20140302-infobox-property-definitions.ttl 
> http:// it.dbpedia. org    tmp/itwiki-20140302-infobox-test.ttl 
> http:// it.dbpedia. org    tmp/itwiki-20140302-instance-types.ttl 
> http:// it.dbpedia. org    tmp/itwiki-20140302-interlanguage-links.ttl 
> http:// it.dbpedia. org    tmp/itwiki-20140302-labels.ttl 
> http:// it.dbpedia. org   
> tmp/itwiki-20140302-mappingbased-properties.ttl  http://it.dbpedia.
> org    tmp/itwiki-20140302-page-ids.ttl  http://it.dbpedia. org   
> tmp/itwiki-20140302-page-links.ttl  http://it.dbpedia. org    
> tmp/itwiki-20140302-redirects.ttl  http://it.dbpedia. org 
> tmp/itwiki-20140302-revision-ids.ttl  http://it.dbpedia. org  
> tmp/itwiki-20140302-revision-uris.ttl

and with: 与:

SELECT ?g COUNT(*) { GRAPH ?g {?s ?p ?o.} };

it comes: 它来了:

g   callret-1
http://www.w3. org/2002/07/owl# 160
http://it.dbpedia. org  86712483
http://www.openlinksw. com/schemas/virtrdf# 2639
http://local.host:8890/sparql   14
http://local.host:8890/DAV/ 2939

pratically i know that there are the triples, but i can't query them... 实际上,我知道有三元组,但我无法查询它们...

PS: for example i use a query that works fine in another ita-sparql endpoint, but it's not good for mine... PS:例如,我使用的查询在另一个ita-sparql端点中运行良好,但这对我来说并不好...

SELECT ?museum, ?artwork WHERE {
?museum a <http://dbpedia.org/ontology/Museum>. 
?museum <http://dbpedia.org/ontology/address> ?address.
?artwork <http://dbpedia.org/ontology/location> ?museum.
 FILTER contains(?address, "Firenze")
}

I think it's a quite stupid mistake i've done, but i can't find it... 我认为这是我犯的一个非常愚蠢的错误,但我找不到它...

UPDATE 07/01/2014 更新07/01/2014

With this query i got a result: 通过此查询,我得到了一个结果:

select ?museum where {
  graph <http://it.dbpedia.org> {
    ?museum a <http://dbpedia.org/ontology/Museum>. 

  }
}

But no news with the other query I think it's about ontology... 但是与其他查询无关,我认为这与本体有关。

are there some query/interrogation i can do for help you understand this problem? 我可以做一些查询/询问来帮助您了解此问题吗? (Thanks in advance) (提前致谢)

UPDATE 11/01/2014 更新11/01/2014

Ok, i have found the problem... that was not about owl but about type of dumps. 好的,我发现了问题……那不是关于猫头鹰,而是关于垃圾场的类型。 I resolved installing a VAD for faceted browsing and take the info about triple from local.host:8890/fct search engine. 我决定安装VAD以进行多面浏览,并从local.host:8890/fct搜索引擎获取有关三重信息。 Just a few modifies in the queries and all works good... :D Thanks all, expecially to mr.Taylor 只需在查询中进行一些修改,就可以很好地工作...:D尤其感谢Taylor先生

The result 结果

http://it.dbpedia.org    86712483

in your original query means that there are 86712483 in the graph named http://it.dbpedia.org. 在您的原始查询中,意味着在名为http://it.dbpedia.org的图中有86712483。 Your second query: 您的第二个查询:

select ?museum, ?artwork where {
  ?museum a <http://dbpedia.org/ontology/Museum>. 
  ?museum <http://dbpedia.org/ontology/address> ?address.
  ?artwork <http://dbpedia.org/ontology/location> ?museum.
  filter contains(?address, "Firenze")
}

is a query over the default graph . 是对默认图的查询。 Some SPARQL endpoints make the default graph a union of all the other graphs, but this isn't universal, and it appears that it is not what Virtuoso does (or at least not by default). 一些SPARQL端点使默认图成为所有其他图的并集,但这不是通用的,并且看来这不是Virtuoso所做的(或至少不是默认情况下)。 You need to specify the actual named graph. 您需要指定实际的命名图。 Eg, the following query will probably get you some results: 例如,以下查询可能会为您带来一些结果:

select ?museum, ?artwork where {
  graph <http://it.dbpedia.org> {
    ?museum a <http://dbpedia.org/ontology/Museum>. 
    ?museum <http://dbpedia.org/ontology/address> ?address.
    ?artwork <http://dbpedia.org/ontology/location> ?museum.
    filter contains(?address, "Firenze")
  }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM