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: rudy r. <rus...@gm...> - 2005-04-14 01:26:10
|
hi, i am new to RAP API. At the moment, i have developed my OWL model in protege 3.1 beta. and managed to load the model by using RAP. but, when i tried to query to return a student's full name, it always says 'no match'. This is what I wrote for the query : $rdql_query=3D'select ?fullname where(?x, <person:lastName>,"Rusli") (?x,<person:name>,?fullname) using owl for <http://www.w3.org/2002/07/owl#> person for <http://ebiquity.umbc.edu/v2.1/ontology/person.owl#> '; $res=3D$model->rdqlQuery($rdql_query); RdqlEngine::writeQueryResultAsHtmlTable($res); and this is my OWL model: <?xml version=3D"1.0"?> <rdf:RDF xmlns:assoc=3D"http://ebiquity.umbc.edu/v2.1/ontology/association.owl#" xmlns:research=3D"http://ebiquity.umbc.edu/v2.1/ontology/research.owl#" xmlns:rdf=3D"http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema#" xmlns:pub=3D"http://ebiquity.umbc.edu/v2.1/ontology/publication.owl#" xmlns:rdfs=3D"http://www.w3.org/2000/01/rdf-schema#" xmlns:owl=3D"http://www.w3.org/2002/07/owl#" xmlns=3D"http://ebiquity.umbc.edu/v2.1/ontology/project.owl#" xmlns:contact=3D"http://ebiquity.umbc.edu/v2.1/ontology/contact.owl#" xmlns:cc=3D"http://web.resource.org/cc/#" xmlns:person=3D"http://ebiquity.umbc.edu/v2.1/ontology/person.owl#" xml:base=3D"http://ebiquity.umbc.edu/v2.1/ontology/project.owl" > <rdf:Description rdf:about=3D""> <owl:imports rdf:resource=3D"http://ebiquity.umbc.edu/v2.1/ontology/contact.owl#"/> <owl:imports rdf:resource=3D"#"/> <rdf:type rdf:resource=3D"http://www.w3.org/2002/07/owl#Ontology"/> <owl:imports rdf:resource=3D"http://ebiquity.umbc.edu/v2.1/ontology/research.owl#"/> <owl:imports rdf:resource=3D"http://ebiquity.umbc.edu/v2.1/ontology/person.owl#"/> <owl:imports rdf:resource=3D"http://ebiquity.umbc.edu/v2.1/ontology/publication.owl#"/> <owl:imports rdf:resource=3D"http://ebiquity.umbc.edu/v2.1/ontology/association.owl#"/> </rdf:Description> <rdf:Description rdf:about=3D"#RudyRusli"> <person:name rdf:datatype=3D"http://www.w3.org/2001/XMLSchema#string">Rudy Rusli</person:name> <person:biography rdf:datatype=3D"http://www.w3.org/2001/XMLSchema#string">Rudy Rusli is a master student at Curtin Uni</person:biography> <person:firstName rdf:datatype=3D"http://www.w3.org/2001/XMLSchema#string">Rudy</person:first= Name> <person:lastName rdf:datatype=3D"http://www.w3.org/2001/XMLSchema#string">Rusli</person:last= Name> <rdf:type rdf:resource=3D"http://ebiquity.umbc.edu/v2.1/ontology/person= .owl#MSStudent"/> </rdf:Description> <rdf:Description rdf:about=3D"#DedySyamsuar"> <person:lastName rdf:datatype=3D"http://www.w3.org/2001/XMLSchema#string">Syamsuar</person:l= astName> <person:firstName rdf:datatype=3D"http://www.w3.org/2001/XMLSchema#string">Dedy</person:first= Name> <rdf:type rdf:resource=3D"http://ebiquity.umbc.edu/v2.1/ontology/person= .owl#MSStudent"/> <person:name rdf:datatype=3D"http://www.w3.org/2001/XMLSchema#string">Dedy Syamsuar</person:name> <person:biography rdf:datatype=3D"http://www.w3.org/2001/XMLSchema#string">Dedi is a student at curtin uni</person:biography> </rdf:Description> </rdf:RDF> <!-- Created with Protege (with OWL Plugin 2.0 beta, Build 245)=20 http://protege.stanford.edu --> can somebody help me in correcting my query ? thank you rudy rusli |
From: <tob...@we...> - 2005-04-07 11:40:14
|
Hi, the patches for the N3- parser submitted by Hannes Gassert and a graph visualization extension for drawing visualizations of models in several file formats like png, svg or jpeg submitted by Anton Köstlbacher were added to the CVS. To test the graph visualization functions you also need to install the open source software Graphviz available at http://www.graphviz.org. Thanks to Hannes Gassert for his patches and Anton Köstlbacher for his great extension. Regards, Tobias Gauss |
From: Olivier C. <ocu...@sw...> - 2005-04-07 10:06:19
|
Hi, I can not query a model twice in the same script. For example: $myDBStore = new DbStore ('MySQL', '127.0.0.1', 'essai', 'root', ''); $myModel = $myDBStore->getModel('astronomy'); $query1 = 'SELECT * WHERE (?x,<rdfs:subclassof>,?y)'; $result1 = $myModel->rdqlQuery($query1); // Do something with $result1... $query2 = 'SELECT * WHERE (?x,<rdf:type>,?y)'; $result2 = $myModel->rdqlQuery($query2); // Do something with $result2... I've got a correct answer with $result1. $result2 returns the correct number of rows but each row is empty: [0] => Array ( [?x] => literal Object ( [label] => [lang] => [dtype] => ) [?y] => literal Object ( [label] => [lang] => [dtype] => ) ) [1] => Array ( [?x] => literal Object ( [label] => [lang] => [dtype] => ) [?y] => literal Object ( [label] => [lang] => [dtype] => ) ) ... The problem will occurs even if I try to execute query2 fist then query1: I will have an empty set of rows for $result1. Do you have any idea? Thank you for your help, Olivier |
From: Chris B. <bi...@gm...> - 2005-04-07 09:34:59
|
> PS: I found it rather distracting that there are totally different > iterator interfaces in different places in RAP. Is there a deeper > reason behind this? Or does just nobody care? No deeper but mostly historic reasons. We will change them all to PHP iterators, when we move to PHP5. Chris -- Chris Bizer Freie Universität Berlin Phone: +49 30 838 54057 Mail: ch...@bi... Web: www.bizer.de -- Sparen beginnt mit GMX DSL: http://www.gmx.net/de/go/dsl |
From: Hannes G. <han...@de...> - 2005-04-07 09:00:16
|
Hi Rappers, Another little patch for the N3Parser, which did not recognize missin= g definitions for two-letter prefixes (like "dc" :)) before. Please fin= d code and example below. Might not be interesting for most readers, it's mainly for Tobias. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= + =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Proposed Change =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D # N3Parser.php, line 588, method applyStuff() if (isset($prefixes[$ns])){ $list[$i] =3D '<'.$prefixes[$ns].$name.'>'; } elseif (substr($ns, 0, 2) =3D=3D '^^' && isset($prefixes[$ns =3D subs= tr($ns, 2)])){ $list[$i] =3D '^^'.$prefixes[$ns].$name; } =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D N3 Example=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D @prefix : <#>. <>=09dc:creator=09"Hannes". Without patch, this example is parsed as being valid despite the unbo= und prefix, you get a rather weird statement. With this patch, the "Prefix not declared: dc:" error is triggered as expected. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= + Next patches follow - you find all sorts of these little beasts when = you actually use that stuff :) Liebe Gr=FCsse, Hannes PS: I found it rather distracting that there are totally different iterator interfaces in different places in RAP. Is there a deeper rea= son behind this? Or does just nobody care?=20 |
From: Hannes G. <han...@de...> - 2005-04-06 21:30:01
|
On Sat, 2005-04-02 at 23:10 +0700, =E0=B8=99=E0=B8=9E=E0=B8=84=E0= =B8=B8=E0=B8=93 =E0=B8=9A=E0=B8=B8=E0=B8=8D=E0=B8=AA=E0=B8=B4=E0=B8= =A1 wrote: > $model->load($base); >=20 > that cannot work I don't know to solve this. What happens /exactly/? Any error messages? Can you show us that data you're trying to load? Regards, Hannes Gassert |
From: <465...@kk...> - 2005-04-02 16:10:39
|
<P>I have problem about funciton load.</P> <P>When I create model</P> <P>$model = ModelFactory::getDefaultModel();</P> <P>then I load file to model with</P> <P>$model->load($base);</P> <P>that cannot work I don't know to solve this.</P> <P> </P> <P>Noppakun Boonsim.</P> |
From: Hannes G. <han...@de...> - 2005-03-26 18:16:33
|
Tobias, Chris, everybody; Attached you find two more patches to N3Parser.php, this time on the topic of whitespace handling. I managed to easily get URIs wrongly containing linebreaks (yikes!) without these patches.=20 The first one is about the isWS() method, which uses simple string comparison to determine if a string is whitespace only. I replaced th= is with a more powerful regular expression. It's faster, too. I hope tha= t's ok for you guys. The second one is about trimming all the lines extracted from the N3 file. It seems like this had been in the code once before, involving = the (strange, and now unused) method trimLine(). I added a call to trim() and removed the unused trimLine() method. I hope that's ok, too. Well, then I have a question, regarding a line of code that is obviou= sly buggy, but seems to have a purpose unknown to me. In the applyStuff() method we find this: =AB if (isset($prefixes[$ns])) $list[$i] =3D '<'.$prefixes[$ns].$name.'>'= ; else if (isset($prefixes[substr($ns,2)])) $list[$i] =3D '^^'.$prefixes[substr($ns,2)].$name.''; else { //die('Prefix not declared:'.$ns);=20 =BB Unfortunately I have now idea what the "else if" clause is supposed t= o do, but it fails in the case where the document contains undeclared two-letter prefixes (like dc:), and the "empty" prefix. It produces rather odd looking URIs then. If somebody explained me the purpose of this line I guess I could com= e up with a fix. Oh, and another remark: In constants.php you have =AB define('FOAF_NS', 'http://xmlns.com/foaf/0.1/#'); =BB The spec at that URL states that the NS URI ends with the slash, not = the hash. Alas, hash vs. slash, same old story. Some more remarks re ResList+bNodes and findAsIterator() follow soon. Thanks very much indeed for all your patience. Hannes (<- feeling Bengee must think I'd rather use his tool.. ;-)) |
From: Hannes G. <han...@de...> - 2005-03-24 19:02:16
|
Dear Rappers, Please find attached a naive implementation of N3 list processing (eg. ( "Monday" "Tuesday" "Wednesday" )) as a patch to N3Parser.php, which does not yet support this feature of N3. It should translate such a list into an appropriate rdf:first/rdf:next bnode construct. The comparison tests with CWM and some simple examples looked right, but if somebody with more RDF experience could check (and possibly commit) this snippet I'd be very grateful indeed. Kind regards, Hannes Gassert PS: I have some more little changes re whitespace handling and performance, they come later. PPS: Chris, guess what I'm parsing with this.. ;) |
From: <au...@in...> - 2005-03-16 17:03:00
|
Seems like there I found an error in RdfParser.php. Consider the=20 following RDF: <?xml version=3D"1.0" encoding=3D"UTF-8" ?> <rdf:RDF xmlns=3D"http://powl.sf.net/SysOnt/0.1#" xmlns:rdf=3D"http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xml=3D"http://www.w3.org/XML/1998/namespace" xmlns:rdfs=3D"http://www.w3.org/2000/01/rdf-schema#"> <Label ID=3D"Label230"> <rdfs:label xml:lang=3D"pl"=20 rdf:datatype=3D"http://www.w3.org/2001/XMLSchema#string">Text</rdfs:label= > </Label> </rdf:RDF> When parsing this snippet the xml:language attribute is then not taken=20 into account since in api/syntax/RdfParser.php in function=20 add_statement_to_model() we have: if ($datatype !=3D '') { $objobj->setDatatype($datatype); } =20 else if ($xml_lang !=3D'') { $objobj->setLanguage($xml_lang); } =20 the "else" should be removed! So, please change Line 2223 from: elseif ($xml_lang !=3D'') { into if ($xml_lang !=3D'') { and everything should be fine. I'm wondering that nobody had the problem=20 before... Cheers, S=F6ren -------------------------------------------------------------- S=F6ren Auer - University of Leipzig - Dept. of Computer Science Room 5-52, Augustusplatz 10, 04109 Leipzig, +49 (341) 97-32323 |
From: <van...@ce...> - 2005-03-11 09:58:36
|
Hello, I have some questions concerning the function replace from the DbModel.php. First of all, I don't understand the conditions when the script checks the correctness of the passed params in particular the lines 666 to 668. I don't understand why the replacement param could not be a Literal or a blanknode when the subject or the predicate is not null. Can you give me some precisions? Secondly, I don't understand why we set the subject or the predicate in the sql query. (lines 680 to 688) If I understand the goal of the function, we can change only the object. So, why we should set also the subject or the predicate? In addition, when the function changes the subject or the predicate, it changes with the replacement value. I think it's not the normal behaviour. In my script, this function changes the subject, the predicate and the object with the same value, the replacement param. Finally, at line 689, why is there a condition of the object. In this case, we have to put the old object in param. The old object can't be null. Why? I need this functions to update some statements of my database. For the moment, the original function don't allow me to change the object of the statement when I give the subject and the predicate. I have modified the function for my needs and for me the function should look like this one: function replace($subject, $predicate, $object, $replacement) { // check the correctness of the passed parameters if ( ((!is_a($subject, 'Resource') && $subject != NULL) || (!is_a($predicate, 'Resource') && $predicate != NULL) || (!is_a($object, 'Node') && $object != NULL))) { $errmsg = RDFAPI_ERROR . '(class: DbModel; method: find): Parameter mismatch'; trigger_error($errmsg, E_USER_ERROR); } if (!(!$subject && !$predicate && !$object)) { // create an update sql statement $comma = ''; $sql = 'UPDATE statements SET '; $quotedObject = $this->dbConn->qstr($replacement->getLabel()); $sql .= $comma .' object=' .$quotedObject .", object_is='" .$this->_getNodeFlag($replacement) ."' "; if (is_a($replacement, 'Literal')) { $sql .= ", l_language='" .$replacement->getLanguage() ."' " .", l_datatype='" .$replacement->getDataType() ."' "; } $sql .= 'WHERE modelID = ' .$this->modelID; $sql .= $this->_createDynSqlPart_SPO($subject, $predicate, $object); // execute the query $rs =& $this->dbConn->execute($sql); if (!$rs) echo $this->dbConn->errorMsg(); } } I'm waiting your feedbacks... :-) regards, Aurélien Van Hamme |
From: Emanuele R. <pi...@ss...> - 2005-03-03 09:19:23
|
I've implemented another Object-Like tool for acessing RDF through PHP. It can be found at http://www.teslacore.it/wiki/index.php?title=PHPTrampRDF The difference respect to RdfWorld is that it uses the overload extension, allowing a memory efficient browsing of the graph. In this way it is much more similar to the original Python TRAMP Emanuele Ruffaldi |
From: Chris B. <bi...@gm...> - 2005-03-01 03:13:53
|
Hi Gunnar, no concrete plans yet, but having them would definitively be cool and useful. I gave a talk at the W3C Technical plenary about Named Graphs and SPARQL http://lists.w3.org/Archives/Public/www-archive/2005Feb/att-0049/NamedGraphs today and there seams to be general agreement that named graphs are the direction into which things are developing. It would be cool to have some Named Graph API and repository already in RAP now and we could use it later when DAWG is done as basis for our SPARQL implementation. What do you think? Chris ----- Original Message ----- From: "Gunnar AAstrand Grimnes" <ggr...@cs...> To: <rdf...@li...> Sent: Monday, February 28, 2005 4:29 PM Subject: [Rdfapi-php-interest] Named graphs > Is there any plans for implementing named graphs in RAP? > Would there be interest for this? (if I suddenly found myself with > infinite time :) > -- > Gunnar AAstrand Grimnes > ----------------------- > Room 312, Computing Science Dept. > University of Aberdeen > Aberdeen > AB24 3UE > > Mobile: (+44) (0) 7950 251379 > > Email: ggr...@cs... > WWW: http://www.csd.abdn.ac.uk/~ggrimnes > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest |
From: Gunnar A. G. <ggr...@cs...> - 2005-02-28 15:30:11
|
Is there any plans for implementing named graphs in RAP? Would there be interest for this? (if I suddenly found myself with infinite time :) -- Gunnar AAstrand Grimnes ----------------------- Room 312, Computing Science Dept. University of Aberdeen Aberdeen AB24 3UE Mobile: (+44) (0) 7950 251379 Email: ggr...@cs... WWW: http://www.csd.abdn.ac.uk/~ggrimnes |
From: Ruffaldi E. <pi...@ss...> - 2005-02-22 19:22:14
|
Hello, In the application I'm writing I need to print only the number of matches resulting from and RDQL query. In the case of the RDQL engine based on the SQL database, its very easy to implement that by using COUNT(*) when postfiltering is not present. It is much much more efficient than obtaining the result and counting the value. Now I can do something like model->queryCount(expression) The changes I've made are: RdqlDbEngine.php // 1) generateSql augmented with the count function generateSql($modelID,$count = false) { $sql = $this->generateSql_SelectClause($count); $sql .= $this->generateSql_FromClause(); $sql .= $this->generateSql_WhereClause($modelID); return $sql; } // 2) select clause optimized to count(*) !!!! in the case of no filters function generateSql_SelectClause($count = false) { global $_generateSql_SelectVar_index; $sql_select = 'SELECT'; $_generateSql_SelectVar_index = 0; $this->rsIndexes = array(); if($count && !isset($this->parsedQuery['filters'])) $sql_select .= " count(*) "; else // 3) RDFS model: new function rdqlQueryCount or modify rdqlQuery with new param function rdqlQueryCount($queryString) { .... $sql=$engine->generateSql($this->getModelIds(), true); $recordSet=&$this->dbConn->execute($sql); return $engine->filterQueryResult($recordSet,true); // 4) filterQueryResult // declaration and cleanup of the count function filterQueryResult(&$recordSet, $justcount = false) { $count = 0; // increment the count if filtered ok .... if($justcount) $count++; else $queryResult[] = $this->_convertRsRowToQueryResultRow($recordSet->fields); // get the entry from count(*) in the case of query without filtering .... }else if($justcount) { $count = $recordSet->fields[0] + 0; } else // return the count .... return $justcount ? $count : $queryResult; Emanuele |
From: Peter B. <pb...@xs...> - 2005-02-20 19:53:21
|
Hi, The InfModelF does, among other things, type inference. If a rel b and rel range c it infers: b type c. This is nice. However, when I have a literal property a rel 'abc' and rel range http://www.w3.org/2001/XMLSchema#string it will infer: 'abc' type http://www.w3.org/2001/XMLSchema#string which obviously won't work. The error is given as: Fatal error: RDFAPI error (class: Statement; method: new): Resource expected as subject. in d:\Inetpub\wwwroot\emblems\lab\rdfapi091\rdfapi-php\api\model\Statement.php on line 66 I may of course be doing something wrong. Could someone help shed light on this? Thanks in advance, Peter Boot My very simple PHP script: <?php define("RDFAPI_INCLUDE_DIR", "d:/inetpub/wwwroot/emblems/lab/rdfapi091/rdfapi-php/api/"); include(RDFAPI_INCLUDE_DIR . "RdfAPI.php"); $im = ModelFactory::getInfModelF(); $im->load("http://emblems.let.uu.nl/emblems/lab/dse/rdf/test.rdf"); ?> My OWL and RDF data: <?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xml:base="http://emblems.let.uu.nl/emblems/lab/dse/rdf/test.rdf" xmlns:test="http://emblems.let.uu.nl/emblems/lab/dse/rdf/test.rdf#" xmlns:owl = "http://www.w3.org/2002/07/owl#" xmlns:rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs= "http://www.w3.org/2000/01/rdf-schema#" xmlns:xsd = "http://www.w3.org/2001/XMLSchema#"> <owl:Ontology rdf:about=""> <rdfs:comment>Test ontology </rdfs:comment> </owl:Ontology> <owl:Class rdf:ID="MyClass"> </owl:Class> <owl:DatatypeProperty rdf:ID="StringProp"> <rdfs:domain rdf:resource="#MyClass"/> <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/> </owl:DatatypeProperty> <test:MyClass rdf:ID="myid" test:StringProp="a string"> </test:MyClass> </rdf:RDF> |
From: Peter B. <pb...@xs...> - 2005-02-14 13:29:32
|
Hello, I've begun using an InfModelF to add tripels to my model based on subclasses defined in the ontology. This is a great help. If a subclass b b subclass c i type a the model correctly infers that i type b i type c I incorrectly assumed the model would also infer a subclass c As I need the transitive closure of the subclass relation for the purpose of querying the model, what I used to do is compute it myself and store it in auxiliary files. I hoped the inference engine would save me the trouble. I have tried adding, in InfModel.php, in the function _addToInference, after case RDF_SCHEMA_URI.RDFS_SUBCLASSOF : $infRule2=new InfRule(); $infRule2->setTrigger(null,new Resource(RDF_SCHEMA_URI.RDFS_SUBCLASSOF),$statement->getSubject()); $infRule2->setEntailment('<s>',new Resource(RDF_SCHEMA_URI.RDFS_SUBCLASSOF),$statement->getObject()); $this->infRules[]=$infRule2; $this->_addInfRule($infRule2,$statementPosition); $infRule3=new InfRule(); $infRule3->setTrigger($statement->getObject(),new Resource(RDF_SCHEMA_URI.RDFS_SUBCLASSOF),null); $infRule3->setEntailment($statement->getSubject(),new Resource(RDF_SCHEMA_URI.RDFS_SUBCLASSOF),'<o>'); $this->infRules[]=$infRule3; $this->_addInfRule($infRule3,$statementPosition); which doesn't seem to work, and maybe I don't really know what I am doing here. Anyone has an idea on how to get the kind of inference that I need? Thanks, Peter |
From: Lukas S. <ls...@ph...> - 2005-02-10 14:31:56
|
Just wanted to say that I am now on board the list too regards, lukas smith |
From: Misja H. <mis...@gm...> - 2005-02-06 20:08:35
|
Hi, A smal bug report. The file infModel/InfModelP.php includes classes in the infmodel/ instead of the infModel/ directory, which will work on win32 but not on *NIX - my platform. Apart from this, nice package :) Regards, -- Misja Hoebe |
From: Chris B. <bi...@ze...> - 2005-02-03 14:11:43
|
>> It would be nice to collect more applications and maybe showcase them >> on the RAP website. > >As a user, I would certainly appreciate this. For one thing, it is >easier to decide to sit down and learn how to use a tool once you know >it is used in several respected institutions. And then, we might learn >something from each other. I would be very willing to share my code. > What about sharing your code and your experience? I think your application would make a really nice use case for our "Scripting for the Semantic Web" workshop in Greece this May. See: http://www.semanticscripting.org/SFSW2005/ All the best, Chris |
From: Peter B. <pb...@xs...> - 2005-02-02 20:13:27
|
Hi Chris, > ... but it is great to see RAP responding that fast to complex > queries. In fact my main troubles have been performance troubles. That may be because I'm not an experienced PHP developer, or because I have missed other things, but I had to do a lot of tricks to get all this to run. The main reason why my queries take a long time to execute, is because they all involve the ontology. So if I ask for resources of a certain class, I also want the resources that belong to subclasses of this class, and to subclasses of those classes. What seems like a simple query often turns out to need multiple levels of recursion. > It would be nice to collect more applications and maybe showcase them > on the RAP website. As a user, I would certainly appreciate this. For one thing, it is easier to decide to sit down and learn how to use a tool once you know it is used in several respected institutions. And then, we might learn something from each other. I would be very willing to share my code. All the best, Peter |
From: Chris B. <bi...@ze...> - 2005-02-02 09:57:17
|
Hi Peter, Nice application. I don't understand much about emblem research, but it is great to see RAP responding that fast to complex queries. It would be nice to collect more applications and maybe showcase them on the RAP website. We as RAP developers are having the problem that we are only getting into contact with the RAP users which are having some problems with RAP and mail a support request. We don't know too much about the successful use cases of RAP :-( So it would be really great if other RAP users would also send us links to their applications. Maybe also together with a short report about their experience with RAP and possible point for improvement. Cheers, Chris |
From: Peter B. <pb...@xs...> - 2005-02-01 16:23:18
|
Hello all, So I'll be the first to describe on this list a possibly interesting situation where RAP is being used. Before that, I want to express my appreciation for those of you that create and maintain RAP. I would never have been able to do what I did without RAP. Thank you. I am writing a PhD thesis in emblem research. (Emblems are combinations of a picture and a poem, which used to be very popular a few centuries ago). My interpretations of the emblems are stored in RDF, and I make the RDF accessible on the web using RAP. See for a sample application: http://emblems.let.uu.nl/emblems/lab/metaphor/. What is it that you can see there? We have digitised these emblems at the Emblem Project Utrecht (http://emblems.let.uu.nl). We transcribed the emblems using the Guidelines of the Text Encoding Initiative (http://www.tei-c.org) and created XML files. In these XML files, some elements represent sections of text or regions in the images. An ontology is then created in RDF Schema, which corresponds to the categories of my interpretations of the emblems. In an RDF file I apply this ontology and use it to describe the sections of text and picture that are contained in the XML file that describes the emblems. Using the application as you can see it on the web it is now possible to query the interpretational findings as stored in the RDF. The query uses (mainly) RAP, but also some XSLT stylesheets, in order to present the data to the viewer. The data are loaded into a database for performance reasons. In the coming months I expect I'll be working at a cleaner separation of the application and the query logic behind it. I should be able to re-use the same 'query engine' with arbitrary xml files and ontologies. I also want to reduce dependencies on non-RAP processing of RDF data (read: stylesheets). And I need a facility for adding annotations to the RDF data and display those in the interface. Best regards, Peter Boot |
From: <au...@in...> - 2005-02-01 15:56:23
|
Gunnar AAstrand Grimnes wrote: > Ah, bummer :) all that java work wasted. > > How large are we talking? I loaded UNSPSC and NCI Cancer Ontologies (0.5 Mio Triples), but with=20 $stream set to true it is only a matter of time to load arbitrary large=20 models - up to my measurements Powl/RAP was not significantly slower=20 than Jena. Eventually RAP has to be modified at one more further point -=20 to disable checking for duplicate entries when adding triples: model/DBModel.php 139 if (!empty($this->dontCheckForDuplicatesOnAdd) ||=20 !$this->contains($statement)) { $model->dontCheckForDuplicatesOnAdd than has to be set to true before=20 loading the data. And one further remark - maybe you should use the=20 command line version of PHP then to avoid timeouts :-) Happy data mining S=F6ren |
From: Gunnar A. G. <ggr...@cs...> - 2005-02-01 15:32:15
|
Ah, bummer :) all that java work wasted. How large are we talking? - Gunnar S=F6ren Auer wrote: > Hi All, >=20 >> Here the other day I needed to put a 120mb rdf/xml file into a RAP DB,= =20 >> I tried using the db-tool and uploading it, but on my P4 with 1gb of=20 >> memory it used 1.8gb of memory, froze the whole machine and was still=20 >> showing no sign of connecting to the DB after 30 minutes, so I stopped= =20 >> it. >=20 >=20 > I already loaded quite large models using PHP and RAP, but you have to=20 > set the $stream parameter of model::load to true to prevent RAP from=20 > creating an in memory model first: >=20 > model::load($filename, $type =3D NULL, $stream=3Dfalse) >=20 > Hope that helps >=20 > S=F6ren --=20 Gunnar AAstrand Grimnes ----------------------- Room 312, Computing Science Dept. University of Aberdeen Aberdeen AB24 3UE Mobile: (+44) (0) 7950 251379 Email: ggr...@cs... WWW: http://www.csd.abdn.ac.uk/~ggrimnes |