|
From: Daniel L. <dan...@gm...> - 2007-10-05 09:44:12
|
Hi all, I'm new to the PHP RDF API (but I have been in the Semantic Web / RDF area for a couple of years), could someone give me a quick description of the development which is currently happening to the API. I noticed there have been some much needed changes released a couple of months ago, will there be more? I have started to use the API for a project of mine which is due to be released on the web within a week or two, and of course I would let you know when that happens and what it does when it is released. Any information that you can provide would be of great help. Many thanks, Daniel Lewis |
|
From: Richard C. <ri...@cy...> - 2007-10-05 11:10:48
|
Daniel, On 5 Oct 2007, at 11:44, Daniel Lewis wrote: > I'm new to the PHP RDF API (but I have been in the Semantic Web / RDF > area for a couple of years), could someone give me a quick description > of the development which is currently happening to the API. I noticed > there have been some much needed changes released a couple of months > ago, will there be more? RAP development is user-driven. Improvements happen as users of the API contribute them. Releases happen when sufficient fixes or interesting new stuff has accumulated. Thus there is no schedule for future releases, or list of expected new features. > I have started to use the API for a project of mine which is due to be > released on the web within a week or two, and of course I would let > you know when that happens and what it does when it is released. Looking forward to hear more about this. Richard > > Any information that you can provide would be of great help. > > Many thanks, > > Daniel Lewis > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |
|
From: Daniel L. <dan...@gm...> - 2007-10-08 14:18:38
|
Hi all on the list (inc Richard), I am getting things going now, and my deadlin for beta-release is getting ever closer. But I am getting an error, which I understand from previous emails on the list is quite a common one: Warning: RDFAPI error (class: parser): only one element allowed inside a property element. in /...../rdfapi-php/api/syntax/RdfParser.php on line 1045 This is only happening on some RDF files, but I checked those RDF files against the W3Cs RDF Validation Service and they are valid. So I thought that it might be the RAP library, but its only happening on some files? So is the RAP library up to speed with the latest RDF specification? I could be going completely down the wrong path, I'll search for the error again on the web, but if anyone has any quick solutions then it would be of great help. (by the way, this is for a free-to-use service... which I am going to write an academic article for) Many thanks, Daniel Lewis On 05/10/2007, Richard Cyganiak <ri...@cy...> wrote: > Daniel, > > On 5 Oct 2007, at 11:44, Daniel Lewis wrote: > > I'm new to the PHP RDF API (but I have been in the Semantic Web / RDF > > area for a couple of years), could someone give me a quick description > > of the development which is currently happening to the API. I noticed > > there have been some much needed changes released a couple of months > > ago, will there be more? > > RAP development is user-driven. Improvements happen as users of the > API contribute them. Releases happen when sufficient fixes or > interesting new stuff has accumulated. Thus there is no schedule for > future releases, or list of expected new features. > > > I have started to use the API for a project of mine which is due to be > > released on the web within a week or two, and of course I would let > > you know when that happens and what it does when it is released. > > Looking forward to hear more about this. > > Richard |
|
From: Richard C. <ri...@cy...> - 2007-10-08 16:15:50
|
Daniel, On 8 Oct 2007, at 16:18, Daniel Lewis wrote: > I am getting things going now, and my deadlin for beta-release is > getting ever closer. But I am getting an error, which I understand > from previous emails on the list is quite a common one: > > Warning: RDFAPI error (class: parser): only one element allowed inside > a property element. in /...../rdfapi-php/api/syntax/RdfParser.php on > line 1045 > > This is only happening on some RDF files, but I checked those RDF > files against the W3Cs RDF Validation Service and they are valid. So I > thought that it might be the RAP library, but its only happening on > some files? So is the RAP library up to speed with the latest RDF > specification? Yes. There is of course the possibility that you encountered a bug. > I could be going completely down the wrong path, I'll search for the > error again on the web, but if anyone has any quick solutions then it > would be of great help. There's not much we can do without looking at an example that triggers the problem. Can you point us to a file that shows the problem, and the command that you used for loading the file into RAP? Cheers, Richard > > (by the way, this is for a free-to-use service... which I am going to > write an academic article for) > > Many thanks, > > Daniel Lewis > > > > > On 05/10/2007, Richard Cyganiak <ri...@cy...> wrote: >> Daniel, >> >> On 5 Oct 2007, at 11:44, Daniel Lewis wrote: >>> I'm new to the PHP RDF API (but I have been in the Semantic Web / >>> RDF >>> area for a couple of years), could someone give me a quick >>> description >>> of the development which is currently happening to the API. I >>> noticed >>> there have been some much needed changes released a couple of months >>> ago, will there be more? >> >> RAP development is user-driven. Improvements happen as users of the >> API contribute them. Releases happen when sufficient fixes or >> interesting new stuff has accumulated. Thus there is no schedule for >> future releases, or list of expected new features. >> >>> I have started to use the API for a project of mine which is due >>> to be >>> released on the web within a week or two, and of course I would let >>> you know when that happens and what it does when it is released. >> >> Looking forward to hear more about this. >> >> Richard > |
|
From: Daniel L. <dan...@gm...> - 2007-10-08 16:44:18
|
> There's not much we can do without looking at an example that > triggers the problem. Can you point us to a file that shows the > problem, and the command that you used for loading the file into RAP? Here is an RDF file which I know it doesn't work for, its a FOAF profile: http://www.vanirsystems.co.uk/foaf.rdf and here is a snippet: public function connectToFoaf($uri) { $this->model = ModelFactory::getDefaultModel(); $this->model->load($uri); } ... ... $result = $this->model->findFirstMatchingStatement($statement->getObject(), $name, NULL); $nameResult = $this->makeSane($result); Thats the best I can do for code snippets, the error is: Warning: RDFAPI error (class: parser): only one element allowed inside a property element. in /home/daniel/public_html/xippr/code/lib/vendor/rdfapi-php/api/syntax/RdfParser.php on line 1045 Fatal error: RDFAPI error (class: parser; method: generateModel): XML-parser-error 76 in Line 89 of input document. in /home/daniel/public_html/xippr/code/lib/vendor/rdfapi-php/api/syntax/RdfParser.php on line 2225 Many thanks, Daniel |
|
From: Richard C. <ri...@cy...> - 2007-10-08 16:49:02
|
Daniel, On 8 Oct 2007, at 18:31, Daniel Lewis wrote: > Here is an RDF file which I know it doesn't work for, its a FOAF > profile: > http://www.vanirsystems.co.uk/foaf.rdf Works for me. Below is a test script that parses the file and prints it again to RDF/XML. I run this with RAP 0.9.5 and it works fine. Are you sure that this is the URI on which your script shows the error? Maybe you should try to isolate a minimal PHP script that triggers the error and that we can run without changes. Best, Richard ------- begin test script --------- <?php define("RDFAPI_INCLUDE_DIR", "rdfapi-php-0.9.5/api/"); include(RDFAPI_INCLUDE_DIR . "RdfAPI.php"); $model = ModelFactory::getDefaultModel(); $model->load("http://www.vanirsystems.co.uk/foaf.rdf"); echo $model->writeRdfToString(); ------- end test script -------- > > and here is a snippet: > public function connectToFoaf($uri) { > $this->model = ModelFactory::getDefaultModel(); > $this->model->load($uri); > } > ... > ... > $result = $this->model->findFirstMatchingStatement($statement- > >getObject(), > $name, NULL); > $nameResult = $this->makeSane($result); > > > Thats the best I can do for code snippets, the error is: > > Warning: RDFAPI error (class: parser): only one element allowed inside > a property element. in > /home/daniel/public_html/xippr/code/lib/vendor/rdfapi-php/api/ > syntax/RdfParser.php > on line 1045 > > Fatal error: RDFAPI error (class: parser; method: generateModel): > XML-parser-error 76 in Line 89 of input document. in > /home/daniel/public_html/xippr/code/lib/vendor/rdfapi-php/api/ > syntax/RdfParser.php > on line 2225 > > Many thanks, > > Daniel > |