本体与网络 [英] Ontology and the Web

查看:99
本文介绍了本体与网络的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在通过网络访问我们在此处构建的本体时遇到了麻烦.我一直在尝试了解sparql,据我所知,目前还没有对本体的真正PHP支持.我想知道我是否要尝试构建一个Java服务器应用程序来查询我刚刚访问的本体的正确性?还是有一种更简单更好的方法?任何人都可以以自己的知识或良好的参考帮助阅读吗?我一直在搜索和阅读一段时间,找不到太多东西.

I've been having trouble accessing an ontology that we built here via the web. I've been trying to understand sparql and as far as I can tell there's no real PHP support for ontologies yet. I was wondering if I'm going about this right trying to build a java server app that queries the ontology for me that I just access? Or is there an easier better way? Can anyone help with their own knowledge or good references to read? I've been searching and reading for awhile now and can't find much of anything.

在此先感谢您的帮助:)

Thank you in advance for the help :)

推荐答案

这里大约需要两件事.第一个工具是允许您在网络上发布本体并使之可用于SPARQL查询(= SPARQL endpoint )的工具.通常,这是通过安装三元组并将本体添加到该三元组来完成的.

There's roughly two things that you need here. The first is a tool that allows you to publish the ontology on the web and make it accessible for SPARQL querying (= a SPARQL endpoint). This is typically done by installing a triplestore and adding your ontology to that triplestore.

三元存储库有多种形式,对于一些免费和开放源代码的存储库,请查看 OpenRDF芝麻耶拿 4Store .有关三元组解决方案的更全面列表以及每种方案的优缺点的讨论,请查看 answers.semanticweb.com .

There's various flavors of triplestores available, for some free and open source ones have a look at OpenRDF Sesame, Jena or 4Store. For a more comprehensive list of triplestore solutions and discussions of pros and cons of each, have a look around on answers.semanticweb.com.

一旦设置了Triplestore,就可以使用SPARQL从PHP查询它.这里有各种PHP库使您的生活更轻松.例如,有一个 phpSesame ,一个用于远程访问芝麻(包括SPARQL查询)的PHP客户端,或者这个更通用的适用于PHP的SPARQL库,它可以与任何符合规范的SPARQL服务器一起使用.

Once you have your triplestore set up, you can query it from PHP using SPARQL. There's various PHP libraries that make life easier for you here. For example, there's phpSesame, a PHP client for remote access to Sesame (including SPARQL querying), or there is this more generic SPARQL library for PHP that should work with any spec-compliant SPARQL server.

这篇关于本体与网络的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆