I am thinking to switch from ARC2 to either Jena or Sesame for SPARQL 1.1 support and the need for inference/reasoning tools. However, I would like to keep working mainly from PHP with MySQL. I've seen that Sesame can be installed as a server and has a native store that can run on MySQL, and have found a PHP wrapper for accessing the Sesame server through HTTP requests.

I have not yet been able to find any information if any of the existing inference/reasoning tools can also be used through an API (that I can then use from PHP) Does anyone know if this is possible?

Also, more general: I am just not so good yet with the command line and server things, nor do I have experience with Java. It looks like just installing the Sesame server could already be quite a task for me since I have no idea yet what a "Java Servlet Container" is or what TOMCAT is. That said, in your experience / advice: Will I get away with setting a RDF server + Mysql triple store + reasoner up and then accessing them from PHP? Or will I have to enter the Java world at some point?

Any advice is greatly appreciated.

asked 23 Jan '13, 07:15

FlyOn's gravatar image

FlyOn
57828
accept rate: 20%

edited 23 Jan '13, 07:19


You can use a Sesame server directly from PHP, using a generic PHP SPARQL endpoint library such as RAP or even just rolling your own processing using JSON, see these pointers by Kingsley Idehen (they assume you use Virtuoso, but it should work for any SPARQL endpoint implementation).

Sesame Server has a RESTful API and functions as a SPARQL endpoint. For some pointers on getting started with Sesame, there is an excellent blog by Jeni Tennison which takes you through it step by step.

(ObDisclosure: I am on the Sesame development team)

link

answered 23 Jan '13, 21:44

Jeen%20Broekstra's gravatar image

Jeen Broekstra ♦
11.3k412
accept rate: 37%

edited 23 Jan '13, 21:48

tnx Jeen. That will get me started. Do you happen to know if OWLIM can be accessed through the same RESTful API? I've found something here http://owlim.ontotext.com/display/OWLIMv40/OWLIM-Lite+Usage+Scenarios but it looks like it still needs Java code to make it work, right?

(24 Jan '13, 05:37) FlyOn FlyOn's gravatar image

@FlyOn, yes, OWLIM is accessible through the same API. See the OWLIM install documentation at http://owlim.ontotext.com/display/OWLIMv53/OWLIM-Lite+Installation .

(27 Jan '13, 23:11) Jeen Broekstra ♦ Jeen%20Broekstra's gravatar image

Fuseki has a RESTful API that you could use, it's a SPARQL endpoint for Jena. Alternatively you could build your own ontology specific RESTful api on top of something like Tomcat or Glassfish.

link

answered 23 Jan '13, 08:32

Phil's gravatar image

Phil
1536
accept rate: 28%

edited 23 Jan '13, 21:10

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×540
×135
×99
×60
×27

Asked: 23 Jan '13, 07:15

Seen: 1,182 times

Last updated: 27 Jan '13, 23:11