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: Jonathan H. <hen...@ya...> - 2005-05-31 13:05:56
|
There are a couple parameters you can change that I know of in the php.ini file. Sorry, if I misunderstand your question. --- ;;;;;;;;;;;;;;;;;;; ; Resource Limits ; ;;;;;;;;;;;;;;;;;;; max_execution_time = 6000 ; Maximum execution time of each script, in seconds max_input_time = 600 ; Maximum amount of time each script may spend parsing request data memory_limit = 32M ; Maximum amount of memory a script may consume (8MB) --- Also depending on how the data is sent - you may also want to change: upload_max_filesize = 16M or post_max_size = 16M Setting in a script using ini_set() will not work, I think, but you may want to verify that. I also use PHPMyAdmin for some tasks, and it also has it's own execution times in the config file. 4000 triples seems pretty small to me. I have loaded Wordnet on several occasions. Hope this helps. Peter Boot wrote: > Hi all, > > I am loading a 4000 triple RDF file into a database model. I found out > about the stream parameter (thank you for the list archive), but still > I need to change the php 30 second max execution time parameter in > order to complete the process. I anticipate my files may get to be a > hundred times larger than this, so I expect some trouble. > > Can anyone give more information about database load execution times? > > Best regards, > Peter > > > > ------------------------------------------------------- > 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=offad-ysdn-ostg-q22005 > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |
From: Peter B. <pb...@xs...> - 2005-05-31 10:51:09
|
Hi all, I am loading a 4000 triple RDF file into a database model. I found out about the stream parameter (thank you for the list archive), but still I need to change the php 30 second max execution time parameter in order to complete the process. I anticipate my files may get to be a hundred times larger than this, so I expect some trouble. Can anyone give more information about database load execution times? Best regards, Peter |
From: Richard C. <ric...@hp...> - 2005-05-31 09:04:34
|
FYI: As someone pointed out on jena-dev, regular expressions are written like this in Jena's RDQL implementation: AND ?x =~ /regex/ In RAP's implementation, it would be (according to the tutorial): AND ?x =~ "/regex/" I don't think anything has to be done about it, but you should be aware of the issue. Richard -------- Forwarded Message -------- From: abelssoft <Ne...@ab...> Reply-To: jen...@ya... To: jen...@ya... Subject: [jena-dev] regular expressions in RDQL? Date: Fri, 27 May 2005 12:41:33 -0000 Hi guys, we wanted to use the ~~ or =~ in an RDQL for using regular expressions. Logically, I would assume that we need to write something like this: SELECT ?id WHERE (?x, <ns:id>, ?id) ... AND ?name ~~ "demoname" USING ns for <http://www.test.com/test#> However: In my Java-Implementation, Jena said that we should remove the quotes and so does your tutorial at http://jena.sourceforge.net/tutorial/RDQL/index.html However: In all other cases, Strings are used WITH quotes and if we remove the quotes then how do we use white spaces??? In the W3C-website at http://www.w3.org/Submission/RDQL/#prod25 it sais: STR_MATCH ::= '=~' | '~~' StringEqualityExpression ::= ...<STR_MATCH> PatternLiteral ... PatternLiteral ::= (nothing on the left side) :-( Furthermore, there is another API for rdql that uses quotes: http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/tutorial/rdql_tutorial.htm So what is correct? Best greetings, Sven Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/jena-dev/ <*> To unsubscribe from this group, send an email to: jen...@ya... <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ |
From: Richard C. <ri...@cy...> - 2005-05-30 09:15:53
|
Hi Christian, Am 28.05.2005 um 09:13 schrieb Christian Boulanger (Bibliograph Development): > another newbie question. How do I get raw XML from a model via a > method? What do you mean by the "raw XML" of a model? A model is just a bunch of statements. There are different formats for writing a model into a string. RDF/XML and N3 are the most popular, and there are others like NTriples and TriX. I guess you want the statements of your model in RDF/XML format? > 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. Note that RDF/XML has its own MIME type, application/rdf+xml, and using that is usually more appropriate than text/xml. Richard > > Thanks, > > Christian > > Christian Boulanger wrote: > > >> Hallo, >> >> I am new to RDFAPI-PHP but very impressed by the careful design >> and the >> good documentation. I am stuck with a problem, however, and >> thought you >> might be able to help me: >> >> I have a hierarchical folder structure in my database which I want to >> display in a Mozilla XUL Tree Widget that can natively use the RDF >> as a >> datasource. >> >> $db = $rdf->getNewModel($datasource); >> $dbRes = new ResModel($db); >> >> if I create a root sequence like so: >> >> $treeRootSeq = $dbRes->createSeq("urn:bibliograph:folder#root"); >> >> and programmatically add members of the sequence: >> >> $folderRes = >> $dbRes->createResource("urn:bibliograph:folder#(newFolderId goes >> here)"); $treeRootSeq->add( $folderRes ); >> >> the generated RDF looks like this: >> >> <rdf:Description rdf:about="urn:bibliograph:folder#root"> >> <rdf:_2 >> rdf:resource="urn:bibliograph:folder#89e51c22d059c6abde622855aa7f5321 >> "/> >> </rdf:Description> >> >> .... >> >> <rdf:Seq >> rdf:about="urn:bibliograph:folder#828679db024d9dc591676782c63b949d"> >> <rdf:_1 >> rdf:resource="urn:bibliograph:folder#92eb042f602b699051344f1b2e25c12f >> "/> >> <rdf:_2 >> rdf:resource="urn:bibliograph:folder#6c00094831008383d4e1b9cba22bf30f >> "/> >> <rdf:_3 >> rdf:resource="urn:bibliograph:folder#48a124b55bfa09881264c0342d419a50 >> "/> >> </rdf:Seq> >> >> What I would like to have, however, is this: >> >> <rdf:Description rdf:about="urn:bibliograph:folder#root"> >> <rdf:Seq> >> <rdf:li >> rdf:resource="urn:bibliograph:folder#92eb042f602b699051344f1b2e25c12f >> "/> >> <rdf:li >> rdf:resource="urn:bibliograph:folder#6c00094831008383d4e1b9cba22bf30f >> "/> >> <rdf:li >> rdf:resource="urn:bibliograph:folder#48a124b55bfa09881264c0342d419a50 >> "/> >> </rdf:Seq> >> </rdf:Description> >> >> How do I have to code this? >> >> Thanks, >> >> Christian >> >> >> >> >> >> >> ------------------------------------------------------- >> 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=offad-ysdn- >> ostg-q22005 >> _______________________________________________ >> Rdfapi-php-interest mailing list >> Rdf...@li... >> https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest >> >> > > -- > Bibliograph: Open Source On-line Reference Management > > http://www.bibliograph.org > Email: in...@bi... > > > > ------------------------------------------------------- > 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=offad-ysdn-ostg- > q22005 > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > |
From: Christian B. (B. Development) <in...@bi...> - 2005-05-28 08:13:50
|
Hello, another newbie question. How do I get raw XML from a model via a method? 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? Thanks, Christian Christian Boulanger wrote: >Hallo, > >I am new to RDFAPI-PHP but very impressed by the careful design and the >good documentation. I am stuck with a problem, however, and thought you >might be able to help me: > >I have a hierarchical folder structure in my database which I want to >display in a Mozilla XUL Tree Widget that can natively use the RDF as a >datasource. > >$db = $rdf->getNewModel($datasource); >$dbRes = new ResModel($db); > >if I create a root sequence like so: > >$treeRootSeq = $dbRes->createSeq("urn:bibliograph:folder#root"); > >and programmatically add members of the sequence: > >$folderRes = >$dbRes->createResource("urn:bibliograph:folder#(newFolderId goes here)"); >$treeRootSeq->add( $folderRes ); > >the generated RDF looks like this: > ><rdf:Description rdf:about="urn:bibliograph:folder#root"> ><rdf:_2 >rdf:resource="urn:bibliograph:folder#89e51c22d059c6abde622855aa7f5321"/> ></rdf:Description> > >.... > ><rdf:Seq >rdf:about="urn:bibliograph:folder#828679db024d9dc591676782c63b949d"> ><rdf:_1 >rdf:resource="urn:bibliograph:folder#92eb042f602b699051344f1b2e25c12f"/> ><rdf:_2 >rdf:resource="urn:bibliograph:folder#6c00094831008383d4e1b9cba22bf30f"/> ><rdf:_3 >rdf:resource="urn:bibliograph:folder#48a124b55bfa09881264c0342d419a50"/> ></rdf:Seq> > >What I would like to have, however, is this: > ><rdf:Description rdf:about="urn:bibliograph:folder#root"> > <rdf:Seq> > <rdf:li >rdf:resource="urn:bibliograph:folder#92eb042f602b699051344f1b2e25c12f"/> > <rdf:li >rdf:resource="urn:bibliograph:folder#6c00094831008383d4e1b9cba22bf30f"/> > <rdf:li >rdf:resource="urn:bibliograph:folder#48a124b55bfa09881264c0342d419a50"/> > </rdf:Seq> ></rdf:Description> > >How do I have to code this? > >Thanks, > >Christian > > > > > > >------------------------------------------------------- >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=offad-ysdn-ostg-q22005 >_______________________________________________ >Rdfapi-php-interest mailing list >Rdf...@li... >https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > -- Bibliograph: Open Source On-line Reference Management http://www.bibliograph.org Email: in...@bi... |
From: Christian B. <in...@bi...> - 2005-05-26 15:37:56
|
Hallo, I am new to RDFAPI-PHP but very impressed by the careful design and the good documentation. I am stuck with a problem, however, and thought you might be able to help me: I have a hierarchical folder structure in my database which I want to display in a Mozilla XUL Tree Widget that can natively use the RDF as a datasource. $db = $rdf->getNewModel($datasource); $dbRes = new ResModel($db); if I create a root sequence like so: $treeRootSeq = $dbRes->createSeq("urn:bibliograph:folder#root"); and programmatically add members of the sequence: $folderRes = $dbRes->createResource("urn:bibliograph:folder#(newFolderId goes here)"); $treeRootSeq->add( $folderRes ); the generated RDF looks like this: <rdf:Description rdf:about="urn:bibliograph:folder#root"> <rdf:_2 rdf:resource="urn:bibliograph:folder#89e51c22d059c6abde622855aa7f5321"/> </rdf:Description> .... <rdf:Seq rdf:about="urn:bibliograph:folder#828679db024d9dc591676782c63b949d"> <rdf:_1 rdf:resource="urn:bibliograph:folder#92eb042f602b699051344f1b2e25c12f"/> <rdf:_2 rdf:resource="urn:bibliograph:folder#6c00094831008383d4e1b9cba22bf30f"/> <rdf:_3 rdf:resource="urn:bibliograph:folder#48a124b55bfa09881264c0342d419a50"/> </rdf:Seq> What I would like to have, however, is this: <rdf:Description rdf:about="urn:bibliograph:folder#root"> <rdf:Seq> <rdf:li rdf:resource="urn:bibliograph:folder#92eb042f602b699051344f1b2e25c12f"/> <rdf:li rdf:resource="urn:bibliograph:folder#6c00094831008383d4e1b9cba22bf30f"/> <rdf:li rdf:resource="urn:bibliograph:folder#48a124b55bfa09881264c0342d419a50"/> </rdf:Seq> </rdf:Description> How do I have to code this? Thanks, Christian |
From: <bib...@15...> - 2005-05-26 15:34:21
|
Hallo, I am new to RDFAPI-PHP but very impressed by the careful design and the good documentation. I am stuck with a problem, however, and thought you might be able to help me: I have a hierarchical folder structure in my database which I want to display in a Mozilla XUL Tree Widget that can natively use the RDF as a datasource. $db = $rdf->getNewModel($datasource); $dbRes = new ResModel($db); if I create a root sequence like so: $treeRootSeq = $dbRes->createSeq("urn:bibliograph:folder#root"); and programmatically add members of the sequence: $folderRes = $dbRes->createResource("urn:bibliograph:folder#(newFolderId goes here)"); $treeRootSeq->add( $folderRes ); the generated RDF looks like this: <rdf:Description rdf:about="urn:bibliograph:folder#root"> <rdf:_2 rdf:resource="urn:bibliograph:folder#89e51c22d059c6abde622855aa7f5321"/> </rdf:Description> .... <rdf:Seq rdf:about="urn:bibliograph:folder#828679db024d9dc591676782c63b949d"> <rdf:_1 rdf:resource="urn:bibliograph:folder#92eb042f602b699051344f1b2e25c12f"/> <rdf:_2 rdf:resource="urn:bibliograph:folder#6c00094831008383d4e1b9cba22bf30f"/> <rdf:_3 rdf:resource="urn:bibliograph:folder#48a124b55bfa09881264c0342d419a50"/> </rdf:Seq> What I would like to have, however, is this: <rdf:Description rdf:about="urn:bibliograph:folder#root"> <rdf:Seq> <rdf:li rdf:resource="urn:bibliograph:folder#92eb042f602b699051344f1b2e25c12f"/> <rdf:li rdf:resource="urn:bibliograph:folder#6c00094831008383d4e1b9cba22bf30f"/> <rdf:li rdf:resource="urn:bibliograph:folder#48a124b55bfa09881264c0342d419a50"/> </rdf:Seq> </rdf:Description> How do I have to code this? Thanks, Christian |
From: rudy r. <rus...@gm...> - 2005-05-26 09:07:32
|
hi everyone, does the RAP's OntModel support owl:sameAs for classes or instances ? I tried to use it sameAs because I saw it being listed in the OntResource section from this link http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/tutorial/usingtheOntModelAPI.htm cheers rudy |
From: Richard C. <ri...@cy...> - 2005-05-23 11:14:40
|
Hi, Am 23.05.2005 um 09:21 schrieb Seaborne, Andy: >> From: Charles Nepote <> >> I am trying to query the label of a resource in a particular =20 >> language. >> >> SELECT ?z WHERE (<http://example.org/ex#id>, rdfs:label, ?z@fr) USING >> rdfs FOR <http://www.w3.org/2000/01/rdf-schema#> >> --> error >> >> SELECT ?z WHERE (<http://example.org/ex#id>, rdfs:label, ?z) AND ?=20 >> z =3D~ >> "/@fr/" >> USING rdfs FOR <http://www.w3.org/2000/01/rdf-schema#> >> --> "no match" >> >> Any ideas ? >> See the discussion here : >> http://ilrt.org/discovery/chatlogs/swig/2005-05-20.html#T23-24-35 >> >> --- >> Charles Nepote > > It's "langeq" - it was added very late to RDQL and I don't know how > widely it is implemented. > > AND ?z langeq "fr" > > Which extracts the lang tag and does a language match: > > AND "foo"@en-gb langeq "en" I guess RAP doesn't support langeq. This is the Jena implementation of langeq: http://cvs.sourceforge.net/viewcvs.py/jena/jena2/src/com/hp/hpl/jena/=20 rdql/parser/Q_StringLangEqual.java?rev=3DHEAD&view=3Dauto The rawEval function is the interesting part. > In SPARQL, it is approximately (the regex could be better): > > FILTER regex(lang(?z), "^fr", "i") With subtag match: FILTER REGEX(LANG(?label), '^fr(-|$)', 'i') See also: http://dowhatimean.net/2005/05/the-semantic-web-and-languages-that-=20 are-not-english Richard > And better still > > FILTER ext:lang(?z, "fr") for a custom extension. > > Andy > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_idt12&alloc_id=16344&op=3Dclick > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > |
From: Seaborne, A. <and...@hp...> - 2005-05-23 08:22:44
|
-------- Original Message -------- > From: Charles Nepote <> > Date: 21 May 2005 01:00 >=20 > Hi, >=20 > I am trying to query the label of a resource in a particular language. >=20 > SELECT ?z WHERE (<http://example.org/ex#id>, rdfs:label, ?z@fr) USING > rdfs FOR <http://www.w3.org/2000/01/rdf-schema#>=20 >=20 > --> error >=20 >=20 > SELECT ?z WHERE (<http://example.org/ex#id>, rdfs:label, ?z) AND ?z = =3D~ > "/@fr/"=20 > USING rdfs FOR <http://www.w3.org/2000/01/rdf-schema#> >=20 > --> "no match" >=20 > Any ideas ? > See the discussion here : > http://ilrt.org/discovery/chatlogs/swig/2005-05-20.html#T23-24-35 >=20 > --- > Charles Nepote It's "langeq" - it was added very late to RDQL and I don't know how widely it is implemented. AND ?z langeq "fr" Which extracts the lang tag and does a language match: AND "foo"@en-gb langeq "en"=20 In SPARQL, it is approximately (the regex could be better): FILTER regex(lang(?z), "^fr", "i") And better still FILTER ext:lang(?z, "fr") for a custom extension. Andy |
From: Charles N. <cha...@ne...> - 2005-05-20 23:59:38
|
Hi, I am trying to query the label of a resource in a particular language. SELECT ?z WHERE (<http://example.org/ex#id>, rdfs:label, ?z@fr) USING rdf= s FOR <http://www.w3.org/2000/01/rdf-schema#> --> error SELECT ?z WHERE (<http://example.org/ex#id>, rdfs:label, ?z) AND ?z =3D~ = "/@fr/" USING rdfs FOR <http://www.w3.org/2000/01/rdf-schema#> --> "no match" Any ideas ? See the discussion here : http://ilrt.org/discovery/chatlogs/swig/2005-05-20.html#T23-24-35 --- Charles Nepote |
From: Jonathan H. <hen...@ya...> - 2005-05-20 16:20:11
|
Yes, but only if you ask for it, as with any RAP "model" by using a syntax when you create a model using the model factory $model = ModelFactory::getOntModel('InfModelF', $modelURI); same with the getResModel <http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/phpdoc/model/ModelFactory.html#getResModel> function. You can also pass memory models into other models to get inference. rudy rusli wrote: >hi, i'm trying to use inference support in Ontology Model, but does >ontModel has inference support just like in the Inference Model ?, > >regards >rudy rusli > > >------------------------------------------------------- >This SF.Net email is sponsored by Oracle Space Sweepstakes >Want to be the first software developer in space? >Enter now for the Oracle Space Sweepstakes! >http://ads.osdn.com/?ad_idt12&alloc_id344&op=click >_______________________________________________ >Rdfapi-php-interest mailing list >Rdf...@li... >https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > > |
From: rudy r. <rus...@gm...> - 2005-05-20 15:40:12
|
hi, i'm trying to use inference support in Ontology Model, but does ontModel has inference support just like in the Inference Model ?, regards rudy rusli |
From: Jonathan H. <hen...@ya...> - 2005-05-17 13:02:49
|
Hello again all, I need some help understanding an inference query. I am confused by the results of a query on an inference model - both forward and backward chaining. In both forward and backward chaining when I use the inference model and I send an RDQL message for a instances of a class , it also gives me instances of a superclass. It may be because of my query - but I thought the rdf:type would prevent that. The behaviour I expect is that if Person is a subclass of Mammal, that if I ask for type:Person I should get no Mammals. Conversly, if I ask for Mammals, I should also get Persons. Here is the RDQL: SELECT ?Persons WHERE (?Persons, rdf:type, ns:Person) USING rdf FOR <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ns FOR <http://newscup.net/ns#> rdfs FOR <http://www.w3.org/2000/01/rdf-schema#> Should I be using "find()" instead? Apologies if this is an obvious question. (I am resending as it didn't show yesterday) |
From: Jonathan H. <hen...@ya...> - 2005-05-16 22:24:36
|
Hello again all, I need some help understanding an inference query. I am confused by the results of a query on an inference model - both forward and backward chaining. In both forward and backward chaining when I use the inference model and I send an RDQL message for a instances of a class , it also gives me instances of a superclass. It may be because of my query - but I thought the rdf:type would prevent that. The behaviour I expect is that if Person is a subclass of Mammal, that if I ask for type:Person I should get no Mammals. Conversly, if I ask for Mammals, I should also get Persons. Here is the RDQL: SELECT ?Persons WHERE (?Persons, rdf:type, ns:Person) USING rdf FOR <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ns FOR <http://newscup.net/ns#> rdfs FOR <http://www.w3.org/2000/01/rdf-schema#> Should I be using "find()" instead? Apologies if this is an obvious question. |
From: Jonathan H. <hen...@ya...> - 2005-05-04 22:01:24
|
I can achieve the desired results - which is an update using $model3->remove(new Statement($subject , $predicate, $object)); $model3->add(new Statement($subject , $predicate, $newObject)); Of course this is not handled as a complete transaction, and it could remove without adding, or visa versa. No way to add a rollback, or undo (which would be nice) So, is replace functionally equivilent? It appears not because the $newObject will replace anything unless it is null. It correctly finds the objects I am seeking, but replaces $subject and $predicate too. perhaps another handy function would only replace the object in mem model for example (untested) foreach($this->triples as $key => $value) { if ( ($this->triples[$key]->subj->equals($subject)) and ($this->triples[$key]->pred->equals($predicate)) and ($this->triples[$key]->obj->equals($object)) ) $this->triples[$key]->obj = $replacement; } --- Jonathan Hendler <hen...@ya...> wrote: > Why is the replace function disabled in the INF modes? > > I also get an error when using replace on a DB model - > > "Fatal error: RDFAPI error (class: DbModel; method: find): Parameter > mismatch > in [my include path]/rdfapi-php/api/model/DbModel.php on line 669" > > occurs with : > > foreach ($result as $object) > { > > $subject = $object['?subject']->uri; > $predicate = $object['?predicate']->uri; > $object = $object['?object']->label; // (assuming this is a literal) > > $newObject = $model->createLiteral(5); > $dbModel->replace($subject , $predicate, $object, $newObject); > > } > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. > Get your fingers limbered up and give it your best shot. 4 great events, 4 > opportunities to win big! Highest score wins.NEC IT Guy Games. Play to > win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |
From: Jonathan H. <hen...@ya...> - 2005-05-04 16:04:27
|
Why is the replace function disabled in the INF modes? I also get an error when using replace on a DB model - "Fatal error: RDFAPI error (class: DbModel; method: find): Parameter mismatch in [my include path]/rdfapi-php/api/model/DbModel.php on line 669" occurs with : foreach ($result as $object) { $subject = $object['?subject']->uri; $predicate = $object['?predicate']->uri; $object = $object['?object']->label; // (assuming this is a literal) $newObject = $model->createLiteral(5); $dbModel->replace($subject , $predicate, $object, $newObject); } |
From: Jonathan H. <hen...@ya...> - 2005-05-02 15:29:06
|
Problem: I want the mimic Update and Delete functionality present in SQL. For example, imagine an RDFS class that has a multiple cardinality property - like FOAF:knows. If George knows 10 people and I want to remove 5 of them based on a search - i would do an RDQL query first and then pass the results to the remove function called 5 times in a loop. (inefficient, but I am not aware of another solution) Removing single statement seems trivial enough. Update seems to be less friendly. If 5 out of George's 10 friend's phone numbers have all changed this would be easy if I do the same as above using replace: foreach (rdqlqueryresult) { replace($friend, FOAF:hasphone, ?anyoldPhoneNumberY, $newphonenumber) } The problem is when ?anyoldPhoneNumber is also a multiple cardinality item. In this case I need to know the the previous result I want to replace. foreach (rdqlqueryresult) { replace($friend, FOAF:hasphone, $specificPhoneNumber, $newphonenumber) } So this all seems a bit hackish. But generally is this the way I should proceed to get the update and delete functionality? |
From: Jonathan H. <hen...@ya...> - 2005-05-02 04:56:08
|
The inference engines of RAP do basic inference with a standard RDFS - but, for example, SWOOP OWL and Protege RDFS uses a different namespace. So when using inference RAP only supports the RDFS and OWL built in. I am getting at a more general question here: RAP has done a lot of work in standards compliance and keeping pace with other initiatives like Jenna. But perhaps part of making RAP a most useful semantic web infrastructure tool would be to "integrate" with the output of most popular editors. I think that RAP at its core must be an angel of standards compliance, so maybe these integration tools aren't meant to be part of RAP? But the question is, where does not supporting alternative namespaces leave some one like me? (A single developer trying to piece together a whole development/deployment environment) Would you tell me to switch to POWL? |
From: Seaborne, A. <and...@hp...> - 2005-04-30 15:33:48
|
Chris Bizer wrote: > Hi Andy and all, Hi Chris, > > first, welcome as new reader on this list. > > By the way, I'm currently planning how we will get Named Graphs and SPARQL > into the next RAP release and maybe you would comment on how our plans fit > with the DAWG and the Jena timeline. > > 1. Daniel Westphal will port NG4J to PHP and starting now and hopes to be > done mid May (including the API, TriX and a DB backend). > Q:Does Jena already have concrete plans on how to support Named Graphs? > Maybe we could implement the same API. Jena will be providing an API because it's needed for SPARQL. ARQ has a updated version of MultiGraph/MultiModels in DataSet/DataSource but the graph and model aspects need separating. It was put firstly to support experimentation of GRAPH in SPARQL and now that is settling down, it's time to work on the interface and see if it migrates to the main Jena package. > > 2. Another Student (Ralf Jacob) will implement SPARQL protocol into our > Joseki clone and might also implement a client library (remoteModel) and > some access control mechanisms (graph, resource and predicate level). He > will start 1st of June and might be done at the end of June. > Q: Will the SPARQL protocol be stable enough by then for being implemented? [I'm not the editor for the protocol so these are my guesses] Good question! Don't know but I would expect that the basic HTTP binding would be clear by then - parameter names may change but the style and design should be stable. Maybe the same for the SOAP one - it needs more machinary to be defined. > Q: Do you know of any other work on access control for RDF servers? I don't know of any work on access control that is specific to the semantic web - the usual security features of your web application container still apply. > > 3. Alberto wrote a SPARQL query language parser for PHP. > http://gargonza.asemantics.org/downloads/sparql.php > http://demo2.asemantics.com/rdf4food/sparql.html > I'm still looking for somebody to update this parser for the new SPARQL > syntax and write the actual query engine. I currently have nobody for this. > So it would be really cool if somebody from this list would volunteer. > Q: Any guess on the timeline when the spec will be stable? I do not expect the syntax to change much. There is one planned revision which should happen soon and it is all fine-tuning now, I hope. In particular, the tokens are stable and that is quite a bit of the work. What technology does the parser use? Hand written or machine generated? ARQ has a number of syntax test cases and these have been checked into DAWG CVS. There are 60-odd test cases. You cxan also use the rest of the ARQ test suite - much of it is scripted using the DAWG manifest vocabularies. > > 4. There are also two people (Hannes Gassert and Tae IL Erdmann) working on > an RDF browser implemented using RAP and Fresnel > (http://simile.mit.edu/repository/fresnel/trunk/docs/manual/FresnelVocabular > y.htm) which might also become part of the next RAP release. > Q to Hannes Gassert: Right or do you want to distribute Arago as a separate > download? > > Chris > And is there an online demo? Andy |
From: Benjamin N. <bn...@ap...> - 2005-04-28 15:22:05
|
On 28.04.2005 14:56:14, Chris Bizer wrote: >Did you see the DAWG tests? >http://www.w3.org/2001/sw/DataAccess/tests/ ah, great. I heard there were some, but didn't expect so many already. thanx for the pointer. >>the embedded turtle parser needs some more work, too. > >Is the parser an adoption of existing N3 code or a new implementation? >Can it also be used separately from SPARQL? it's a new implementation, integrated in the sparql parser. It was written at an "I'm sick of parsing" stage and is currently limited to what I thought would be neccessary for queries. *could* be possible to separate it from the sparql stuff, though. >I can guarantee lots of bug reports from the RAP users. Even more than = you >probably want ;-) heh >I'm also having the loose plan to look for a student who might port >D2RQ to PHP >(http://www.wiwiss.fu-berlin.de/suhl/bizer/d2rq/index.htm). This would be >great because then you could query all relational databases of CMS, = blogs, >wikis or whatever using SPARQL. But this is more a mid-term plan ... yeah, that'd definitely be amazing. >I guess we won't start with SPARQL QL >before June. See: >http://sourceforge.net/mailarchive/message.php?msg_id=3D11593860 cool. benjamin -- Benjamin Nowack Kruppstr. 100 45145 Essen, Germany http://www.bnode.org/ >Cheers, > >Chris > > >-- >Chris Bizer >Freie Universit=E4t Berlin >Phone: +49 30 838 54057 >Mail: ch...@bi... >Web: www.bizer.de > |
From: Chris B. <bi...@ze...> - 2005-04-28 12:57:54
|
Hi Benjamin, >>Hannes pointed me at your SPARQL implementation yesterday.=20 >>We are currently looking for a way to get SPARQL into RAP and are >>wondering if we could use your parser. >yes, sure. although I'd probably suggest waiting for the next release. Great, thanks a lot. Next release also sounds good, because we first want to get Named Graphs into RAP and build SPARQL on top afterwards. >the current one has not been tested in any way other than with some >hand-written test queries. I have already extracted a list of queries >from the sparql WD but haven't found the time yet to test them with >the parser.=20 Did you see the DAWG tests? http://www.w3.org/2001/sw/DataAccess/tests/ >the embedded turtle parser needs some more work, too. Is the parser an adoption of existing N3 code or a new implementation? Can it also be used separately from SPARQL? >Although including my stuff into RAP and getting some bug reports >could be helpful to me as well. I can guarantee lots of bug reports from the RAP users. Even more than = you probably want ;-) >>Do you mind if we include your code into RAP? Would be great! >I'd be honoured :) >Another interesting thing could be to try porting my SPARQL-to-SQL >rewriter to the RAP db model. I received some helping comments and >bug reports from Richard Cyganiak, so more work is needed there, too, >but a next version of the rewriter could perhaps be usable already. > Yes, this would be interesting. I'm also having the loose plan to look = for a student who might port D2RQ to PHP (http://www.wiwiss.fu-berlin.de/suhl/bizer/d2rq/index.htm). This would = be great because then you could query all relational databases of CMS, = blogs, wikis or whatever using SPARQL. But this is more a mid-term plan ... >>What are your future plans for your code? Do you plan to support all >SPARQL >>features or only a subset? What is the timeline of your work? =20 >ouch, timeline questions ;) >The parser currently doesn't parse constraints. That'd be the next >thing to do, especially as I want to use at least PrimaryExpressions >in the rewriter (such as FILTER ?date > 2005-03). I'm aiming at being >able to *parse* all of the SPARQL grammar features, but I'm actually >not sure if I want to try to add support for custom filters in the >rewriter. I'll probably focus on a subset that can be translated to >SQL. >Re timeline: Apart from obvious bug-fixes I'll probably not be >able to continue working on the parser before delivering an initial >version of the overdue semanticweb.org site. It may be that I have >to improve the parser *for* the portal (e.g. to add support for simple >constraints), but otherwise, I fear it won't happen before mid-may.. > Fits perfectly with our timeline. I guess we won't start with SPARQL QL before June. See: http://sourceforge.net/mailarchive/message.php?msg_id=3D11593860 > >>I'm looking forward to (hopefully) meeting you in Crete.=20 >yeah, that would be great. I'm not sure if I can afford the eswc >this year, but I'm still hoping to at least get there for the >scripting workshop... > Which would of course be even more important than the conference ;-) Cheers, Chris >cheers, >benjamin -- Benjamin Nowack Kruppstr. 100 45145 Essen, Germany http://www.bnode.org/ > >Chris > > >--=20 >Chris Bizer >Freie Universit=E4t Berlin >Phone: +49 30 838 54057 >Mail: ch...@bi... >Web: www.bizer.de > |
From: Benjamin N. <bn...@ap...> - 2005-04-28 10:20:55
|
On 28.04.2005 10:44:08, Chris Bizer wrote: > >Hi Benjamin, > >Hannes pointed me at your SPARQL implementation yesterday. >We are currently looking for a way to get SPARQL into RAP and are = wondering >if we could use your parser. yes, sure. although I'd probably suggest waiting for the next release. the current one has not been tested in any way other than with some hand-written test queries. I have already extracted a list of queries from the sparql WD but haven't found the time yet to test them with the parser. the embedded turtle parser needs some more work, too. Although including my stuff into RAP and getting some bug reports could be helpful to me as well. >Do you mind if we include your code into RAP? Would be great! I'd be honoured :) Another interesting thing could be to try porting my SPARQL-to-SQL rewriter to the RAP db model. I received some helping comments and bug reports from Richard Cyganiak, so more work is needed there, too, but a next version of the rewriter could perhaps be usable already. >What are your future plans for your code? Do you plan to support all = SPARQL >features or only a subset? What is the timeline of your work? ouch, timeline questions ;) The parser currently doesn't parse constraints. That'd be the next thing to do, especially as I want to use at least PrimaryExpressions in the rewriter (such as FILTER ?date > 2005-03). I'm aiming at being able to *parse* all of the SPARQL grammar features, but I'm actually not sure if I want to try to add support for custom filters in the rewriter. I'll probably focus on a subset that can be translated to SQL. Re timeline: Apart from obvious bug-fixes I'll probably not be able to continue working on the parser before delivering an initial version of the overdue semanticweb.org site. It may be that I have to improve the parser *for* the portal (e.g. to add support for simple constraints), but otherwise, I fear it won't happen before mid-may.. >I'm looking forward to (hopefully) meeting you in Crete. yeah, that would be great. I'm not sure if I can afford the eswc this year, but I'm still hoping to at least get there for the scripting workshop... cheers, benjamin -- Benjamin Nowack Kruppstr. 100 45145 Essen, Germany http://www.bnode.org/ > >Chris > > >-- >Chris Bizer >Freie Universit=E4t Berlin >Phone: +49 30 838 54057 >Mail: ch...@bi... >Web: www.bizer.de > |
From: Chris B. <bi...@ze...> - 2005-04-28 08:45:47
|
Hi Benjamin, Hannes pointed me at your SPARQL implementation yesterday.=20 We are currently looking for a way to get SPARQL into RAP and are = wondering if we could use your parser. Do you mind if we include your code into RAP? Would be great! What are your future plans for your code? Do you plan to support all = SPARQL features or only a subset? What is the timeline of your work? =20 I'm looking forward to (hopefully) meeting you in Crete.=20 Chris --=20 Chris Bizer Freie Universit=E4t Berlin Phone: +49 30 838 54057 Mail: ch...@bi... Web: www.bizer.de -----Urspr=FCngliche Nachricht----- Von: Chris Bizer [mailto:bi...@ze...]=20 Gesendet: Mittwoch, 27. April 2005 17:52 An: 'Hannes Gassert'; 'bn...@ap...'; 'rdf...@li...' Betreff: AW: AW: [Rdfapi-php-interest] RE: Updating and Removing + RAP future plans Hi Hannes, >> 3. Alberto wrote a SPARQL query language parser for PHP.=20 >> http://gargonza.asemantics.org/downloads/sparql.php >> http://demo2.asemantics.com/rdf4food/sparql.html >> I'm still looking for somebody to update this parser for the new = SPARQL >> syntax and write the actual query engine. I currently have nobody for >this. >> So it would be really cool if somebody from this list would = volunteer. > >http://www.bnode.org/archives1/36 comes to mind.. ;-) > Oh great :-) Looks like we are just looking for somebody to steal code = from different implementations and adapt it for RAP. Or maybe coordinate our efforts with Benjamin ;-)=20 >> Q to Hannes Gassert: Right or do you want to distribute Arago as a >separate download? > >Chris, if you want to have my stuff in RAP (once you've seen a demo of >course.. ;-)) I'd certainly be fine with bundling it. Do you want to >give me CVS access or shall we organize that somehow differently? > I would love to have a decent RDF browser in RAP and to welcome you as = RAP developer.=20 I guess using the RAP CVS also is the easiest option for coordinating = you and Tea IL. What is your sourceforge username so that I can add you as developer? Regards, Chris ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=3D105hix _______________________________________________ Rdfapi-php-interest mailing list Rdf...@li... https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest |
From: Chris B. <bi...@ze...> - 2005-04-28 08:37:20
|
Hi Hannes, >On Wed, 2005-04-27 at 17:52 +0200, Chris Bizer wrote: >> I would love to have a decent RDF browser in RAP and to welcome you = as RAP developer.=20 > >Great - hope we can meet your definition of "decent"! ;) > >> What is your sourceforge username so that I can add you as >> developer? > >It's "gasserth". > I have added you as developer. What do you think about putting your code under? cvs / rdfapi-php / rdfapi-php / tools / arago-rdfbrowser > PS: So you're in Berlin next week? Yes, I'm and we should definitively have a meeting about the Arago development together with Tae IL. On which days are you in Berlin? Would you prefer to meet here at the University or somewhere in town = (maybe in a Caf=E9 at Bergmannstrasse, Kreuzberg)? I'm having a meeting with Tae IL today and will also ask him when he has time next week. Chris |