{"id":61,"date":"2005-05-08T09:49:27","date_gmt":"2005-05-08T14:49:27","guid":{"rendered":"http:\/\/crschmidt.net\/blog\/?p=61"},"modified":"2005-05-08T09:49:27","modified_gmt":"2005-05-08T14:49:27","slug":"php-and-redland","status":"publish","type":"post","link":"https:\/\/crschmidt.net\/blog\/archives\/61\/php-and-redland\/","title":{"rendered":"PHP and Redland"},"content":{"rendered":"<p>Recently, I moved most of my serving to a colocated machine, so I finally have a &#8220;Testing&#8221; machine and a &#8220;stable&#8221; machine, leaving me more free to play around locally. This has led to me installing a Rasqal nightly release and installing it, in an attempt to get the newer SPARQL query syntax working in my RDF bot, so that I can test query type detection and the like.<\/p>\n<p>I had no problems installing it: very simple, just download the nightly, .\/configure, make, make install. I got it working in my local &#8220;julietest&#8221;, although I&#8217;m waiting until the next release before I consider installing it on the remote server.<\/p>\n<p>I got it working in PHP from the command line, no  problems.<\/p>\n<p>However, no matter what I do, the web version still seems to be using the old query syntax, and I don&#8217;t have any clue why. If you go to http:\/\/zeus.crschmidt.net\/julie\/sparql, you can test it out, and it only returns data if you use the old query format. However, if I copy the same script locally, and run the exact same query, it doesn&#8217;t work, requiring the new format.<\/p>\n<p>I don&#8217;t understand it, and I don&#8217;t know if anyone else does either. The PHP in Apache2 and CLI both have almost exactly the same phpinfo(), they both have the same extension directory, and there isn&#8217;t a second copy of redland.so for the Apache version to load anyway! If anyone has run into this problem before and knows how to fix it, I&#8217;d appreciate it, because right now I&#8217;ve given up and am waiting for a release before I debug further.<\/p>\n<p>(This post brought to you in part by the effort to bump all of Danny&#8217;s off of PlanetRDF while he&#8217;s on vaccation. ;))<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, I moved most of my serving to a colocated machine, so I finally have a &#8220;Testing&#8221; machine and a &#8220;stable&#8221; machine, leaving me more free to play around locally. This has led to me installing a Rasqal nightly release and installing it, in an attempt to get the newer SPARQL query syntax working in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,4],"tags":[],"class_list":["post-61","post","type-post","status-publish","format-standard","hentry","category-php","category-redland-rdf-application-framework"],"_links":{"self":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts\/61","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/comments?post=61"}],"version-history":[{"count":0,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts\/61\/revisions"}],"wp:attachment":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/media?parent=61"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/categories?post=61"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/tags?post=61"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}