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: Richard C. <ri...@cy...> - 2005-10-16 14:44:42
|
Hi Claudio, It's hard to say without knowing your code or your data/ontology. Can you construct a minimal, runnable code & data example that shows the problem? That is, tell us what you expected the output to be, and what the actual output was. Cheers, Richard On 16 Oct 2005, at 15:59, 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: <ian...@dt...> - 2005-10-16 14:00:05
|
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. |
From: Gunnar G. <ggr...@cs...> - 2005-10-11 11:24:40
|
I have previously posted a Java-file to this list, that will take load a RDF/XML file into a Rap format DB. It uses Jena. Search the sourceforge archives and you'll find it. Another option is setting the "stream" parameter of Model::Load to True, and also using hte commandline PHP, not the mod_php one... Good luck! - Gunnar Richard Cyganiak wrote: > > On 11 Oct 2005, at 12:30, Claudio Iannotta wrote: > >> hi >> >> I need to charge a big rdf file into a model. How can I do it? (file >> dimension >200MB) > > Use a database model, give lots of RAM and CPU time to the script. I'm > not sure if RAP plays well with this amount of data. It certainly will > be very slow. > > Richard > >> >> tnx >> >> >> ------------------------------------------------------- >> 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 >> >> > > > > ------------------------------------------------------- > 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-11 10:39:52
|
On 11 Oct 2005, at 12:30, Claudio Iannotta wrote: > hi > > I need to charge a big rdf file into a model. How can I do it? > (file dimension >200MB) Use a database model, give lots of RAM and CPU time to the script. I'm not sure if RAP plays well with this amount of data. It certainly will be very slow. Richard > > tnx > > > ------------------------------------------------------- > 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: Claudio I. <ian...@dt...> - 2005-10-11 10:30:36
|
hi I need to charge a big rdf file into a model. How can I do it? (file dimension >200MB) tnx |
From: Gunnar G. <ggr...@cs...> - 2005-09-27 13:56:07
|
As the attached file shows, there is something strange going on with generation of BlankNodes when combining two models... The code in Model::_addStatementFromAnotherModel correctly identifies colliding nodes, but then generates new node IDs that also collide... :( I've fixed this with a global variable keeping track of BNodeIDs, which can be used in Model::getUniqueResourceURI, and RDFParser::_generate_anonymous_uri ... It's not very pretty, but it works, and I can add it to CVS if people want... - Gunnar |
From: Saf H. <saf...@gm...> - 2005-09-23 09:50:50
|
Hi, Example: Website owner is offering a special deal on a selection of shoes and users have to purchase between 3 and 5 pairs of shoes from a specific set of 8 types of shoe in order to qualify. How can I enforce things like max/min cardinality such that users cannot generate a memmodel containing 6 pairs of shoes, for example? All ideas welcome. Thanks. |
From: Richard C. <ri...@cy...> - 2005-09-20 18:33:46
|
Hi, There's a bug in Statement::reify. According to the Statement documentation, you can pass a blank node to the function. Test script: <?php define("RDFAPI_INCLUDE_DIR", "./rdfapi-php/api/"); include(RDFAPI_INCLUDE_DIR . "RdfAPI.php"); $a = new Resource("http://example.org/a"); $b = new Resource("http://example.org/b"); $c = new Resource("http://example.org/c"); $statement = new Statement($a, $b, $c); $model = ModelFactory::getDefaultModel(); $blank = new BlankNode($model); $reification_quad = $statement->reify($blank); echo $reification_quad->writeRdfToString(); ?> This throws a bunch of warnings and then produces this output: <rdf:RDF (snip namespaces) <rdf:Statement rdf:nodeID="Object"> <rdf:subject rdf:resource="http://example.org/a"/> <rdf:predicate rdf:resource="http://example.org/b"/> <rdf:object rdf:resource="http://example.org/c"/> </rdf:Statement> Note the rdf:nodeID="Object". It should say something like bNode1. The fix is easy. Quote from the body of Statement::reify: function & reify(&$model_or_bNodeID) { if (is_a($model_or_bNodeID, 'MemModel')) { // parameter is model $statementModel = new MemModel($model_or_bNodeID- >getBaseURI()); $thisStatement = new BlankNode($model_or_bNodeID); } else { // parameter is bNodeID $statementModel = new MemModel(); $thisStatement = new BlankNode($model_or_bNodeID); } Note the last line: $model_or_bNodeID contains a blank node, but we create a new blank node anyway, with the blank node as argument! The line should read: $thisStatement = &$model_or_bNodeID; (It's line 271 of /api/model/Statement.php) Related issue: I don't see a reason why the method is restricted to blank node arguments. Passing a URI should also be allowed. There's actually nothing in the code to make it specific to blank nodes. Passing a URI should work just fine. I suggest the method documentation and variable names be updated to also allow blank nodes. Cheers, Richard |
From: Richard C. <ri...@cy...> - 2005-09-20 18:22:30
|
Hi Saf, Sorry for the long delay. On 16 Sep 2005, at 13:10, Saf Hulou wrote: > The last point - rap won't let me create a reified statement from a > uri is precisely my problem. Ah, I see. It's a RAP limitation. > It seems that I will have to create the blank node and create a label > for the blank node, as you suggest. This is a bit wierd though. > How do I pass a blank node id or a model to a reify function? When you pass a blank node, then that blank node will simply be used as the subject of the four reification statements. To create a blank node, do "$blank = new BlankNode($model)". What happens when you pass a model is this: RAP creates a new blank node, which becomes the representation of the reified statement. The model is needed only because of the way RAP creates blank nodes. RAP uses the model to make sure that the blank node is unique (within that model). Don't you have a model anyway where your statements are stored? You just can use that model as the argument to $statement->reify. You don't have to create a new model. > Isn't it a bit meaningless to create a blank node or model before I've > reified the statement? Are they simply placeholders? As I said, you don't have to create the blank node yourself. The reify method can create it for you. However, you have to pass in some model because RAP needs one to create unique blank nodes. Don't pass a new model every time, but re-use the model you're working with anyway. > I think I'm misunderstanding something here.... Sorry about that. RAP's reification support is a bit strange and doesn't seem to be used very much. I think what you probably want to do is this: $new_blank_node = $model->reify_statement($statement) This would create a new blank node and it would add the four reification statements to $model. In RAP you have to do this to get the same effect: $new_blank_node = new BlankNode($model) $reification_quad = $statement->reify($new_blank_node) $model->addModel($reification_quad) (But this doesn't work currently because of a bug, I'll send a separate mail about that.) Hope that helps. Richard > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > |
From: Saf H. <saf...@gm...> - 2005-09-16 11:10:36
|
Hi Richard, Thank you for your reply. The last point - rap won't let me create a reified statement from a uri is precisely my problem. Sorry about the confusion with 'Matilda'. I used the string because I couldn't see the difference (as far as RDF is concerned) between 'Matilda' and ' http://www.my_statements.com/matilda'. It seems that I will have to create the blank node and create a label for the blank node, as you suggest. This is a bit wierd though. How do I pass a blank node id or a model to a reify function?=20 Isn't it a bit meaningless to create a blank node or model before I've reified the statement? Are they simply placeholders? I think I'm misunderstanding something here.... |
From: Richard C. <ri...@cy...> - 2005-09-15 19:45:34
|
Hi Saf, On 15 Sep 2005, at 11:07, Saf Hulou wrote: > Hi, > > New to RDF and PHP Welcome! > so this may be a simple syntax issue: > > Having consulted the tutorials and class details for statements, I'm > still unclear as to how to set the label of a statement. I don't want > to use the system-generated numbers e.g. by reifying a whole model - I > just want to give my statements names of my choice. Okay. If you reify a statement, you say that a *resource* represents the statement. Let me repeat: A reified statement is not a "label" for a statement, it's a resource representing the statement. So it can be a URI or a blank node, but not a simple string. > e.g. > <a><b><c> reify as: 'Matilda' > results in: > <Matilda><type><statement> > <Matilda><subj><a> > <Matilda><pred><b> > <Matilda><obj><c> 'Matilda' is a string. A reified statement can be a URI or a blank node, but not a string. > I keep getting an error message regarding not being able to pass > parameter 1 e.g. 'Matilda' whenever I use > $statement_x->reify("Matilda"); You have to pass a model or a blank node. Passing a string doesn't work. > Please could someone provide a worked example? > > I'm assuming 'Matilda' will be regarded as both a uri and url for this > statement resource, like any other type of resource. Is this true? You really have to be more clear about the difference between URIs and simple strings. If you want to assign a simple string as a label to a reified statement, you can create an RDF graph like this: _:blank rdf:type rdf:Statement . _:blank rdf:subject :a . _:blank rdf:predicate :b . _:blank rdf:object :c . _:blank rdfs:label "Matilda" . (This is Turtle syntax) _:blank is the blank node representing the statement. All the other things with ":" in them are URIs (abbreviated as QNames). The rdfs:label triple assigns a label to the reified statement. That said, the reification support in RAP is clunky. Apparently there's no way to create a reified statement from a URI, you have to use a blank node. That's a limitation of RAP; RDF allows it. I probably caused more confusion than clarity with this response. Sorry about that! All the best, Richard > > Thanks > > Saf > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > |
From: Saf H. <saf...@gm...> - 2005-09-15 09:08:15
|
Hi, New to RDF and PHP so this may be a simple syntax issue: Having consulted the tutorials and class details for statements, I'm still unclear as to how to set the label of a statement. I don't want to use the system-generated numbers e.g. by reifying a whole model - I just want to give my statements names of my choice. e.g. <a><b><c> reify as: 'Matilda' results in: <Matilda><type><statement> <Matilda><subj><a> <Matilda><pred><b> <Matilda><obj><c> I keep getting an error message regarding not being able to pass parameter 1 e.g. 'Matilda' whenever I use $statement_x->reify("Matilda"); Please could someone provide a worked example? I'm assuming 'Matilda' will be regarded as both a uri and url for this statement resource, like any other type of resource. Is this true? Thanks Saf |
From: Jonathan H. <hen...@ya...> - 2005-09-08 15:04:07
|
I was going to submit this at slashdot, didn't see where to do that. I guess the unit test missed this one? in ResModel.php - "$value" is never saved - "$label" is never instantiated. function createTypedLiteral($value,$dtype) { $resLiteral = new ResLiteral($label); //<---- bad $resLiteral->setDatatype($dtype); $resLiteral->setAssociatedModel($this); return $resLiteral; } |
From: Jonathan H. <hen...@ya...> - 2005-09-08 13:17:33
|
I have had trouble like that too. Seems like it should just work. But, something like this seems to work for me: $mem_model = new MemModel(MODEL_URI); $mem_model->addModel($infmodel->getModel()); I take the inf model and pass it to a new, general mem model using getModel. Lars Weber wrote: >Greetings all, > >playing around with RAP (V0.9.2) I try to merge two models read from >different files. If I do this with with addModel() on Models created by >getMemModel() everything seems to work as expected. However, the code >below, where I create the models with getOntModel(), gives the following >error: > > Fatal error: RDFAPI error (class: Statement; method: new): > Resource expected as subject. > in /usr/local/include/rdfapi-php/api/model/Statement.php on line > 61 > >Here is the code: > > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <title>Event-Overview</title> > </head> > <body> > <?php > define ("RDFAPI_INCLUDE_DIR", > "/usr/local/include/rdfapi-php/api/"); > include (RDFAPI_INCLUDE_DIR . "RdfAPI.php"); > > $ZInfoOntologyModel = > ModelFactory::getOntModel(INFMODELF,RDFS_VOCABULARY); > $ZInfoOntologyModel->load ("../schemas/zinfo.rdf"); > > $ZInfoModel = > ModelFactory::getOntModel(INFMODELF,RDFS_VOCABULARY); > $ZInfoModel->load ("zinfo.rdf"); > > $ZInfoModel->addModel ($ZInfoOntologyModel); > > echo $ZInfoModel->writeAsHTMLTable(); > ?> > </body> > </html> > >Since getOntModel() is supoosed to be returning a MemModel as well, >shouldn't I just be able to exchange one for the other? Am i missing >something? > >Thanks for any help! > >Regards, >Lars > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Rdfapi-php-interest mailing list >Rdf...@li... >https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > > |
From: Lars W. <la...@di...> - 2005-09-07 13:23:05
|
Greetings all, playing around with RAP (V0.9.2) I try to merge two models read from different files. If I do this with with addModel() on Models created by getMemModel() everything seems to work as expected. However, the code below, where I create the models with getOntModel(), gives the following error: Fatal error: RDFAPI error (class: Statement; method: new): Resource expected as subject. in /usr/local/include/rdfapi-php/api/model/Statement.php on line 61 Here is the code: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Event-Overview</title> </head> <body> <?php define ("RDFAPI_INCLUDE_DIR", "/usr/local/include/rdfapi-php/api/"); include (RDFAPI_INCLUDE_DIR . "RdfAPI.php"); $ZInfoOntologyModel = ModelFactory::getOntModel(INFMODELF,RDFS_VOCABULARY); $ZInfoOntologyModel->load ("../schemas/zinfo.rdf"); $ZInfoModel = ModelFactory::getOntModel(INFMODELF,RDFS_VOCABULARY); $ZInfoModel->load ("zinfo.rdf"); $ZInfoModel->addModel ($ZInfoOntologyModel); echo $ZInfoModel->writeAsHTMLTable(); ?> </body> </html> Since getOntModel() is supoosed to be returning a MemModel as well, shouldn't I just be able to exchange one for the other? Am i missing something? Thanks for any help! Regards, Lars |
From: Chris B. <bi...@ze...> - 2005-07-08 09:48:52
|
Hi all, we have just released RAP - RDF API for PHP V0.9.2. The new release contains - beside of multiple bug fixes - two new = modules: 1. Graph Visualization Modul http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/tutorial/visualization_t= uto rial.htm 2. RDF Dataset API including support for Named Graphs and the TriX = syntax http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/tutorial/usingNamedGraph= s.h tm Lots of thanks to + Anton K=F6stlbacher for contributing the visualization modul + Daniel Westphal for implementing the RDF dataset API and + Tobias Gauss for writing test cases for the dataset API and for = putting the release together. More information about RAP and the new release is found at http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/ Future plans: There is ongoing work on implementing SPARQL and Fresnel = for RAP and we are hoping to be able to include both in the next release. Cheers Chris --=20 Chris Bizer Freie Universit=E4t Berlin Phone: +49 30 838 54057 Mail: ch...@bi... Web: www.bizer.de |
From: Chris B. <bi...@ze...> - 2005-06-24 09:21:56
|
Hi Josef, the problem with moving the main code base to PHP 5 is that we would = loose backward compatibility with PHP 4. So before doing this step we really = have to consider the pros/cons. RAP could gain from PHP 5: - better integration of the iterators with the core PHP language = constructs, by replacing all "costom" interators with iterators with implement the = PHP 5 iterator interface. - better error handling using the PHP 5 exceptions instead of our = current home grown error handling. =20 - speed improvements on database backed models by moving from ADO DB to = PDO (PHP Data Objects). - maybe speed improvements by using PHP 5 new object features (???) I think that RAP would only gain from the changes if they were applied consistently over the whole code base, which would mean quite some work = and would require lots of testing/additional test cases afterwards.=20 I think it would be great to have a PHP 5 version of RAP, but the one = who touches this topic has to be aware of the amount of work a clean port = would require. Chris --=20 Chris Bizer Freie Universit=E4t Berlin Phone: +49 30 838 54057 Mail: ch...@bi... Web: www.bizer.de > -----Urspr=FCngliche Nachricht----- > Von: Josef Petr=E1k [mailto:jsp...@gm...] > Gesendet: Freitag, 24. Juni 2005 10:51 > An: Chris Bizer > Betreff: Re: [Rdfapi-php-interest] re:[rdfapi-php - Help] RE: RAP with > PHP5 >=20 > Well, >=20 > primarily I was thinking about some clean-ups or rewriting existing > code into PHP5. E.g. I was working with current common vocabularies > and rewrited them into pure PHP5 (using constant for NS, static > functions ...). I also saw somewhere into list request to rewrite the > model into PHP5. >=20 > It doesn't matter ... >=20 > Iterators, Exception what exacly you need and how they should look > like or what everything is necessary to do. Tell me more. >=20 > Best regards >=20 > Josef >=20 > On 6/24/05, Chris Bizer <bi...@ze...> wrote: > > > > > My question is: "Do you need some help in rewriting RAP into = PHP5?" > > > > Any help is always appreciated. What where you concretely thinking = to > do? > > Iterators and Exeptions would be great topics .... > > > > Cheers, > > > > Chris > > > > -- > > Chris Bizer > > Freie Universit=E4t Berlin > > Phone: +49 30 838 54057 > > Mail: ch...@bi... > > Web: www.bizer.de > > > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux Migration = Strategies > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > informative Webcasts and more! Get everything you need to get up to > > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id=16492&opclick > > _______________________________________________ > > Rdfapi-php-interest mailing list > > Rdf...@li... > > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > >=20 >=20 > -- > *** jspetrak (HW) *** >=20 > Weblog: http://zapisky.info/ > Homepage: http://zapisky.info/home/ >=20 > ICQ: 179271149 > Jabber: Imp...@nj... |
From: Chris B. <bi...@ze...> - 2005-06-24 08:30:17
|
> My question is: "Do you need some help in rewriting RAP into PHP5?" Any help is always appreciated. What where you concretely thinking to = do? Iterators and Exeptions would be great topics .... Cheers, Chris --=20 Chris Bizer Freie Universit=E4t Berlin Phone: +49 30 838 54057 Mail: ch...@bi... Web: www.bizer.de |
From: Ahmad <al...@gm...> - 2005-06-07 16:11:51
|
Greetings, ModelFactory::getResModel($modelType, $baseURI =3D null) calls ModelFactory::getDbModel($baseURI) which is defined as &getDbModel($dbStore, $baseURI =3D null), and which has no code for falling back to a default DbStore when none is provided. The result is: Fatal error: Call to a member function modelExists() on a non-object in \rdfapi-php\api\model\ModelFactory.php on line 86 This could be fixed in a number of ways including having getResModel() call getDefaultDbModel() inplace of getDbModel(). I would like to know your preferences. Regards, Ahmad |
From: Seaborne, A. <and...@hp...> - 2005-06-03 16:03:07
|
-------- Original Message -------- > From: Rod Petrovic <> > Date: 3 June 2005 00:37 >=20 > Hi all, >=20 > I am using an RDQL query to return all instances of a class, with > corresponding property values.=20 >=20 > Example: >=20 > --- >=20 > SELECT * >=20 > WHERE (?x,<tst:clientName>,?a) > (?x,<tst:clientEmail>,?b) > (?x,<tst:clientTelephone>,?c) > (?x,<rdf:type>,<tst:Client>) >=20 > USING tst for <http://sw.intera.si/testont#> > rdf for > <http://www.w3.org/1999/02/22-rdf-syntax-ns#> >=20 > --- >=20 > Now, the problem occurs when some instances don't have some property > value defined. Only instances that have all three property values > defined will be returned. =20 >=20 > Is it possible to return all instances of a class and (e.g.) get null > values for property values they don't have defined?=20 RDQL is an exact match so, in one query, you can't. If you have no control over the data, you'll need to issue several queries for each of the parts that may or may not be present. (off topic alert!) This was one of the first requirements for SPARQL - the RDF query language being worked on in a W3C working group. There is the OPTIONAL operator: Something like: PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX tst: <http://sw.intera.si/testont#> SELECT * {=20 ?x rdf:type tst:Client=20 OPTIONAL { ?x tst:clientName ?a } OPTIONAL { ?x tst:clientEmail ?b } OPTIONAL { ?x tst:clientTelephone ?c } } If any of the properties are required by your data model, then drop the "optional". Andy >=20 > I guess you could say that I'm looking for an RDQL query that does the > same as "SELECT * FROM table" in SQL.=20 >=20 > Thank you for your time. >=20 > ---------- > Rod Petrovic >=20 > ro...@ro... > www.rodpetrovic.com > +381 65 317 317 3 >=20 >=20 >=20 > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.322 / Virus Database: 267.4.1 - Release Date: 2.6.2005 >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit > http://developer.yahoo.net/?fr=3Doffad-ysdn-ostg-q22005 > _______________________________________________=20 > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest |
From: Rod P. <ro...@ro...> - 2005-06-02 23:37:24
|
Hi all, I am using an RDQL query to return all instances of a class, with corresponding property values. Example: --- SELECT * WHERE (?x,<tst:clientName>,?a) (?x,<tst:clientEmail>,?b) (?x,<tst:clientTelephone>,?c) (?x,<rdf:type>,<tst:Client>) USING tst for <http://sw.intera.si/testont#> rdf for <http://www.w3.org/1999/02/22-rdf-syntax-ns#> --- Now, the problem occurs when some instances don't have some property value defined. Only instances that have all three property values defined will be returned. Is it possible to return all instances of a class and (e.g.) get null values for property values they don't have defined? I guess you could say that I'm looking for an RDQL query that does the same as "SELECT * FROM table" in SQL. Thank you for your time. ---------- Rod Petrovic ro...@ro... www.rodpetrovic.com +381 65 317 317 3 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 267.4.1 - Release Date: 2.6.2005 |
From: Richard C. <ri...@cy...> - 2005-05-31 21:24:30
|
Hi Christian, Am 30.05.2005 um 22:21 schrieb Christian Boulanger (Bibliograph Development): >>> There is saveAs() to save it to a file, writeAsHtml() to get it >>> hmtlentitized, and writeAsHtmlTable to have a table. What if I >>> only need the XML string to output it later with header("Content- >>> Type: text/xml")? Did I miss something here? >> >> $model->writeRdfToString() might do what you want. > > In the documentation, it says that $model->writeRdfToString() > "Writes the RDF serialization of the MemModel as HTML table". Hm. Looks like a copy & paste error in the documentation. It's the same in various other Model subclasses. > I have tried it but got a "method not defined" error on a ResModel. > Have to try again. There's a bug in the ResModel implementation of writeRdfToString(): $this->model-writeRdfToString(); That should read: $this->model->writeRdfToString(); I guess you could just fix it in your local copy of RAP, the file is ResModel.php in the /api/resModel directory. >> Note that RDF/XML has its own MIME type, application/rdf+xml, and >> using that is usually more appropriate than text/xml. >> > Thanks for the hint- the problem is that I want to load the RDF > into Mozilla widgets, and - at least according to the Mozilla > manual, the correct mimetype is not yet accepted. Ah, OK. Best, Richard > > Best. > > Christian > > |
From: Peter B. <pb...@xs...> - 2005-05-31 20:15:33
|
Hi, Another question: I'm loading a model from an RDF/XML file that contains blank nodes identified by rdf:nodeID="A...". On loading the file into a dbmodel I notice the blank nodes are being duplicated: for each set of triples using the nodeID A... I get a second set of triples using bNode... Eg. if my file contains <rdf:Description rdf:about="http://www.chi.knaw.nl/editor/annotationset"> <j.1:hasAnnotationTypes rdf:nodeID="A3"/> ... </rdf:Description> <rdf:Description rdf:nodeID="A3"> <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq"/> <rdf:_1 rdf:resource="..."/> </rdf:Description> I would expect there to be a triple: Resource("http://www.chi.knaw.nl/editor/annotationset") Resource("http://www.chi.knaw.nl/editor/hasAnnotationTypes") bNode("A3") but there is also: Resource("http://www.chi.knaw.nl/editor/annotationset") Resource("http://www.chi.knaw.nl/editor/hasAnnotationTypes") bNode("bNode4") Similarly, I would expect bNode("A3") Resource("http://www.w3.org/1999/02/22-rdf-syntax-ns#type") Resource("http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq") but there is also: bNode("bNode4") Resource("http://www.w3.org/1999/02/22-rdf-syntax-ns#type") Resource("http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq") etc. This makes my models larger than they need to be, and plays havoc with my queries. Anyone has a suggestion on why it should occur, and on how to avoid it? Thanks again, Peter |
From: Jonathan H. <hen...@ya...> - 2005-05-31 13:56:15
|
> Thank you for your reply and suggestions. I can get the 4000 triples to > load, it's just that I'm worried about the > 30 seconds it takes. Then those ini settings should take care of that. > What is the number of triples in your wordnet file and how long does it take > to load? Wordnet ends up being over 200,000 triples. |
From: Peter B. <pb...@xs...> - 2005-05-31 13:28:56
|
> 4000 triples seems pretty small to me. I have loaded Wordnet on several > occasions. > Thank you for your reply and suggestions. I can get the 4000 triples to load, it's just that I'm worried about the > 30 seconds it takes. What is the number of triples in your wordnet file and how long does it take to load? Peter |