SPARQL 入门、沙箱
我坚信通过使用平台或技术来学习它。所以我稍微看了一眼 SPARQL,但到目前为止还没有真正深入了解它,因为它只是......看起来令人畏惧(就像一开始的一切一样)。
我想要一个包含几个可以交叉引用和查询的文档的环境。我的诱惑是做类似 SQL 的事情,例如将一个城市加入到它的祖国 - 但也许这是错误的心态。我看过 dbpedia 上的示例,蝙蝠右侧有问号、5 个命名空间、尖括号和其他喧嚣。
http://dbpedia.org/snorql/ 看起来是个不错的地方。
有人有一些经验可以分享吗?有什么特别的资源真正启动了您的学习吗?
I'm a firm believer in learning a platform or technology by playing with it. So I've kind of glanced at SPARQL and thus far haven't really gotten to into it because it just ... looks daunting (as does everything at first).
I'd like an environment with a couple of documents that I can cross reference and query. My temptation is to do SQL like things such as joining a city to it's home country - but maybe that's the wrong frame of mind. I've looked at the examples on dbpedia and right of the bat there's question marks, 5 namespaces, angle brackets and other hoopla.
http://dbpedia.org/snorql/ looks like a good place to play.
Anyone have some experiences to share? Any resources in particular that really launched your learning?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我听说 ARQ SPARQL 教程 是一个有用的开始。正如您所发现的,dbpedia 是一个令人畏惧的数据集,但 sparql.org 还提供一个非常简单的数据集来尝试在线查询。
I've heard that the ARQ SPARQL tutorial is a useful start. As you've found, dbpedia is a daunting data set to start with, but sparql.org also provides a very simple dataset to try querying online.
我同意你的看法。因此,我整理了一个入门工具包来帮助启动初始数据集。它仍处于非常早期的“alpha”阶段,但我已经能够使用它来创建一组可供使用的三元组。 https://github.com/barobba/RDF-SPARQL-Starter-Kit
另外,这是我刚刚在 StackOverflow 上发表的一篇相关文章:
如何开始使用 RDF? (特别是对于关系数据库开发人员?)
I agree with you. So, I have put together a starter kit to help with starting an initial data set. It's still in the very early "alpha" stage, but I have been able to use it to create a set of triples to work from. https://github.com/barobba/RDF-SPARQL-Starter-Kit
Also, here is a related post I just made on StackOverflow:
How to get started with RDF? (Particularly for relational database developers?)
正如 comment_bot 所说,ARQ SPARQL 教程是一个很好的起点。
如果您确实想了解它,那么您需要阅读完整的 SPARQL 规范 其中有很多示例并进行了详细解释。如果您只想使用它,那么您不必担心第 12 节以后的内容,因为它深入介绍了 SPARQL 正式定义的技术细节以及如何实现它。
但也像你说的那样,你确实需要尝试一下查询 - comment_bot 再次提到 sparql.org 其中是一个方便的沙箱
另请注意,目前有一个工作组正在积极致力于 SPARQL 1.1,它将添加许多有用的功能,例如聚合和否定,这些功能在现有规范下要么缺失,要么难以实现。
您可能还需要关注 SemanticOverflow,它是语义网中的 SO 等价物,并且有相当多的参与编写 SPARQL 规范的人员会访问该网站,因此如果您有一个晦涩/复杂的 SPARQL 问题,可以到该网站询问
As comment_bot says the ARQ SPARQL tutorial is a good place to start.
If you really want to understand it then you will need to read the full SPARQL specification which has lots of examples and explains it in a lot of detail. If you just want to use it then you shouldn't worry about section 12 onwards as that goes into in-depth technical details of the formal definition of SPARQL and how you might go about implementing it.
But also like you say you do need to just play around with queries - again comment_bot mentions sparql.org which is a handy sandbox
Also be aware that currently there is a Working Group actively working on SPARQL 1.1 which will add in a number of useful features such as aggregates and negation which are either missing or hard to do under the existing specification.
You may also want to keep an eye on SemanticOverflow which is the Semantic Web equivalent of SO and quite a few of the people involved in writing the SPARQL specification visit that site so if you have an obscure/complex SPARQL question it's the place to ask