You can subscribe to this list here.
2005 |
Jan
|
Feb
(16) |
Mar
(6) |
Apr
(38) |
May
(23) |
Jun
(5) |
Jul
(1) |
Aug
|
Sep
(10) |
Oct
(7) |
Nov
(6) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(20) |
Feb
(32) |
Mar
(24) |
Apr
(29) |
May
(5) |
Jun
(10) |
Jul
(12) |
Aug
(7) |
Sep
(1) |
Oct
(2) |
Nov
(27) |
Dec
(4) |
2007 |
Jan
(37) |
Feb
(10) |
Mar
(19) |
Apr
(10) |
May
(10) |
Jun
(7) |
Jul
(19) |
Aug
(29) |
Sep
(5) |
Oct
(17) |
Nov
(14) |
Dec
(2) |
2008 |
Jan
(4) |
Feb
(4) |
Mar
|
Apr
(8) |
May
|
Jun
(8) |
Jul
(1) |
Aug
(7) |
Sep
|
Oct
(1) |
Nov
(4) |
Dec
|
2009 |
Jan
|
Feb
(1) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(2) |
2010 |
Jan
|
Feb
(2) |
Mar
(2) |
Apr
|
May
(4) |
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(4) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(2) |
2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Chris B. <bi...@ze...> - 2006-01-26 09:34:14
|
Hi Charles, this sounds like a use case for RAP's dataset API which allows you to manipulate multiple models. See: http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/tutorial/usingNamedGraph= s.h tm You could also use SPARQL to query across multiple Named Graphs: http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/tutorial/usingtheSparqlE= ngi ne.htm Cheers, Chris --=20 Chris Bizer Freie Universit=E4t Berlin Phone: +49 30 838 54057 Mail: ch...@bi... Web: www.bizer.de > -----Urspr=FCngliche Nachricht----- > Von: rdf...@li... = [mailto:rdfapi-php- > int...@li...] Im Auftrag von Charles Nepote > Gesendet: Donnerstag, 26. Januar 2006 09:13 > An: rdf...@li... > Betreff: [Rdfapi-php-interest] Design of a semantic wiki web >=20 > Hi, >=20 > I am working on a semantic wiki (using RAP of course). >=20 > For a given wiki, should I use one model or many models in a db store > (one for each ontologie, for example) ? >=20 > I think one model is good because it is easy to manipulate (read, = write, > queries, and so on). >=20 > But my tool will be able to manage many wikis in a single installation > (with a different knowledge base for each wiki) : in that case, many > models should be better because the tool would be able to share some > ontologies between different wikis (the basic ontologies like RDF, = RDFS, > FOAF, and so on). But is it easy to manipulate a collection of models = ? >=20 > What do you think about that ? > What are the use cases of many models in a db store ? > Does that questions make sens ? >=20 > Charles Nepote. >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD = SPLUNK! > = http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=3D= 121642 > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest |
From: Chris B. <bi...@ze...> - 2006-01-26 09:33:54
|
If you have a lot of data and require fast searches, I guess you should = put all RDF into a single DBModel and search over this model. =20 Chris =20 -- Chris Bizer Freie Universit=E4t Berlin Phone: +49 30 838 54057 Mail: ch...@bi... Web: www.bizer.de _____ =20 Von: rdf...@li... [mailto:rdf...@li...] Im Auftrag von sampath velupula Gesendet: Donnerstag, 26. Januar 2006 00:23 An: rdf...@li... Betreff: [Rdfapi-php-interest] Searching Multiple RDF's =20 Hi, I have been using RAP API for a conference project. I convert all the = pdf publications to indivdual rdf files. I am planning to build a search = which can search all the publication files. Can anyone give me idea? Thanks --=20 Sampath Velupula |
From: Charles N. <cha...@ne...> - 2006-01-26 08:13:26
|
Hi, I am working on a semantic wiki (using RAP of course). For a given wiki, should I use one model or many models in a db store (one for each ontologie, for example) ? I think one model is good because it is easy to manipulate (read, write, queries, and so on). But my tool will be able to manage many wikis in a single installation (with a different knowledge base for each wiki) : in that case, many models should be better because the tool would be able to share some ontologies between different wikis (the basic ontologies like RDF, RDFS, FOAF, and so on). But is it easy to manipulate a collection of models ? What do you think about that ? What are the use cases of many models in a db store ? Does that questions make sens ? Charles Nepote. |
From: sampath v. <sam...@gm...> - 2006-01-25 23:29:36
|
Hi, I have been using RAP API for a conference project. I convert all the pdf publications to indivdual rdf files. I am planning to build a search which can search all the publication files. Can anyone give me idea? Thanks -- Sampath Velupula |
From: <tob...@we...> - 2006-01-23 11:23:56
|
Hi, thanks for your bug report. I fixed it and put it in the CVS. Regards, Tobias >Send Rdfapi-php-interest mailing list submissions to > rdf...@li... > >To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest >or, via email, send a message with subject or body 'help' to > rdf...@li... > >You can reach the person managing the list at > rdf...@li... > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of Rdfapi-php-interest digest..." > > >Today's Topics: > > 1. Bug in ModelFactory::getOntModel ? (Miklos Geyer) > >--__--__-- > >Message: 1 >To: rdf...@li... >From: Miklos Geyer <mik...@el...> >Date: Sun, 22 Jan 2006 22:17:36 +0100 >Subject: [Rdfapi-php-interest] Bug in ModelFactory::getOntModel ? > >Hi again, > >i think ModelFactory::getOntModel should be: > >function & getOntModel($modelType,$vocabulary, $baseURI =3D null) > { > require_once( RDFAPI_INCLUDE_DIR . PACKAGE_ONTMODEL); > > switch ($modelType) > { > case DBMODEL: > $model =3D = >ModelFactory::getDefaultDbModel($baseURI); // --> =20 >instead of $model =3D ModelFactory::getDbModel($baseURI); > break; >... > >otherwise $dbStore ist not an Object in ModelFactory::getDBModel > > >Mikl=F3s Geyer > > > > > > >--__--__-- > >_______________________________________________ >Rdfapi-php-interest mailing list >Rdf...@li... >https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > >End of Rdfapi-php-interest Digest > > |
From: Miklos G. <mik...@el...> - 2006-01-22 21:18:42
|
Hi again, i think ModelFactory::getOntModel should be: function & getOntModel($modelType,$vocabulary, $baseURI =3D null) { require_once( RDFAPI_INCLUDE_DIR . PACKAGE_ONTMODEL); switch ($modelType) { case DBMODEL: $model =3D = ModelFactory::getDefaultDbModel($baseURI); // --> =20 instead of $model =3D ModelFactory::getDbModel($baseURI); break; ... otherwise $dbStore ist not an Object in ModelFactory::getDBModel Mikl=F3s Geyer |
From: <tob...@we...> - 2006-01-21 11:32:44
|
Hi, you are totally right. The function iterFind() is missing in the DbModel. I don't know why nobody had this problem before. I added the function to the DbModel and updated RAP. You can download the new version from sourceforge. Cheers, Tobias Gauss >Send Rdfapi-php-interest mailing list submissions to > rdf...@li... > >To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest >or, via email, send a message with subject or body 'help' to > rdf...@li... > >You can reach the person managing the list at > rdf...@li... > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of Rdfapi-php-interest digest..." > > >Today's Topics: > > 1. SPARQL (Miklos Geyer) > >--__--__-- > >Message: 1 >To: rdf...@li... >From: Miklos Geyer <mik...@el...> >Date: Fri, 20 Jan 2006 22:16:01 +0100 >Subject: [Rdfapi-php-interest] SPARQL > > >Hello, > >I'm trying to use SPARQL with a DbModel, but I get only the error-=20 >message: >Fatal error: Call to undefined method DbModel::iterFind() in ../=20 >rdfapi-php/api/dataset/DatasetMem.php on line 368 > >This function iterFind() only exists in MemModel - but I can't load =20 >my Model into Memory... > >Maybe I'm stupid, but could you please provide an example, how to use =20= > >SPARQL on an DbModel ? > >Thanx > >Mikl=F3s Geyer= > > > > >--__--__-- > >_______________________________________________ >Rdfapi-php-interest mailing list >Rdf...@li... >https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > >End of Rdfapi-php-interest Digest > > |
From: Miklos G. <mik...@el...> - 2006-01-20 21:17:04
|
Hello, I'm trying to use SPARQL with a DbModel, but I get only the error-=20 message: Fatal error: Call to undefined method DbModel::iterFind() in ../=20 rdfapi-php/api/dataset/DatasetMem.php on line 368 This function iterFind() only exists in MemModel - but I can't load =20 my Model into Memory... Maybe I'm stupid, but could you please provide an example, how to use =20= SPARQL on an DbModel ? Thanx Mikl=F3s Geyer= |
From: Chris B. <bi...@ze...> - 2006-01-17 15:33:51
|
Hi all, we have released RAP - RDF API for PHP V0.93 today. The new version includes: + support for the SPARQL query language. + support for a subset of SPARQL protocol. + multiple bug fixes. RAP's new SPARQL package allows you to execute SPARQL queries against = RDF graphs and RDF datasets which may be stored in memory or in a relational database. We have also included SPARQL as additional query language into RAP's NetAPI RDF server, which allows you to query remote RDF = repositories using W3C SPARQL protocol. An introduction into the usage of RAP's SPARQL features is given in: http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/tutorial/usingtheSparqlE= ngi ne.htm More information about RAP is found at: http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/ Lots of thanks to=20 + Tobias Gauss for implementing SPARQL engine. + Daniel Westphal for implementing the RDF dataset API. + all users of RAP for their bug reports and bug fixes. Cheers, Chris Bizer --=20 Chris Bizer Freie Universit=E4t Berlin Phone: +49 30 838 54057 Mail: ch...@bi... Web: www.bizer.de |
From: Chris B. <bi...@ze...> - 2006-01-17 11:29:11
|
Hi Ghislain, yes, we are still using the old PHP4 syntax at some places in RAP as we = want most of the package to work with PHP4 as well. If you use RAP with PHP5 = you can remove all the &s. We are considering to move completely to PHP5 with the next version and = will remove the references then. Cheers Chris =20 --=20 Chris Bizer Freie Universit=E4t Berlin Phone: +49 30 838 54057 Mail: ch...@bi... Web: www.bizer.de > -----Urspr=FCngliche Nachricht----- > Von: rdf...@li... = [mailto:rdfapi-php- > int...@li...] Im Auftrag von Ghislain > Gesendet: Montag, 16. Januar 2006 21:54 > Cc: rdf...@li... > Betreff: Re: [Rdfapi-php-interest] ANN: RAP - RDF API for PHP V0.93 > released including support for SPARQL >=20 >=20 > Hi thanks for this new version. >=20 > In few places, you use reference when calling function or method (for > instance l420 in DatasetDb.php > This produces warning on some php version. >=20 > Ghislain >=20 >=20 >=20 > Chris Bizer wrote: > > Hi all, > > > > we have released RAP - RDF API for PHP V0.93 today. > > > > The new version includes: > > > > + support for the SPARQL query language. > > + support for a subset of SPARQL protocol. > > + multiple bug fixes. > > > > RAP's new SPARQL package allows you to execute SPARQL queries = against > RDF > > graphs and RDF datasets which may be stored in memory or in a = relational > > database. We have also included SPARQL as additional query language = into > > RAP's NetAPI RDF server, which allows you to query remote RDF > repositories > > using W3C SPARQL protocol. > > > > An introduction into the usage of RAP's SPARQL features is given in: > > http://www.wiwiss.fu- > berlin.de/suhl/bizer/rdfapi/tutorial/usingtheSparqlEngi > > ne.htm > > > > More information about RAP is found at: > > http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/ > > > > Lots of thanks to > > + Tobias Gauss for implementing SPARQL engine. > > + Daniel Westphal for implementing the RDF dataset API. > > + all users of RAP for their bug reports and bug fixes. > > > > Cheers, > > > > Chris Bizer > > > > >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD = SPLUNK! > http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest |
From: Ghislain <ghi...@lo...> - 2006-01-16 20:56:22
|
Hi thanks for this new version. In few places, you use reference when calling function or method (for instance l420 in DatasetDb.php This produces warning on some php version. Ghislain Chris Bizer wrote: > Hi all, > > we have released RAP - RDF API for PHP V0.93 today. > > The new version includes: > > + support for the SPARQL query language. > + support for a subset of SPARQL protocol. > + multiple bug fixes. > > RAP's new SPARQL package allows you to execute SPARQL queries against RDF > graphs and RDF datasets which may be stored in memory or in a relational > database. We have also included SPARQL as additional query language into > RAP's NetAPI RDF server, which allows you to query remote RDF repositories > using W3C SPARQL protocol. > > An introduction into the usage of RAP's SPARQL features is given in: > http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/tutorial/usingtheSparqlEngi > ne.htm > > More information about RAP is found at: > http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/ > > Lots of thanks to > + Tobias Gauss for implementing SPARQL engine. > + Daniel Westphal for implementing the RDF dataset API. > + all users of RAP for their bug reports and bug fixes. > > Cheers, > > Chris Bizer > > |
From: Chris B. <bi...@ze...> - 2006-01-16 09:54:21
|
Hi all, we have released RAP - RDF API for PHP V0.93 today. The new version includes: + support for the SPARQL query language. + support for a subset of SPARQL protocol. + multiple bug fixes. RAP's new SPARQL package allows you to execute SPARQL queries against = RDF graphs and RDF datasets which may be stored in memory or in a relational database. We have also included SPARQL as additional query language into RAP's NetAPI RDF server, which allows you to query remote RDF = repositories using W3C SPARQL protocol. An introduction into the usage of RAP's SPARQL features is given in: http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/tutorial/usingtheSparqlE= ngi ne.htm More information about RAP is found at: http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/ Lots of thanks to=20 + Tobias Gauss for implementing SPARQL engine. + Daniel Westphal for implementing the RDF dataset API. + all users of RAP for their bug reports and bug fixes. Cheers, Chris Bizer --=20 Chris Bizer Freie Universit=E4t Berlin Phone: +49 30 838 54057 Mail: ch...@bi... Web: www.bizer.de |
From: Alexandre P. <al...@pa...> - 2006-01-13 20:13:19
|
Hi all, While parsing an RDF file, the RdfParser die() if it cannot open the file. (see syntax/RdfParser.php, line 2262) So, when using RDF-API to parse a set of files, it makes my app stops if one file cannot be found, while I'd just like it to go one step further. In this case, maybe it would be better to throw an exception instead of die() ? Then, the piece of code using RD-FAPI will use a try / catch when loading the model, so that it doesn't stop if a file is not available. Parser: $input =3D @fopen($base,'r'); if(!$input) throw new Exception("RDF Parser: Could not open File: $base. Stopped parsing."); then, in app: try { $model->load($uri); } catch (Exception e) { echo $e; } BTW, there's also a strange encoding bug with PHP5. Accentuated chars are not clearly recognized when parsing a file, even when specified the encoding. But it works fine if I don't use str2unicode_nfc() function anymore. I saw that in PHP5, the encoding is automatically detected, maybe that could be a cause. (see http://php.net/xml_parser_create_ns) Regards, Alex. |
From: Richard C. <ri...@cy...> - 2005-12-08 22:56:11
|
Hi Raffaele, On 5 Dec 2005, at 18:20, ele...@li... wrote: > Hi, I'm an italian student of University of Perugia, I'm working to =20= > thesis project about learning management system based on RAP. > I use MemModel to store data into RDF files, but I have a trouble, =20 > how could I integrate and use OWL ontology with RAP? That's hard to say. Depends on what you're trying to achieve. RAP can do two things with OWL. There's the ontology API, which lets =20 you load an OWL file and gives you access to the classes and =20 properties and instances in the ontology. There's a tutorial in the =20 documentation. The interesting PHP class is OntModel. And RAP has two inference engines (forward and backward chaining) =20 that support a (smallish) subset of OWL. The PHP classes are =20 InfModelF and InfModelB. ModelFactory has some factory methods for all of these. > Thanks > > Raffaele Richard > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through =20 > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD =20 > SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id=16865&op=3Dclick > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |
From: Chris B. <bi...@ze...> - 2005-12-07 09:15:40
|
As resModel is an abstraction layer above memModel it is of course a bit slower. Daniel Westphal did some benchmarks when he implemented resModel. I = think his test showed, that resModel is only about 10% slower than memModel = (which surprised me). Daniel, so you still have the exact figures somewhere? Chris --=20 Chris Bizer Freie Universit=E4t Berlin Phone: +49 30 838 54057 Mail: ch...@bi... Web: www.bizer.de > -----Urspr=FCngliche Nachricht----- > Von: rdf...@li... = [mailto:rdfapi-php- > int...@li...] Im Auftrag von Ghislain > Gesendet: Dienstag, 6. Dezember 2005 23:28 > An: rdf...@li... > Betreff: [Rdfapi-php-interest] rdfapi performance >=20 >=20 > Hi, >=20 > I'm going to implement a quite demanding application using rdfapi. I > looked around and it seems the most comprehensive api in PHP. Congrat! >=20 > However, I'm a lit bit concerned about the performance. For instance, > the ResModel is a very convenient interface but looking at the code, I > realize the overhead may be important with numerous "new" and > "resNode2Node" calls. Does somebody know about rdfapi performance, > especially ResModel versus MemModel ? >=20 > Cheers, Ghislain. >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD = SPLUNK! > http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest |
From: Ghislain <ghi...@lo...> - 2005-12-06 22:28:22
|
Hi, I'm going to implement a quite demanding application using rdfapi. I looked around and it seems the most comprehensive api in PHP. Congrat! However, I'm a lit bit concerned about the performance. For instance, the ResModel is a very convenient interface but looking at the code, I realize the overhead may be important with numerous "new" and "resNode2Node" calls. Does somebody know about rdfapi performance, especially ResModel versus MemModel ? Cheers, Ghislain. |
From: elessedil\@libero\.it <ele...@li...> - 2005-12-05 17:20:34
|
Hi, I'm an italian student of University of Perugia, I'm working to thesi= s project about learning management system based on RAP. I use MemModel to store data into RDF files, but I have a trouble, how co= uld I integrate and use OWL ontology with RAP? Thanks Raffaele |
From: Chris B. <bi...@ze...> - 2005-11-17 11:00:57
|
Hi, > > I've been playing with RAP recently, and would like to congratulate > you on your efforts. > I've finally spent a couple of hours getting my toy code to use the > DB backend, and this seems to be working nicely so far. > > One thing I did struggle with was the code to get an OntModel from > the DB. Could you tell me whether the below is appropriate: > > $dbURI = "http://www.etc..."; > $mysql_database = ModelFactory::getDbStore('MySQL', 'localhost', > etc...'); > $memModel = $mysql_database->getModel($dbURI); > $ontModel = $memModel->getOntModel(RDFS_VOCABULARY); > Looks fine to me. > This worked to a certain extent, but I was getting an error when > trying to listClasses on the ontModel: > PHP Fatal error: Call to a member function TYPE() on a non-object > in /Users/drummond/Sites/rdfapi-php/api/ontModel/OntModel.php on line > 127 > > So I had a look and fixed the method below, which now works fine - > the getResModel() probably needs the same fix. > > function & getOntModel($vocabulary) > { > require_once( RDFAPI_INCLUDE_DIR . PACKAGE_ONTMODEL); > require_once(RDFAPI_INCLUDE_DIR.'ontModel/'.$vocabulary); > $vocab = new RdfsVocabulary(); > return new OntModel(& $this, $vocab); > } > Thanks for the bug fix. Tobias, could you please submit this fix to the repository. > Also, I keep vaguely aware of development of other APIs and > understand pOWL builds on top of RAP. Does this mean that OWL support > is likely to stay out of RAP itself? > No, RAP's reasoning and ontology features were implemented by Daniel Westphal as part of his diploma thesis which is finished now. So if somebody wants to build on his work and extend RAP further towards OWL, he is highly welcome to do so and we will incorporate the code into the next release. Chris > Thanks for your time. > > Nick > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest |
From: Nick D. <ni...@is...> - 2005-11-16 00:30:35
|
Hi, I've been playing with RAP recently, and would like to congratulate you on your efforts. I've finally spent a couple of hours getting my toy code to use the DB backend, and this seems to be working nicely so far. One thing I did struggle with was the code to get an OntModel from the DB. Could you tell me whether the below is appropriate: $dbURI = "http://www.etc..."; $mysql_database = ModelFactory::getDbStore('MySQL', 'localhost', etc...'); $memModel = $mysql_database->getModel($dbURI); $ontModel = $memModel->getOntModel(RDFS_VOCABULARY); This worked to a certain extent, but I was getting an error when trying to listClasses on the ontModel: PHP Fatal error: Call to a member function TYPE() on a non-object in /Users/drummond/Sites/rdfapi-php/api/ontModel/OntModel.php on line 127 So I had a look and fixed the method below, which now works fine - the getResModel() probably needs the same fix. function & getOntModel($vocabulary) { require_once( RDFAPI_INCLUDE_DIR . PACKAGE_ONTMODEL); require_once(RDFAPI_INCLUDE_DIR.'ontModel/'.$vocabulary); $vocab = new RdfsVocabulary(); return new OntModel(& $this, $vocab); } Also, I keep vaguely aware of development of other APIs and understand pOWL builds on top of RAP. Does this mean that OWL support is likely to stay out of RAP itself? Thanks for your time. Nick |
From: Chris B. <bi...@ze...> - 2005-11-09 13:35:18
|
Hi Evan, what you are saying makes total sence. There were no clearly defined = subsets of N3 when we implemented the first version of the = parser/serializer. As there is Turtle now and the parser (hopefully) = does Turtle, we should rename it.=20 It would be great if you could make the parser pass the Turtle = conformance tests. Contributions there and also better error handling = are highly welcome. Cheers from ISWC in Ireland, Chris =20 ----- Original Message -----=20 From: Evan Prodromou=20 To: RAP Interest=20 Sent: Tuesday, November 08, 2005 8:11 PM Subject: [Rdfapi-php-interest] N3Parser -> TurtleParser? So, I really like the N3Parser used by RAP. I'm wondering, though: = since the parser handles just about the same subset of Notation3 that's = implemented in Turtle (http://www.dajobe.org/2004/01/turtle/ ), I wonder = if it wouldn't make sense to revise the parser to parse Turtle = correctly. Turtle was designed to be Notation3 with all the bits that aren't = really RDF left out; since this seems to be the point of the N3 parser = in RAP, it should be a good fit. Using a "real" spec (as much as Turtle = is a real spec) would be fairer to users, since they'd have a good idea = what will and won't work with the library. In short: I'd like to hack on the N3Parser and N3Serializer such that = they parse and produce correct Turtle. In particular, I'd like to make = sure that the parser can handle the conformance test cases for Turtle = (http://www.dajobe.org/2004/01/turtle/#sec-conformance ). I'd also = rename them to TurtleParser and TurtleSerializer and make the N3 classes = deprecated compatibility classes. And I'd add the conformance tests as = unit tests. Any feelings on the issue? If I make a patch and it's righteous, can = it go in? ~ESP --=20 Evan Prodromou <eva...@us...> =20 |
From: Evan P. <eva...@us...> - 2005-11-08 19:11:33
|
So, I really like the N3Parser used by RAP. I'm wondering, though: since the parser handles just about the same subset of Notation3 that's implemented in Turtle (http://www.dajobe.org/2004/01/turtle/ ), I wonder if it wouldn't make sense to revise the parser to parse Turtle correctly. Turtle was designed to be Notation3 with all the bits that aren't really RDF left out; since this seems to be the point of the N3 parser in RAP, it should be a good fit. Using a "real" spec (as much as Turtle is a real spec) would be fairer to users, since they'd have a good idea what will and won't work with the library. In short: I'd like to hack on the N3Parser and N3Serializer such that they parse and produce correct Turtle. In particular, I'd like to make sure that the parser can handle the conformance test cases for Turtle (http://www.dajobe.org/2004/01/turtle/#sec-conformance ). I'd also rename them to TurtleParser and TurtleSerializer and make the N3 classes deprecated compatibility classes. And I'd add the conformance tests as unit tests. Any feelings on the issue? If I make a patch and it's righteous, can it go in? ~ESP -- Evan Prodromou <eva...@us...> |
From: Evan P. <eva...@us...> - 2005-11-08 19:01:07
|
I've been using the N3Parser for a project, and I've found it really hard to use for arbitrary input. For most syntax errors, it uses die() to exit quickly. I've replaced the calls to die() such that syntax errors cause the high-level interface to return false for incorrect syntax. The parser's parseError member is set to true, and I've added an errors member to hold errors. (Theoretically the parser could recover from some errors, so this is an array.) I also changed the unit test so it checks for a false return value rather than looking for error output. Probably the better way to handle this all is with exceptions; I think that should probably wait until PHP 5 has more penetration, though. Especially since I don't use PHP 5 yet! Patch attached. I'd be happy to revise and re-submit based on feedback. ~Evan -- Evan Prodromou <eva...@us...> |
From: Ghislain <ghi...@lo...> - 2005-11-08 17:21:59
|
Hi, Why findAsIteterator does not exist for DbModel ? Is it planed for next versions or not ? Cheers, Ghislain ian...@dt... wrote: > hi, > > I've created an infModelF adding any rdf files and the owl file. > Now I've all the inferred statement, but I don't understant a thing: > > in the owl, for 2 property I've declared the transitiveproperty (P) rdf:type. > Now I want that when I do a query using P, the model return (x,z) where exist > P(x,y) and P(y,z). But does not append. > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |
From: Richard C. <ri...@cy...> - 2005-10-22 09:38:43
|
You're right, Alex. Good catch! Cheers, Richard On 21 Oct 2005, at 23:43, Alexandre Passant wrote: > Hi, > > I think there are mistakes in some namespaces definition (file > constants.php). > > define('FOAF_NS', 'http://xmlns.com/foaf/0.1/#'); define('RSS_NS', > 'http://purl.org/rss/1.0/#'); > > should be replaced by > > define('FOAF_NS', 'http://xmlns.com/foaf/0.1/'); define('RSS_NS', > 'http://purl.org/rss/1.0/'); > > Cheers > > Alex. |
From: Alexandre P. <al...@pa...> - 2005-10-21 21:44:06
|
Hi, I think there are mistakes in some namespaces definition (file constants.ph= p ). define('FOAF_NS', 'http://xmlns.com/foaf/0.1/#'); define('RSS_NS', ' http://purl.org/rss/1.0/#'); should be replaced by define('FOAF_NS', 'http://xmlns.com/foaf/0.1/'); define('RSS_NS', ' http://purl.org/rss/1.0/'); Cheers Alex. |