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: Michele P. <mic...@gm...> - 2008-04-02 13:01:10
|
Hey Tom, sorry about the 'node' class, i'm so used to it I don't find it confusing anymore. So here's a simplified example in PHP, which you can easily run by yourself. Basically all I'm trying to write is 3 triples as follows: ($ID ---> rdf:TYPE -----> "http://cohereweb.net/ontology/cohere.owl#node") ($authorID ---> rdf:TYPE -----> " http://cohereweb.net/ontology/cohere.owl#cohere_user") ($ID ---> ""http://cohereweb.net/ontology/cohere.owl#has_creator" -----> $name) And here's the code: ........................................ get_result("myID", "myName", "myAuthorID"); function get_result ($ID, $Name, $authorID) { loadRapLibraries("../import/rdfapi-php/api/"); define('COHERE_NS', 'http://cohereweb.net/ontology/cohere.owl#'); $Model = ModelFactory::getDefaultModel(RDFS_VOCABULARY); $Model->setBaseURI(COHERE_NS); $newclaimID = new Resource(COHERE_NS . $ID); $newauthor = new Resource(COHERE_NS . $authorID); $statement1 = new Statement ($newclaimID, RDF_RES::TYPE(), new Resource ("http://cohereweb.net/ontology/cohere.owl#node")); $statement2 = new Statement ($newauthor, RDF_RES::TYPE(), new Resource ("http://cohereweb.net/ontology/cohere.owl#cohere_user")); $statement3 = new Statement ($newclaimID, new Resource (" http://cohereweb.net/ontology/cohere.owl#has_creator"), $newauthor); $Model->addWithoutDuplicates($statement1); $Model->addWithoutDuplicates($statement2); $Model->addWithoutDuplicates($statement3); $ret = $Model->writeAsHtml(); return $ret; } ........................................... the rdf I get is (without namespaces): <ns1:node rdf:ID="myID"/> <ns1:cohere_user rdf:ID="myAuthorID"/> <rdf:Description rdf:ID="myID"> <ns1:has_creator rdf:resource="#myAuthorID"/> </rdf:Description> which is wrong because the [rdf:ID="myID"/>] is redefined in the first statement and the third one. I guess it should be something like [rdf:about='myID"/>] in the third one.. but i'm no expert here!! Anyways, a simple workaround is that if you just change the order of the statements added (putting the statement 2 first) the whole thing works. That is, from: $Model->addWithoutDuplicates($statement1); $Model->addWithoutDuplicates($statement2); $Model->addWithoutDuplicates($statement3); to $Model->addWithoutDuplicates($statement2); $Model->addWithoutDuplicates($statement1); $Model->addWithoutDuplicates($statement3); Then the resulting RDF is valid: <ns1:cohere_user rdf:ID="myAuthorID"/> <ns1:node rdf:ID="myID"> <ns1:has_creator rdf:resource="#myAuthorID"/> </ns1:node> Hope it's clearer now.... any idea where I'm getting it wrong? Tx a lot mik On Wed, Apr 2, 2008 at 10:09 AM, Tom Heath <tom...@gm...> wrote: > Hey Mik, > > With the "node" property in your own namespace it's quite hard to work > out what you're actually trying to say. Any chance you can show us an > example of the triples you'd like to generate, perhaps as n-triples, > and then it'll be easier to debug the PHP. > > It's probably also worth using CamelCase for class names in your > ontology, as this is a widely used convention and makes the RDF more > readable. > > Cheers, > > Tom. > > On 01/04/2008, Michele Pasin <mic...@gm...> wrote: > > Hi all, > > > > I'm getting this error with the MemModel - when adding properties to a > > resource which has been previously created, instead of getting the > rdf:About > > ...ResourceID construct, the output is rdf:ID='ResourceID'. Not sure > > whether it's an error or not, but the w3cRDF-validator apparently says > so: > > > > > > > > Error: {W105} Redefinition of ID: node_node1[Line = 20, Column = 38] > > Error: {W105} Previous definition of 'node_node1'.[Line = 16, Column = > 32] > > > > > > Here's the complete RDF code I've generated: > > > > ;;;;;;;;;;;;;;;;;;;;;;;; > > <?xml version="1.0" encoding="UTF-8" ?> > > <!-- Generated by RdfSerializer.php from RDF RAP. > > # > > http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/index.html > > !--> > > > > <rdf:RDF > > xml:base="http://cohereweb.net/ontology/cohere.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#" > > xmlns:owl="http://www.w3.org/2002/07/owl#" > > xmlns:dc="http://purl.org/dc/elements/1.1/" > > xmlns:dcterms="http://purl.org/dc/terms/" > > xmlns:vcard="http://www.w3.org/2001/vcard-rdf/3.0#" > > xmlns:ns1="http://cohereweb.net/ontology/cohere.owl#"> > > > > <ns1:node rdf:ID="node1"/> > > > > <ns1:cohere_user rdf:ID="michele"/> > > > > <rdf:Description rdf:ID="node1"> > > <ns1:has_creator rdf:resource="#michele"/> > > </rdf:Description> > > > > </rdf:RDF> > > ;;;;;;;;;;;;;;;;;;;;;;;;;; > > > > > > > > And here's the PHP code: > > > > > > ................ > > > > > > > > > > > > > > > > > > > > > > //test function > > > > function get_result2 ($nodeID, $nodeName, $nodeDescription, $authorID) { > > > > //load all it's necessary > > > > loadRapLibraries("../import/rdfapi-php/api/"); > > > > > > > > > > //create a new model > > > > $model = getCohereModel(); > > > > > > > > //create resources using my own vocabulary > > > > $newnode = new Resource(COHERE_NS . $nodeID); > > > > $newauthor = new Resource(COHERE_NS . $authorID); > > > > > > > > // create statements > > > > $statement1 = new Statement ($newnode, RDF_RES::TYPE(), > > COHERE_RES::NODE()); > > > > > > > > > > $statement2 = new Statement ($newauthor, RDF_RES::TYPE(), > > COHERE_RES::COHERE_USER()); > > > > > > > > $statement3 = new Statement ($newnode, COHERE_RES::HAS_CREATOR(), > > $newauthor); > > > > > > > > //add the statements > > > > $model->addWithoutDuplicates($statement1); > > > > > > > > > > $model->addWithoutDuplicates($statement2); > > > > > > > > $model->addWithoutDuplicates($statement3); > > > > > > > > $ret = $model->writeAsHtml(); > > > > return $ret; > > > > } > > > > > > > > > > > > > > echo get_result2("node1", "myNode", "myDesc", "michele"); > > > > > > > > > > > > > > > > > > ................ > > > > > > > > > > > > > > > > I can't figure out where the mistake is - can anybody help please? > > Thanks a lot, > > mikele > > > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > _______________________________________________ > > Rdfapi-php-interest mailing list > > Rdf...@li... > > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > > > > |
From: Tom H. <tom...@gm...> - 2008-04-02 09:09:35
|
Hey Mik, With the "node" property in your own namespace it's quite hard to work out what you're actually trying to say. Any chance you can show us an example of the triples you'd like to generate, perhaps as n-triples, and then it'll be easier to debug the PHP. It's probably also worth using CamelCase for class names in your ontology, as this is a widely used convention and makes the RDF more readable. Cheers, Tom. On 01/04/2008, Michele Pasin <mic...@gm...> wrote: > Hi all, > > I'm getting this error with the MemModel - when adding properties to a > resource which has been previously created, instead of getting the rdf:About > ...ResourceID construct, the output is rdf:ID='ResourceID'. Not sure > whether it's an error or not, but the w3cRDF-validator apparently says so: > > > > Error: {W105} Redefinition of ID: node_node1[Line = 20, Column = 38] > Error: {W105} Previous definition of 'node_node1'.[Line = 16, Column = 32] > > > Here's the complete RDF code I've generated: > > ;;;;;;;;;;;;;;;;;;;;;;;; > <?xml version="1.0" encoding="UTF-8" ?> > <!-- Generated by RdfSerializer.php from RDF RAP. > # > http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/index.html > !--> > > <rdf:RDF > xml:base="http://cohereweb.net/ontology/cohere.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#" > xmlns:owl="http://www.w3.org/2002/07/owl#" > xmlns:dc="http://purl.org/dc/elements/1.1/" > xmlns:dcterms="http://purl.org/dc/terms/" > xmlns:vcard="http://www.w3.org/2001/vcard-rdf/3.0#" > xmlns:ns1="http://cohereweb.net/ontology/cohere.owl#"> > > <ns1:node rdf:ID="node1"/> > > <ns1:cohere_user rdf:ID="michele"/> > > <rdf:Description rdf:ID="node1"> > <ns1:has_creator rdf:resource="#michele"/> > </rdf:Description> > > </rdf:RDF> > ;;;;;;;;;;;;;;;;;;;;;;;;;; > > > > And here's the PHP code: > > > ................ > > > > > > > > > > > //test function > > function get_result2 ($nodeID, $nodeName, $nodeDescription, $authorID) { > > //load all it's necessary > > loadRapLibraries("../import/rdfapi-php/api/"); > > > > > //create a new model > > $model = getCohereModel(); > > > > //create resources using my own vocabulary > > $newnode = new Resource(COHERE_NS . $nodeID); > > $newauthor = new Resource(COHERE_NS . $authorID); > > > > // create statements > > $statement1 = new Statement ($newnode, RDF_RES::TYPE(), > COHERE_RES::NODE()); > > > > > $statement2 = new Statement ($newauthor, RDF_RES::TYPE(), > COHERE_RES::COHERE_USER()); > > > > $statement3 = new Statement ($newnode, COHERE_RES::HAS_CREATOR(), > $newauthor); > > > > //add the statements > > $model->addWithoutDuplicates($statement1); > > > > > $model->addWithoutDuplicates($statement2); > > > > $model->addWithoutDuplicates($statement3); > > > > $ret = $model->writeAsHtml(); > > return $ret; > > } > > > > > > > echo get_result2("node1", "myNode", "myDesc", "michele"); > > > > > > > > > ................ > > > > > > > > I can't figure out where the mistake is - can anybody help please? > Thanks a lot, > mikele > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > |
From: Michele P. <mic...@gm...> - 2008-04-01 15:10:19
|
Hi all, I'm getting this error with the MemModel - when adding properties to a resource which has been previously created, instead of getting the rdf:About ...ResourceID construct, the output is rdf:ID='ResourceID'. Not sure whether it's an error or not, but the w3cRDF-validator apparently says so: Error: {W105} Redefinition of ID: node_node1[Line = 20, Column = 38] Error: {W105} Previous definition of 'node_node1'.[Line = 16, Column = 32] Here's the complete RDF code I've generated: ;;;;;;;;;;;;;;;;;;;;;;;; <?xml version="1.0" encoding="UTF-8" ?> <!-- Generated by RdfSerializer.php from RDF RAP. # http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/index.html !--> <rdf:RDF xml:base="http://cohereweb.net/ontology/cohere.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#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:vcard="http://www.w3.org/2001/vcard-rdf/3.0#" xmlns:ns1="http://cohereweb.net/ontology/cohere.owl#"> <ns1:node rdf:ID="node1"/> <ns1:cohere_user rdf:ID="michele"/> <rdf:Description rdf:ID="node1"> <ns1:has_creator rdf:resource="#michele"/> </rdf:Description> </rdf:RDF> ;;;;;;;;;;;;;;;;;;;;;;;;;; And here's the PHP code: ................ //test function function get_result2 ($nodeID, $nodeName, $nodeDescription, $authorID) { //load all it's necessary loadRapLibraries("../import/rdfapi-php/api/"); //create a new model $model = getCohereModel(); //create resources using my own vocabulary $newnode = new Resource(COHERE_NS . $nodeID); $newauthor = new Resource(COHERE_NS . $authorID); // create statements $statement1 = new Statement ($newnode, RDF_RES::TYPE(), COHERE_RES::NODE()); $statement2 = new Statement ($newauthor, RDF_RES::TYPE(), COHERE_RES::COHERE_USER()); $statement3 = new Statement ($newnode, COHERE_RES::HAS_CREATOR(), $newauthor); //add the statements $model->addWithoutDuplicates($statement1); $model->addWithoutDuplicates($statement2); $model->addWithoutDuplicates($statement3); $ret = $model->writeAsHtml(); return $ret; } echo get_result2("node1", "myNode", "myDesc", "michele"); ................ I can't figure out where the mistake is - can anybody help please? Thanks a lot, mikele |
From: Radoslaw O. <r.o...@go...> - 2008-02-29 17:54:12
|
Hi all, we released RAP - RDF API for PHP 0.9.6 today. The new release includes: 1) RAP_Pubby - an integrated linked data frontend for RAP, which - provides a *linked data interface* to RAP RDF models (file or database backed) - provides *dereferenceable URIs* by rewriting URIs found in the exposed dataset into the RAP_Pubby server's namespace - provides a simple template-based *HTML interface* showing the data available about each resource - takes care of handling *303 redirects and content negotiation *RAP_Pubby was orignially inspired by Pubby - A Linked Data Frontend for SPARQL <http://www4.wiwiss.fu-berlin.de/pubby/> Endpoints by Richard Cyganiak. **2) several bug fixes The new version can be downloaded from the RAP website at http://www4.wiwiss.fu-berlin.de/bizer/rdfapi/ Cheers, Radek -- Radoslaw Oldakowski Freie Universität Berlin |
From: Olivier G. <o.g...@no...> - 2008-02-27 18:07:41
|
> Hi all, > > I've been trying to run simple SPARQL query with Sparql > endpoint and SparqlClient (RAP-0.95/PHP5). > > The query is a simple SELECT... doesn't give the result in > array but errors our with the message "unable to parse result". Yes, I send an email two month ago to tell the dev that RAP 0.95 is buged with SPARQL. No answer yet. |
From: <mai...@st...> - 2008-02-27 14:58:54
|
Hi all, I've been trying to run simple SPARQL query with Sparql endpoint and SparqlClient (RAP-0.95/PHP5). The query is a simple SELECT... doesn't give the result in array but errors our with the message "unable to parse result". But the query output is dumped as a long string following the error message. Here is the code snippet... <?php /** * @author thanh * @copyright 2008 */ // Include all RAP classes define("RDFAPI_INCLUDE_DIR", "../rdfapi-php/api/"); include(RDFAPI_INCLUDE_DIR . "RdfAPI.php"); echo "<b><font color=blue> test 2! (Anwendung des SPARQL client:demo.ontowiki.net/service/sparql) </font></b><br />"; echo " "; #################################################### # searchPeople # sucht nach der Person oder FALSE zurück #################################################### $client = ModelFactory::getSparqlClient("http://demo.ontowiki.net/service/sparql"); $querystring = ' select DISTINCT (?o) where {?s ?p ?o.} LIMIT 20 '; $query = new ClientQuery(); $query->query($querystring); $query->addDefaultGraph("http://data.semanticweb.org/dumps/conferences/iswc-aswc-2007-complete.rdf"); $result = $client->query($query); print_r($result); ?> Am I missing something so obvious here? Can someone help me to fix that problem? Thanks. Regards, Thanh. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. |
From: Onno P. <onn...@gm...> - 2008-02-07 12:39:02
|
RDF allows XML literals to be given as the object node of a predicate. These are written in RDF/XML as content of a property element (not a property attribute) and indicated using the rdf:parseType="Literal" attribute on the containing property element. Example listing <rdf:Description rdf:about="http://example.org/item01"> <ex:prop rdf:parseType="Literal" xmlns:a="http://example.org/a#"> <a:Box required="true"> <a:widget size="10" /> <a:grommit id="23" /> </a:Box> </ex:prop> </rdf:Description> The part from <a:Box until </a:Box> is an XML Literal This construction allows for a payload which is an entire XML file to be stored in the Object of a triple. My question is: will RAP allow this and if so, how large (mb's) can the payload be? And is that figure dependent on the underlying database type or of RAP itself? Onno Paap |
From: Rahul P. <rah...@gm...> - 2008-01-31 20:04:35
|
Hi All, Does RAP implement COUNT? If yes then what is the syntax? I tried SELECT COUNT(?a) WHERE {?a ?b ?c} with no success. Thanks in advance for your help. thanks, rahul |
From: Miklos G. <mik...@el...> - 2008-01-29 16:19:19
|
Hello, A SPARQL-Newby needs an SPARQL-Expert ;-) maybe its not the right list, but I thought, that maybe someone here knows an answer.. Following problem: This is my Example-Ontologie: <?xml version="1.0"?> <rdf:RDF xmlns="http://www.vernetzte-kirche.de/demo#" xml:base="http://www.vernetzte-kirche.de/demo" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:owl="http://www.w3.org/2002/07/owl#"> <owl:Ontology rdf:about=""/> <owl:ObjectProperty rdf:ID="belongsToPartnerOrganization"> <rdfs:domain rdf:resource="#ProjectWorker"/> <rdfs:range rdf:resource="#PartnerOrganization"/> </owl:ObjectProperty> <owl:DatatypeProperty rdf:ID="birthdate"> <rdfs:domain rdf:resource="#ProjectWorker"/> <rdfs:range rdf:resource="http://www.w3.org/2001/ XMLSchema#date"/> </owl:DatatypeProperty> <owl:ObjectProperty rdf:ID="chief"> <rdf:type rdf:resource="http://www.w3.org/2002/07/ owl#FunctionalProperty"/> <rdfs:domain rdf:resource="#PartnerOrganization"/> <rdfs:range rdf:resource="#ProjectWorker"/> <rdfs:comment xml:lang="en" >Here I can write more Text another line And one more line</rdfs:comment> </owl:ObjectProperty> <owl:DatatypeProperty rdf:ID="longStringdescription"> <rdfs:domain> <owl:Class> <owl:unionOf rdf:parseType="Collection"> <owl:Class rdf:about="#PartnerOrganization"/> <owl:Class rdf:about="#ProjectWorker"/> </owl:unionOf> </owl:Class> </rdfs:domain> <rdfs:range rdf:resource="http://www.w3.org/2001/ XMLSchema#string"/> </owl:DatatypeProperty> <owl:Class rdf:ID="PartnerOrganization"/> <owl:Class rdf:ID="ProjectWorker"/> <owl:DatatypeProperty rdf:ID="realname"> <rdfs:domain> <owl:Class> <owl:unionOf rdf:parseType="Collection"> <owl:Class rdf:about="#PartnerOrganization"/> <owl:Class rdf:about="#ProjectWorker"/> </owl:unionOf> </owl:Class> </rdfs:domain> <rdfs:range rdf:resource="http://www.w3.org/2001/ XMLSchema#string"/> </owl:DatatypeProperty> </rdf:RDF> Now I want to get the Properties for the Class ProjectWorker with SPARQL. Is it possible? When I just use: SELECT ?prop ?pred ?obj WHERE { ?prop rdfs:domain <http://www.vernetzte-kirche.de/ demo#ProjectWorker> . ?prop ?pred ?obj } I only get the properties birthdate and belongsToPartnerOrganization, which don't belong to the Collection. Is it possible to find all 4 Properties in 1 Query?? Any hints are welcome Miklos |
From: Chris B. <ch...@bi...> - 2008-01-18 17:28:54
|
Hi Radek, Sebastian send some bug fixes for RAP that mainly concern the DB and = RDQL modules. Could you please check them and submit them to subversion when you = finish the work on RAP-Pubby. This would be great. Cheers Chris -- Chris Bizer Freie Universit=C3=A4t Berlin +49 30 838 54057 ch...@bi... www.bizer.de ----- Original Message -----=20 From: Sebastien Marinier=20 To: Chris Bizer=20 Sent: Friday, January 18, 2008 5:05 PM Subject: Re: RAP Project Chris Bizer a =C3=A9crit :=20 Hi Sebastian=20 We are a software company, and we've connect RAP as a=20 complementary ontology module to our product.=20 Interesting. Which product?=20 It's a product wich is collecting information on Intranets or = Internet, for the company usage. We allow to build an ontology. The = ontology might be built by any way by the client (RDF Model), and = information might be interact (print and clic) accordingly to the store = information. This is the main usage from rdf api, no ? ;) We found some=20 little bugs/misfuntions in it, and as we are already used to=20 work with sourceforge projects, we propose you to send our=20 corrections to the product. If you're interested in, we could:=20 - send you a mail of detailed corrections=20 - send you a patch (like diff -Naur)=20 - become a developer from the sourceforge project with=20 subversion access.=20 What kind of corrections are this?=20 If it is only minor stuff and if you have tested the code against = the test cases, I would prefer to give you subversion access to submit = the changes directly.=20 Cheers=20 Chris=20 I'd rather to list you the corrections we've made in the code. I = explain why we've done. If you consider these as acceptable, i can = commit them, if you give me access to the project. But as the 4 and 5 = might be involving modifications, i don't know how tou proceed.: is = there a technical debate on the forum ? Or are you the ultimate deciding = person ? ;) =20 1) rdfapi/api/constants.php Line 331: // = -------------------------------------------------------------------------= --------- // RDQL, SPARQL and parser default namespace prefixes // = -------------------------------------------------------------------------= ---------global $default_prefixes; $default_prefixes =3D array(=3D> when rdfapi in included from function = call (wich is the case, as we don't really want to include always all = the files), the globals need to be declared as globals. 2) rdfapi/api/model/DbModel.php Line 501 function & getMemModel() { $recordSet =3D $this->_getRecordSet($this); // Modified by mgr for AMI Software, 2007/11/20 $model =3D $this->_convertRecordSetToMemModel($recordSet); return $model; }=3D> PHP Notice Error: Only variable references should be returned = by reference 3) rdfapi/api/rdql/RdqlDbEngine.php $queryResult =3D $this->filterQueryResult($recordSet); if ($returnNodes) $ret =3D $this->toNodes($queryResult); else $ret =3D $this->toString($queryResult); return $ret;=3D> same 4) rdfapi/api/model/DbStore.php Line 71:=20 // $r =3D $this->dbConn->connect($host, $user, $password, $dbName); $r =3D $this->dbConn->NConnect($host, $user, $password, $dbName); =3D> As we work already with ADODb, on our own base, the "connect" = call always use the wrong base. A new connection is required. 5) rdfapi/api/rdql/RdqlParser.php Line 510: // $reg_ex =3D = "/(\?[a-zA-Z0-9_]+)\s+([~!=3D]~)\s+(['|\"])?([^\s'\"]+)(['|\"])?/"; $reg_ex =3D = "/(\?[a-zA-Z0-9_]+)\s+([~!=3D]~)\s+(['|\"])?([^\"]+)(['|\"])?/"; =3D> the regular expression removes spaces and quotes. Why not = tolerating them ? If we want to search for "Jean d'Ormesson" by example = ? =20 6) rdfapi/api/resModel/ResModel.php Line 635:=20 function load($filename, $type =3D NULL, $stream=3Dfalse) { // $this->model->load($filename, $type =3D NULL, = $stream=3Dfalse); $this->model->load($filename, $type, $stream); } =3D> It looks like a "fast copy/paste" error ;) Line 797: function & rdqlQuery($queryString, $returnNodes =3D TRUE)=20 { // Modified by mgr for AMI Software, 2007/11/19 $ret =3D $this->model->rdqlQuery($queryString, $returnNodes); return $ret; } =3D> PHP Notice Error: Only variable references should be returned by = reference Yours S=C3=A9bastien Marinier |
From: Olivier G. <o.g...@no...> - 2008-01-07 13:52:21
|
Hello ! The following code : <?php define("RDFAPI_INCLUDE_DIR", = $_SERVER['DOCUMENT_ROOT']."/rdf/rdfapi-php094/api/"); include(RDFAPI_INCLUDE_DIR . "RdfAPI.php"); // Cr=E9er le mod=E8le memmodel $foaffile =3D ModelFactory::getDefaultModel(); //Charger le fichier RDF concern=E9 en m=E9moire o=F9 $uri est le chemin = vers le fichier $foaffile->load("foaf.rdf"); //la requ=EAte en SPARQL, c'est la requ=EAte que j'utilise pour afficher = la photo du commentateur sur les petites cases. $querystring=3D ' PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?image WHERE { ?user foaf:depiction ?image. }'; $result =3D $foaffile->sparqlQuery($querystring); foreach($result as $line){ $photo=3D$line['?image']->uri; $Img=3D"<img"; $Img.=3D" src=3D\"" . $photo . "\" alt=3D'Avatar'>"; echo $Img; }?> Work with RAP 0.9.4, and fails with 0.9.5, with error code "Fatal error: = Class 'DbModel' not found in = /var/www/html/NOVACTIVE/testphp5.novactive.com/rdf/rdfapi-php/api/sparql/= SparqlEngine.php on line 109". I run php 5.0.4 :=20 Begun of phpinfo() : System FreeBSD Sirius 5.4-STABLE FreeBSD 5.4-STABLE #0: Tue Jun 28 = 17:45:23 UTC 2005 = **********@FreeB.novactive.local:/usr/obj/usr/src/sys/MYKERNEL i386 Build Date Sep 5 2005 13:53:21 Configure Command './configure' '--enable-versioning' = '--enable-memory-limit' '--with-layout=3DGNU' = '--with-config-file-scan-dir=3D/usr/local/etc/php' '--disable-all' = '--enable-libxml' '--with-libxml-dir=3D/usr/local' '--enable-spl' = '--with-regex=3Dphp' '--with-apxs2=3D/usr/local/sbin/apxs' = '--prefix=3D/usr/local' 'i386-portbld-freebsd5.4' --=20 Olivier G. |
From: Olivier G. <o.g...@no...> - 2007-12-28 12:44:14
|
Hello Does any of you have a full functionnal simple SPARQL file somewhere ? I just succed to have the error "Fatal error: Class 'DbModel' not found in /var/www/html/NOVACTIVE/testphp5.novactive.com/rdf/rdfapi-php/api/sparql /SparqlEngine.php on line 109"... Thanks. --=20 Olivier G. |
From: Raj K M. <kat...@gm...> - 2007-12-27 20:31:36
|
Hi, I've been trying to run simple SPARQL query without success against D2RQ Sparql endpoint and SparqlClient (RAP-0.95/PHP5). The query is a simple SELECT... doesn't give the result in array but errors our with the message "unable to parse result". But the query output is dumped as a long string following the error message. Here is the code snippet... <?php // Include all RAP classes define("RDFAPI_INCLUDE_DIR", "./rdfapi-php/api/"); include(RDFAPI_INCLUDE_DIR . "RdfAPI.php"); // Create a SPARQL client $client = ModelFactory::getSparqlClient("http://dkd2ctbpilot:8080/d2r/sparql "); $querystring = ' PREFIX vocab: <http://dkd2ctbpilot:8080/d2r/resource/vocab/> PREFIX db: <http://dkd2ctbpilot:8080/d2r/resource/> SELECT DISTINCT ?org WHERE { ?orgResource vocab:Orgs_Name ?org }' ; $query = new ClientQuery(); $query->query($querystring); $result = $client->query($query); echo count($result); print_r($result); ?> Am I missing something so obvious here? I'm a newbie to PHP and any suggestion or comment on this issue is greatly appreciated. Thanks. Regards, Raj Kathamuthu |
From: Onno P. <onn...@gm...> - 2007-11-27 13:22:41
|
>Hi. > >I am trying to develop a SOAP (nuSOAP) interface to my system but I got >a problem when I tried to include RDFAPI.php. I can't trap any error >message from the module because I don't know how to get any from >client-server (P2P) model. > >BTW, I've make sure there is no problem with function when it's run >locally. It's only problematic when it's accessed from a client. > >I really don't know what to do. Can anybody help? > >Gabriel Hi Gabriel I am project manager of a Semantic Web software project for the process and power industry. We decided to use RAP for the open-source public-domain software tools we are producing. However we NEED Sparql-in-Soap because we need security like WS-Security offers. So I contacted Chris Bizer, Richard Cyganiak etc. and we made an loose agreement that I would deliver a webservices module for RAP. We also started in NuSoap but quickly found out that RAP needs PHP-5 and that the PHP5-native Soap library is very capable, and also that the NuSoap community is slowly moving towards it. We made good working Soap modules inside RAP with PHP5-native Soap, but then we found out that DotNet clients are very picky and buggy connecting up to the 'standard' Sparql WDSL. We found out how to do it properly so that PHP, Java and DotNet clients accepted the RAP-Soap server properly. Now we have some issues to solve yet before I can offer it to Chris: 1. In a massive query comprising many Sparql queries building up a data set, the 1-after-1 Sparql query is performing very bad. It must be possible to embed many queries in one Soap envelope and send back many results in one return, and still stay within the standard API of the Sparql spec. We have some handles on that. 2. We are looking into security credentials, encryption and all that. RAP should be professional like that, shouldn't it? Onno Paap |
From: Olivier G. <o.g...@no...> - 2007-11-27 12:55:28
|
Hi everyone ! I found the source of the problem : > $idPerson = "Output.rdf#".$varPrenom.$varNom; should have been $idPerson = "#".$varPrenom.$varNom; I do not get rdf:ID anymore, but i get multiple <rdf:Description rdf:about="Output.rdf"> <foaf:Person rdf:resource="#OlivierGendrin"/> </rdf:Description> <rdf:Description rdf:about="#OlivierGendrin">[...] That are said to be valid by http://www.w3.org/RDF/Validator/. I still have to understand, but i can work now :-) |
From: Olivier G. <o.g...@no...> - 2007-11-26 12:58:27
|
Hi everyone ! At the end of the file api/model/ModelFactory.php, there is two carriage returns outside of the ?>. It causes an saved file as RSS1.0 to be incorrect as an XML file, because these caracters are at the begining of the file OR it causes the php header function to be wrong : Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/NOVACTIVE/testphp5.novactive.com/rdf/rdfapi-php/api/model/ ModelFactory.php:577) in /var/www/html/NOVACTIVE/testphp5.novactive.com/rdf/rss.php on line 31 Note that theses caracters are not present in http://sites.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/phpdoc/__filesource/f source_model__modelModelFactory.php.html, but i also have one my server one blank line between every line of the source file. Hope this helps. --=20 Olivier G. |
From: Olivier G. <o.g...@no...> - 2007-11-26 11:05:12
|
> Olivier, > > Not sure if this helps you, but this: > > rdf:ID="Foo" > > is exactly equivalent to > > rdf:about="#Foo" > > It is not allowed to have duplicate rdf:ID in an RDF/XML > document. But the rdf:about form is allowed to occur multiple times. > > Best, > Richard Thanks Richard, that's a interesting turnaround, i'll try this. But I wished RAP to do it by himself, instead of allowing to save an invalid document... Again, perhaps my script is wrong... |
From: Richard C. <ri...@cy...> - 2007-11-25 12:21:16
|
Olivier, Not sure if this helps you, but this: rdf:ID=3D"Foo" is exactly equivalent to rdf:about=3D"#Foo" It is not allowed to have duplicate rdf:ID in an RDF/XML document. But =20= the rdf:about form is allowed to occur multiple times. Best, Richard On 25 Nov 2007, at 08:33, Olivier G. wrote: > Olivier GENDRIN a =E9crit : >> I have issues in understanding how RAP handles the rdf:ID in the =20 >> models. >> > [...] >> >> I gets duplicates rdf:id. > > Does anyone have an example code to add a Statement to an existing > resource with rdf:ID ? > > > > = ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |
From: Olivier G. <oli...@fr...> - 2007-11-25 08:34:07
|
Olivier GENDRIN a écrit : > I have issues in understanding how RAP handles the rdf:ID in the models. > [...] > > I gets duplicates rdf:id. Does anyone have an example code to add a Statement to an existing resource with rdf:ID ? |
From: Olivier G. <o.g...@no...> - 2007-11-20 18:52:17
|
Why not use http://sites.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/phpdoc/model/MemModel.= htm l#unite ? =20 -- Olivier GENDRIN =96 NOVACTIVE D=E9veloppeur Web =96 R=E9f=E9rent standards et accessibilit=E9 Tel : + 33 1 48 24 33 60 Fax : + 33 1 48 24 33 54 http://www.novactive.com/=20 =20 _____ =20 De : rdf...@li... [mailto:rdf...@li...] De la part de = mat Envoy=E9 : mardi 20 novembre 2007 18:44 =C0 : rdf...@li... Objet : [Rdfapi-php-interest] [How to] merge.rdf wordnet files Hi, I've discovered that wordnet is also available in .rdf format, so I decided to import the files using the RAP api. Unfortunately wordnet = comes with lot of .rdf files so I was wondering if it was possible to merge = all the files in just one, just because I would like to perform some rdql queries in order to extract some results. Does anyone of you ever tryied = to do something similar?=20 Thanks --=20 ___mat___=20 |
From: mat <ge...@gm...> - 2007-11-20 17:44:29
|
Hi, I've discovered that wordnet is also available in .rdf format, so I decided to import the files using the RAP api. Unfortunately wordnet comes with lot of .rdf files so I was wondering if it was possible to merge all the files in just one, just because I would like to perform some rdql queries in order to extract some results. Does anyone of you ever tryied to do something similar? Thanks -- ___mat___ |
From: Gabriel H. <gab...@gm...> - 2007-11-18 16:38:10
|
Hi. I am trying to develop a SOAP (nuSOAP) interface to my system but I got a problem when I tried to include RDFAPI.php. I can't trap any error message from the module because I don't know how to get any from client-server (P2P) model. BTW, I've make sure there is no problem with function when it's run locally. It's only problematic when it's accessed from a client. I really don't know what to do. Can anybody help? Gabriel |
From: Richard C. <ri...@cy...> - 2007-11-12 12:05:24
|
mat, On 11 Nov 2007, at 22:44, mat wrote: > Hi everybody, I'm using RAP api in order to access RDF resources and > I've also took a look at powl project. I'm using the POWLStore model > (an extended dbModel) and I've used some methods like listTopClasses > (powl function) in order to view my ontology classes, but I feel > like something is missing. I'm using the classical w3c wine ontology > but I'm not able to list all the concepts, like the method > getNamedConcepts() in Jena api. Is there a similar function in RAP/ > powl? RAP provides similar functionality in its OntModel API [1]. I don't know about pOWL. Best, Richard [1] http://sites.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/tutorial/usingtheOntModelAPI.htm > > > Thanks a lot. > > -- > ___mat___ > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/_______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest |
From: mat <ge...@gm...> - 2007-11-11 22:44:23
|
Hi everybody, I'm using RAP api in order to access RDF resources and I've also took a look at powl project. I'm using the POWLStore model (an extended dbModel) and I've used some methods like listTopClasses (powl function) in order to view my ontology classes, but I feel like something is missing. I'm using the classical w3c wine ontology but I'm not able to list all the concepts, like the method getNamedConcepts() in Jena api. Is there a similar function in RAP/powl? Thanks a lot. -- ___mat___ |
From: Olivier G. <o.g...@no...> - 2007-11-02 12:31:58
|
Hi ! (First begginer question) I have issues in understanding how RAP handles the rdf:ID in the models. If i have this code : <?php define("RDFAPI_INCLUDE_DIR",$_SERVER['DOCUMENT_ROOT']."/rdf/rdfapi-php/ap= i/"); include(RDFAPI_INCLUDE_DIR . "RdfAPI.php"); // Filename of an RDF document $base=3D"Output.rdf"; // Create a new MemModel $model =3D ModelFactory::getDefaultModel(); // Load and parse document $model->load($base); $model->index(0); $varPrenom =3D ucfirst(strtolower($_GET['prenom'])); $varNom =3D ucfirst(strtolower($_GET['nom'])); $idPerson =3D "Output.rdf#".$varPrenom.$varNom; if ($_GET['submit'] && $_GET['prenom'] && $_GET['nom'] && $_GET['add'] ) = { $statementNewPerson =3D new Statement( new Resource("Output.rdf"), new Resource("http://xmlns.com/foaf/0.1/person"), new Resource($idPerson) ); if (!$model->contains($statementNewPerson)) = $model->add($statementNewPerson); $statementName =3D new Statement( new Resource($idPerson), new Resource("http://xmlns.com/foaf/0.1/name"), new Literal($varPrenom." ".$varNom) ); if (!$model->contains($statementName)) $model->add($statementName); //Others adds. } $model->saveAs("Output.rdf"); $model->close(); ?> I gets duplicates rdf:id. What am I doing/understanding wrong ?=20 --=20 Olivier GENDRIN - NOVACTIVE D=E9veloppeur Web - R=E9f=E9rent standards et accessibilit=E9 Tel : + 33 1 48 24 33 60 Fax : + 33 1 48 24 33 54 http://www.novactive.com/ |