[SPARQL/DBPedia]我可以从结果中捕获德语维基百科 URL 吗?

发布于 2024-10-09 00:57:26 字数 307 浏览 0 评论 0 原文

有人可以帮我找到德语维基百科文章的链接吗?

例如,我对所有德国电影有一个查询:

SELECT ?film
WHERE { ?film skos:subject http://dbpedia.org/resource/Category:German_films }

是否有像 dbpedia:wikipage-de 这样的选项可以向我显示维基百科的德语站点? 所有结果都只有 foaf:page 这样的前缀,内容名为:[http] http://en.wikipedia.org/wiki/*

Can someone help me to catch the link for the German Wikipedia article?

For example, I have a query for all German films:

SELECT ?film
WHERE { ?film skos:subject http://dbpedia.org/resource/Category:German_films }

Is there a option like dbpedia:wikipage-de that shows me the German site of Wikipedia?
All the results have only a prefix like foaf:page and the content called: [http] http://en.wikipedia.org/wiki/*

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

家住魔仙堡 2024-10-16 00:57:26

我不确定您到底在寻找什么,但如果您想从德语维基百科查找 dbpedia 提取的内容,我认为您需要查看 http://de.dbpedia.org/;例如,http://de.dbpedia.org/page/Sepsidae 对应于德语维基百科英文维基百科上的 http://dbpedia.org/page/Sepsidae 页面。这有帮助吗?

I'm not sure exactly what you are looking for, but if you want to look up dbpedia-extracted content from the German Wikipedia, I think you need to look at http://de.dbpedia.org/; For instance, http://de.dbpedia.org/page/Sepsidae corresponds to the German Wikipedia page of http://dbpedia.org/page/Sepsidae on the English Wikipedia. Does that help?

第几種人 2024-10-16 00:57:26

您不能

在英文 dbpedia 中找不到此信息(只有德语标签和摘要),

您可以使用标签,它通常与文章名称相同。
德语 dbpedia 是另一种选择,或者您可以下载德语转储(从 dbpedia.org)并在您自己的服务器中使用它们

You can't

this information is not available in the english dbpedia (only german label and abstract)

you could use the label, it is usually the same as the article name.
The german dbpedia is another option, or you can download the german dumps (from dbpedia.org) and use them in you own server

放手` 2024-10-16 00:57:26

你的要求不起作用(至少对我来说)。我必须做:

SELECT ?film
WHERE { ?film <http://purl.org/dc/terms/subject> <http://dbpedia.org/resource/Category:German_films> }

我想你想做的是这样的:

SELECT ?film
WHERE { ?film <http://purl.org/dc/terms/subject> <http://dbpedia.org/resource/Kategorie:Deutscher_Film> }

这样你就可以从德语维基百科获得文章。就像@jimkont所说,这个请求不能在英语dbpedia上运行,你需要获取德语转储。

Your request doesn't work (for me at least). I had to do:

SELECT ?film
WHERE { ?film <http://purl.org/dc/terms/subject> <http://dbpedia.org/resource/Category:German_films> }

I guess what you would like to do is something like:

SELECT ?film
WHERE { ?film <http://purl.org/dc/terms/subject> <http://dbpedia.org/resource/Kategorie:Deutscher_Film> }

so you would get the articles from the German Wikipedia. Like @jimkont said, this request cannot be ran on the English dbpedia, you need to get the German dumps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文