You can subscribe to this list here.
2005 |
Jan
|
Feb
(16) |
Mar
(6) |
Apr
(38) |
May
(23) |
Jun
(5) |
Jul
(1) |
Aug
|
Sep
(10) |
Oct
(7) |
Nov
(6) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(20) |
Feb
(32) |
Mar
(24) |
Apr
(29) |
May
(5) |
Jun
(10) |
Jul
(12) |
Aug
(7) |
Sep
(1) |
Oct
(2) |
Nov
(27) |
Dec
(4) |
2007 |
Jan
(37) |
Feb
(10) |
Mar
(19) |
Apr
(10) |
May
(10) |
Jun
(7) |
Jul
(19) |
Aug
(29) |
Sep
(5) |
Oct
(17) |
Nov
(14) |
Dec
(2) |
2008 |
Jan
(4) |
Feb
(4) |
Mar
|
Apr
(8) |
May
|
Jun
(8) |
Jul
(1) |
Aug
(7) |
Sep
|
Oct
(1) |
Nov
(4) |
Dec
|
2009 |
Jan
|
Feb
(1) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(2) |
2010 |
Jan
|
Feb
(2) |
Mar
(2) |
Apr
|
May
(4) |
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(4) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(2) |
2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Richard C. <ri...@cy...> - 2006-02-23 16:56:50
|
Hi Charles, On 21 Feb 2006, at 02:29, Charles Nepote wrote: > I would like to show a given triple on a web page, via an input > parameter (GET, POST or SESSION). > For example : http://example.org/?triple=jhfff4sd2qd > > What are the ways to do it ? Are there some best pratices for that ? > Reification ? Graphs ? Hashes ? Is there a built in method in RAP ?... > > Note that I wouldn't use a GET with s, p ,o inside (as RAP web > utils) as there will be limits with big literals... Then why don't you use the same simple scheme with POST? Alternatively, I'd consider using GET and supporting a second form of query with parameters s, p, and o_hash. The first two are like before, the third one is, say, an MD5 hash of the literal (including its datatype or language tag). To reconstruct the right object on the server side, you'd have to do a find(s, p, ANY), calculate the hashes for each result object, and check if one is equal to the given o_hash. This should work with existing triple stores (like RAP's DB model) and should be reasonably fast because no more than a handful of hashes need to be calculated per request. All other solutions I can think of would be a lot more work or much slower. Richard > > Charles Nepote > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |
From: <tob...@we...> - 2006-02-21 08:38:30
|
Hi Richard, > > On 20 Feb 2006, at 12:22, Tobias Gauß wrote: > >> Hi Richard, >> Have you selected the right packages "OntModel" or "utility" from >> the drop down box ? > > > D'oh, I missed that one. Sorry about that. > > Then, why are class names not linked when the class is in a different > package? For example, in the MemModel doc, FindIterator and > StatementIterator and RdqlResultIterator are not linked. Can this be > changed? you are right. I'll try to chance that in the next release. Cheers, Tobias > > Cheers, > Richard > > >> >> Regards, >> Tobias >> >>> Hi, >>> >>> I noticed that some classes are missing from the PHPDoc documentation: >>> >>> OntModel >>> RDFUtil (which is mentioned in the docs for Model::visualize) >>> Various Iterator classes returned from Model, MemModel and DbModel >>> >>> Are they excluded on purpose? I suggest to add them back in. Not >>> having documentation for these classes makes RAP harder to use. >>> You have to read the source to figure out how to use them. >>> >>> Best, >>> Richard >>> >>> >>> ------------------------------------------------------- >>> This SF.net email is sponsored by: Splunk Inc. Do you grep through >>> log files >>> for problems? Stop! Download the new AJAX search engine that makes >>> searching your log files as easy as surfing the web. DOWNLOAD >>> SPLUNK! >>> http://sel.as-us.falkag.net/sel? >>> cmd=lnk&kid=103432&bid=230486&dat=121642 >>> _______________________________________________ >>> Rdfapi-php-interest mailing list >>> Rdf...@li... >>> https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest >> >> >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. Do you grep through >> log files >> for problems? Stop! Download the new AJAX search engine that makes >> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=103432&bid=230486&dat=121642 >> _______________________________________________ >> Rdfapi-php-interest mailing list >> Rdf...@li... >> https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest >> > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest |
From: Charles N. <cha...@ne...> - 2006-02-21 01:29:28
|
Hi, I would like to show a given triple on a web page, via an input parameter (GET, POST or SESSION). For example : http://example.org/?triple=jhfff4sd2qd What are the ways to do it ? Are there some best pratices for that ? Reification ? Graphs ? Hashes ? Is there a built in method in RAP ?... Note that I wouldn't use a GET with s, p ,o inside (as RAP web utils) as there will be limits with big literals... Charles Nepote |
From: Richard C. <ri...@cy...> - 2006-02-20 18:33:21
|
On 20 Feb 2006, at 12:22, Tobias Gau=DF wrote: > Hi Richard, > Have you selected the right packages "OntModel" or "utility" from =20= > the drop down box ? D'oh, I missed that one. Sorry about that. Then, why are class names not linked when the class is in a different =20= package? For example, in the MemModel doc, FindIterator and =20 StatementIterator and RdqlResultIterator are not linked. Can this be =20 changed? Cheers, Richard > > Regards, > Tobias > >> Hi, >> >> I noticed that some classes are missing from the PHPDoc =20 >> documentation: >> >> OntModel >> RDFUtil (which is mentioned in the docs for Model::visualize) >> Various Iterator classes returned from Model, MemModel and DbModel >> >> Are they excluded on purpose? I suggest to add them back in. Not =20 >> having documentation for these classes makes RAP harder to use. =20 >> You have to read the source to figure out how to use them. >> >> Best, >> Richard >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. Do you grep through =20= >> log files >> for problems? Stop! Download the new AJAX search engine that makes >> searching your log files as easy as surfing the web. DOWNLOAD =20 >> SPLUNK! >> http://sel.as-us.falkag.net/sel?=20 >> cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=3D121642 >> _______________________________________________ >> Rdfapi-php-interest mailing list >> Rdf...@li... >> https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through =20 > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD =20 > SPLUNK! > http://sel.as-us.falkag.net/sel?=20 > cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=3D121642 > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |
From: <tob...@we...> - 2006-02-20 11:22:14
|
Hi Richard, Have you selected the right packages "OntModel" or "utility" from the drop down box ? Regards, Tobias > Hi, > > I noticed that some classes are missing from the PHPDoc documentation: > > OntModel > RDFUtil (which is mentioned in the docs for Model::visualize) > Various Iterator classes returned from Model, MemModel and DbModel > > Are they excluded on purpose? I suggest to add them back in. Not > having documentation for these classes makes RAP harder to use. You > have to read the source to figure out how to use them. > > Best, > Richard > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest |
From: Richard C. <ri...@cy...> - 2006-02-19 10:37:18
|
Hi, I noticed that some classes are missing from the PHPDoc documentation: OntModel RDFUtil (which is mentioned in the docs for Model::visualize) Various Iterator classes returned from Model, MemModel and DbModel Are they excluded on purpose? I suggest to add them back in. Not having documentation for these classes makes RAP harder to use. You have to read the source to figure out how to use them. Best, Richard |
From: Richard C. <ri...@cy...> - 2006-02-19 10:36:29
|
Hi, The setBaseURI method of RAP's MemModel and DbModel always appends a '#' to the base URI (unless the URI already ends in #, :, /, or \). Why is this? It doesn't seem quite right to me. Base URIs without a hash at the end are perfectly legal (and more correct, IMO). Adding the hash gets in the way in some situations, e.g. dealing with metadata attached to the <> URI, and round-tripping. Also, I think it's quite reasonable that after executing the following code, $a and $b should be equal if $a contains a legal base URI: $model->setBaseURI($a); $b = $model->getBaseURI(); (And in RAP, $a and $b would often not be equal because of this.) So, unless I'm missing something important, I suggest to remove this quirk. Best, Richard |
From: Teemu S. <ts...@ik...> - 2006-02-17 06:48:12
|
On Thu, 9 Feb 2006, Fen Labalme wrote: > (Sticking to open source will enable us to re-use the technology for > future projects non-profit and civil advocacy clients.) But I have to say, > they have a nice solution. > > Anyway, I've been looking a bit at RAP, Swish-E, Redland, SIMILE, Sesame, > Flamenco and the OAI-PMH initiative, none of which are really aimed at faceted > search, though they offer tools to help. I've got some experience with RDF > from the P3P and FOAF communities, but I am in no way an expert, and truth be > told, I'm a bit at a loss to even understand the architecture of such a search > engine. > Hi, Sorry for the late reply. Another faceted browsing/search solution you might want to take a look at is the SWED portal [1], it's a web portal that's content is stored as RDF and the code is available, so it's fairly easy to bring in new data sets as the basis of the portal. SIMILE project's longwell is also easily adapted into new datasets. Folks at the W3C semantic-web mailing list[3] would probably be able to give out more pointers. [1] http://www.swed.org.uk/swed/index.html [2] http://simile.mit.edu/longwell/ [3] http://lists.w3.org/Archives/Public/semantic-web/ Regards, Teemu -- Teemu Sidoroff | | Yet another | ts...@ik... | e-mail read | http://www.iki.fi/tsido/ | by Echelon? | |
From: Richard C. <ri...@cy...> - 2006-02-16 01:04:48
|
Hi Charles, What you're doing looks fine to me. There could be a bug somewhere in RAP. Can you please give an exact, minimal example that produces the error? Are you using a DB model directly, or is it wrapped in an OntModel or InfModel? I'm puzzled because line 524 is in findFirstMatchingStatement(...), not in find(...). Also, which PHP version are you using? Richard On 16 Feb 2006, at 01:15, Charles Nepote wrote: > $res_model = $this->dbModel->find(NULL, NULL, new Resource("http:// > www.w3.org/1999/02/22-rdf-syntax-ns#type")); > > => is OK. > > > $res_model = $this->dbModel->find(new Resource("http://www.w3.org/ > 1999/02/22-rdf-syntax-ns#type"), NULL, NULL); > > => give : Fatal error: RDFAPI error (class: DbModel; method: find): > Parameters must be subclasses of Node or NULL in /var/www/wikisem/ > rdfapi-php093/api/model/DbModel.php on line 524 > > I can't understand where is the problem... > Do I misunderstand the "find" method ? > > Charles Nepote > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |
From: Richard C. <ri...@cy...> - 2006-02-16 00:52:01
|
Hi Charles, On 16 Feb 2006, at 01:10, Charles Nepote wrote: > Here is my code which is working well. > function GetPrefixFromURi($uri) > { > $namespaces = $this->dbModel->getParsedNamespaces(); > foreach($namespaces as $namespace_URI => $namespace_prefix) > { > if($namespace_URI == $uri) > { > $return = $namespace_prefix; > break; > } > } > if(!isset($return)) $return = ""; > return $return; > } You can do this shorter: function getPrefixFromURI($uri) { $prefixes = $this->dbModel->getParsedNamespaces(); return @$prefixes[$uri]; } (Well, this returns null instead of "" if the prefix is not declared, but I think that's reasonable.) > Why not include this function directly in RAP (rewritten)? I think > getting the prefix is a very common need (am I wrong?). You're right, it's a common need. The code above is short and self- explanatory, I think you can use it directly without a custom function. Best, Richard > > > Charles Nepote. > > >> On 8 Feb 2006, at 00:29, Charles Nepote wrote: >>> Hi, >>> >>> Using RAP 0.9.3, I would like to know the namespace for a given >>> prefix. >>> For exemple, I would like to know for the string "rdfs" what is >>> the corresponding namespace ; in this exemple the answer should >>> be : >>> "http://www.w3.org/2000/01/rdf-schema#" >>> >>> Is there a ready-to-use method ? I didn't find it... >>> >>> Thanks, >>> Charles Nepote > > |
From: Charles N. <cha...@ne...> - 2006-02-16 00:14:53
|
$res_model = $this->dbModel->find(NULL, NULL, new Resource("http://www.w3.org/1999/02/22-rdf-syntax-ns#type")); => is OK. $res_model = $this->dbModel->find(new Resource("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"), NULL, NULL); => give : Fatal error: RDFAPI error (class: DbModel; method: find): Parameters must be subclasses of Node or NULL in /var/www/wikisem/rdfapi-php093/api/model/DbModel.php on line 524 I can't understand where is the problem... Do I misunderstand the "find" method ? Charles Nepote |
From: Charles N. <cha...@ne...> - 2006-02-16 00:10:27
|
Richard Cyganiak wrote : > Hi Charles, > > did you see the $model->getParsedNamespaces() method? Returns an > associative namespaces from prefixes to namespace URIs. It should do > what you want. > > Richard Ok. Thank you Tobias and Richard. Here is my code which is working well. function GetPrefixFromURi($uri) { $namespaces = $this->dbModel->getParsedNamespaces(); foreach($namespaces as $namespace_URI => $namespace_prefix) { if($namespace_URI == $uri) { $return = $namespace_prefix; break; } } if(!isset($return)) $return = ""; return $return; } Why not include this function directly in RAP (rewritten)? I think getting the prefix is a very common need (am I wrong?). Charles Nepote. > On 8 Feb 2006, at 00:29, Charles Nepote wrote: > >> Hi, >> >> Using RAP 0.9.3, I would like to know the namespace for a given prefix. >> For exemple, I would like to know for the string "rdfs" what is the >> corresponding namespace ; in this exemple the answer should be : >> "http://www.w3.org/2000/01/rdf-schema#" >> >> Is there a ready-to-use method ? I didn't find it... >> >> Thanks, >> Charles Nepote |
From: Fen L. <fe...@ci...> - 2006-02-09 20:37:35
|
Hi - I'm working with a small, 100% F/OSS online services company that has a contract to create a faceted search facility for non-profit artist communities across the country. For example, if a San Francisco artist was looking for a performance space in Chicago, she could use this to find a performance space seating 500-1000 with sound amplification and other "facets". Data will initially be statically imported from an initial set of 4-6 participating organizations, but is expected to grow to many more feeds - probably via RSS - in the foreseeable future. I've been looking for open source platforms that can provide us the capabilities we're looking for without much luck. We've talked to Siderean who will give us their Seamark server for (nearly) free since we're building for use by non-profits, but I'd really rather not use commercial code if I can help it. (Sticking to open source will enable us to re-use the technology for future projects non-profit and civil advocacy clients.) But I have to say, they have a nice solution. Anyway, I've been looking a bit at RAP, Swish-E, Redland, SIMILE, Sesame, Flamenco and the OAI-PMH initiative, none of which are really aimed at faceted search, though they offer tools to help. I've got some experience with RDF from the P3P and FOAF communities, but I am in no way an expert, and truth be told, I'm a bit at a loss to even understand the architecture of such a search engine. Any insights and/or suggestions will be most welcome. BTW: I also have a small contract available for a month or two part-time work to help with this project. Please do not post this offer elsewhere. Thank you, =Fen -- Fen Labalme Technology Consultant CivicActions, LLC |
From: Richard C. <ri...@cy...> - 2006-02-08 20:08:31
|
Hi Charles, did you see the $model->getParsedNamespaces() method? Returns an associative namespaces from prefixes to namespace URIs. It should do what you want. Richard On 8 Feb 2006, at 00:29, Charles Nepote wrote: > Hi, > > Using RAP 0.9.3, I would like to know the namespace for a given > prefix. > For exemple, I would like to know for the string "rdfs" what is the > corresponding namespace ; in this exemple the answer should be : > "http://www.w3.org/2000/01/rdf-schema#" > > Is there a ready-to-use method ? I didn't find it... > > Thanks, > Charles Nepote > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |
From: Charles N. <cha...@ne...> - 2006-02-07 23:29:02
|
Hi, Using RAP 0.9.3, I would like to know the namespace for a given prefix. For exemple, I would like to know for the string "rdfs" what is the corresponding namespace ; in this exemple the answer should be : "http://www.w3.org/2000/01/rdf-schema#" Is there a ready-to-use method ? I didn't find it... Thanks, Charles Nepote |
From: John V. <ja...@gm...> - 2006-02-04 05:33:41
|
Hi, I have a few rdf files I have been working with that declare a set of entities in a dtd, and use these in the rdf content. They are set up like this so that a different dtd file is selected for each language, in the same way that the Mozilla browser provides l10n. Does RAP support automatically replacing the references with the actual val= ues? If I merge the desired dtd file into the rdf, will the parser pick them up? -- John |
From: <tob...@we...> - 2006-02-01 14:50:53
|
Hi Luigi, are there any error messages? Maybe you have to use the complete path in the modelmap array: "foaf" => "file:/C:/Luigi/Apache/Apache2/htdocs/rdf_api/netapi/foaf.rdf". Let me know if this works. Regards, Tobias > Hi all, > I am trying to build a REST web service using the Net API. I have done > the following: > > 1) enabled the rewrite module in the httpd.conf file > > 2) the output_buffering in my php.ini was already set to 4096 and I > did not change it > > 3) changed the RewriteBase to /rdf_api/netapi/ in the .htaccess file > (the complete path is C:\Luigi\Apache\Apache2\htdocs\rdf_api\netapi) > 4) changed the modelmap array to add a model stored in a file to > > "foaf" => "file:/rdf_api/netapi/foaf.rdf" > > 5) copied the file foaf.rdf into > C:\Luigi\Apache\Apache2\htdocs\rdf_api\netapi > > After all these settings I tried to download the model pointing the > browser to the uri: http://localhost/rdf_api/netapi/foaf but nothing > happened. Does someone know whether some setting is wrong ? Thanks > > Luigi > > Luigi Selmi > > P.zza Roselle, 12 00179 Roma > > skype: luigiselmi > > yahoochatid: luigi_selmi > > web1: http://www.sharesemantics.com |
From: Luigi S. <sel...@ho...> - 2006-02-01 11:24:41
|
<html><div style='background-color:'><P>Hi all,</P> <P>I am trying to build a REST web service using the Net API. I have done the following:</P> <P>1) enabled the rewrite module in the httpd.conf file</P> <P>2) the output_buffering in my php.ini was already set to 4096 and I did not change it</P> <P>3) changed the RewriteBase to <FONT size=2>/rdf_api/netapi/ in the .htaccess file (the complete path is C:\Luigi\Apache\Apache2\htdocs\rdf_api\netapi)</FONT><BR>4) changed the modelmap array to add a model stored in a file to <FONT size=2></P> <P>"foaf" => "file:/rdf_api/netapi/foaf.rdf"</P> <P>5) copied the file foaf.rdf into C:\Luigi\Apache\Apache2\htdocs\rdf_api\netapi</P> <P>After all these settings I tried to download the model pointing the browser to the uri: <A href="http://localhost/rdf_api/netapi/foaf">http://localhost/rdf_api/netapi/foaf</A> but nothing happened. Does someone know whether some setting is wrong ? Thanks</P> <P>Luigi</FONT><BR><BR></P> <DIV> <P><FONT color=#0033cc>Luigi Selmi</FONT></P> <P><FONT color=#0033cc>P.zza Roselle, 12 00179 Roma</FONT></P> <P><FONT color=#0033cc>skype: luigiselmi</FONT></P> <P><FONT color=#0033cc>yahoochatid: luigi_selmi</FONT></P> <DIV><FONT color=#0033cc>web1: <A href="http://www.sharesemantics.com">http://www.sharesemantics.com</A></FONT></DIV></DIV></div></html> |
From: <tob...@we...> - 2006-01-31 07:33:37
|
Hi Luigi, in your query the colon after 'foaf' in the PREFIX clause is missing.' Try this query string: PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?name WHERE { ?x foaf:name ?name } Regards, Tobias >Send Rdfapi-php-interest mailing list submissions to > rdf...@li... > >To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest >or, via email, send a message with subject or body 'help' to > rdf...@li... > >You can reach the person managing the list at > rdf...@li... > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of Rdfapi-php-interest digest..." > > >Today's Topics: > > 1. SPARQL FOAF file (Luigi Selmi) > 2. Re: SPARQL FOAF file (Benjamin Nowack) > >--__--__-- > >Message: 1 >From: "Luigi Selmi" <sel...@ho...> >To: rdf...@li... >Date: Mon, 30 Jan 2006 14:09:43 +0000 >Subject: [Rdfapi-php-interest] SPARQL FOAF file > ><html><div style='background-color:'><P>Hi All, </P> ><P>I tried to query a foaf model using the sparl engine but it did not work. I made the following foaf file using the foaf-a-matic web service (<A href="http://www.ldodds.com/foaf/foaf-a-matic.html">http://www.ldodds.com/foaf/foaf-a-matic.html</A>):</P> ><P><rdf:RDF<BR> xmlns:rdf="<A href="http://www.w3.org/1999/02/22-rdf-syntax-ns">http://www.w3.org/1999/02/22-rdf-syntax-ns</A>#"<BR> xmlns:rdfs="<A href="http://www.w3.org/2000/01/rdf-schema">http://www.w3.org/2000/01/rdf-schema</A>#"<BR> xmlns:foaf="<A href="http://xmlns.com/foaf/0.1/">http://xmlns.com/foaf/0.1/</A>"<BR> xmlns:admin="<A href="http://webns.net/mvcb/">http://webns.net/mvcb/</A>"><BR><foaf:PersonalProfileDocument rdf:about=""><BR> <foaf:maker rdf:resource="#me"/><BR> <foaf:primaryTopic rdf:resource="#me"/><BR> <admin:generatorAgent rdf:resource="<A href='http://www.ldodds.com/foaf/foaf-a-matic"/'>http://www.ldodds.com/foaf/foaf-a-matic"/</A>><BR> <admin:errorReportsTo rdf:resource="<A >href='mailto:le...@ld..."/'>mailto:le...@ld..."/</A>><BR></foaf:PersonalProfileDocument><BR><foaf:Person rdf:ID="me"><BR><foaf:name>Luigi Selmi</foaf:name><BR><foaf:title>Mr</foaf:title><BR><foaf:givenname>Luigi</foaf:givenname><BR><foaf:family_name>Selmi</foaf:family_name><BR><foaf:nick>Luigi</foaf:nick><BR><foaf:mbox_sha1sum>799ffcad6c44171ef4ec2d863d7cd9aca869982c</foaf:mbox_sha1sum><BR><foaf:workplaceHomepage rdf:resource="<A href='http://www.sharesemantics.com"/></foaf:Person'>http://www.sharesemantics.com"/></foaf:Person</A>><BR></rdf:RDF></P> ><P>then I wrote the following chunk of php code to make the query and execute it :</P><FONT size=2> ><P>// Show the input model</P> ><P>$model->writeAsHtmlTable();</P></FONT><FONT size=2> ><P>PREFIX foaf <http://xmlns.com/foaf/0.1/></P> ><P>SELECT ?name</P> ><P>WHERE { </FONT><FONT face="Times New Roman" size=3>?x</FONT><FONT size=2> foaf:name ?name</P> ><P>}';</P> ><P>// Execute the query</P> ><P>$result = $model->sparqlQuery($querystring); </P> ><P>but it never worked out. It prints out the model correctly but don't find the person's name . Everything goes well with vcard and dublincore name spaces. Maybe my query is incorrect. Can anyone give a working example? Thanks</P> ><P>Luigi</P> ><P></FONT><BR><BR><BR> </P> ><DIV> ><P><FONT color=#0033cc></FONT> </P></DIV></div></html> > > > >--__--__-- > >Message: 2 >Date: Mon, 30 Jan 2006 15:45:17 +0100 >To: "Luigi Selmi" <sel...@ho...> >Cc: rdf...@li... >From: Benjamin Nowack <bn...@ap...> >Subject: Re: [Rdfapi-php-interest] SPARQL FOAF file >Organization: appmosphere web applications > > >Hi Luigi, >looks like the colon after "foaf" in the prefix declaration is >missing: 'PREFIX foaf: <http://xmlns.com/foaf/0.1/>'. > >benjamin > >-- >Benjamin Nowack > >Kruppstr. 100 >45145 Essen, Germany >http://www.bnode.org/ > > >On 30.01.2006 14:09:43, Luigi Selmi wrote: > > >><html><div style=3D'background-color:'><P>Hi All, </P> >><P>I tried to query a foaf model using the sparl engine but it did = >> >> >not > > >>work. I made the following foaf file using the foaf-a-matic web = >> >> >service > > >>(<A >>href= >> >> >=3D"http://www.ldodds.com/foaf/foaf-a-matic.html">http://www.ldodds.com/fo= >af/ > > >>foaf-a-matic.html</A>):</P> >><P><rdf:RDF<BR> xmlns:rdf=3D"<A >>href= >> >> >=3D"http://www.w3.org/1999/02/22-rdf-syntax-ns">http://www.w3.org/1999/02/= >22- > > >>rdf-syntax-ns</A>#"<BR> xmlns:rdfs=3D"<A >>href= >> >> >=3D"http://www.w3.org/2000/01/rdf-schema">http://www.w3.org/2000/01/rdf-sc= >hem > > >>a</A>#"<BR> xmlns:foaf=3D"<A >>href= >> >> >=3D"http://xmlns.com/foaf/0.1/">http://xmlns.com/foaf/0.1/</A>"<BR> = >&nbs > > >>p; xmlns:admin=3D"<A >>href= >> >> >=3D"http://webns.net/mvcb/">http://webns.net/mvcb/</A>"><BR><= >foaf:Perso > > >>nalProfileDocument rdf:about=3D""><BR> <foaf:maker >>rdf:resource=3D"#me"/><BR> <foaf:primaryTopic >>rdf:resource=3D"#me"/><BR> <admin:generatorAgent = >> >> >rdf:resource=3D"<A > > >>href= >> >> >=3D'http://www.ldodds.com/foaf/foaf-a-matic"/'>http://www.ldodds.com/foaf/= >foa > > >>f-a-matic"/</A>><BR> <admin:errorReportsTo = >> >> >rdf:resource=3D"<A > > >>href= >> >> >=3D'mailto:le...@ld..."/'>mailto:le...@ld..."/</A>><BR><= >/foaf > > >>:PersonalProfileDocument><BR><foaf:Person >>rdf:ID=3D"me"><BR><foaf:name>Luigi >>Selmi</foaf:name><BR><foaf:title>Mr</foaf:title>= >> >> ><BR><foaf: > > >>givenname>Luigi</foaf:givenname><BR><foaf:family_name>= >> >> >Selmi</ > > >>foaf:family_name><BR><foaf:nick>Luigi</foaf:nick><BR><= >> >> >foaf:mb > > >>ox_sha1sum>799ffcad6c44171ef4ec2d863d7cd9aca869982c<= >> >> >/foaf:mbox_sha1sum> > > >>;<BR><foaf:workplaceHomepage rdf:resource=3D"<A >>href= >> >> >=3D'http://www.sharesemantics.com"/></foaf:Person'>http://www.sharesemanti= >cs. > > >>com"/></foaf:Person</A>><BR></rdf:RDF></P> >><P>then I wrote the following chunk of php code to make the query and = >> >> >execute > > >>it :</P><FONT size=3D2> >><P>// Show the input model</P> >><P>$model->writeAsHtmlTable();</P></FONT><FONT size=3D2> >><P>PREFIX foaf <http://xmlns.com/foaf/0.1/></P> >><P>SELECT ?name</P> >><P>WHERE { </FONT><FONT face=3D"Times New Roman" size=3D3>?x</FONT><FONT = >> >> >size=3D2> > > >>foaf:name ?name</P> >><P>}';</P> >><P>// Execute the query</P> >><P>$result =3D $model->sparqlQuery($querystring); </P> >><P>but it never worked out. It prints out the model correctly but don't = >> >> >find > > >>the person's name . Everything goes well with vcard and dublincore = >> >> >name > > >>spaces. Maybe my query is incorrect. Can anyone give a working example? >>Thanks</P> >><P>Luigi</P> >><P></FONT><BR><BR><BR> </P> >><DIV> >><P><FONT color=3D#0033cc></FONT> </P></DIV></div></html> >> >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: Splunk Inc. Do you grep through log = >> >> >files > > >>for problems? Stop! Download the new AJAX search engine that makes >>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >>http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= >> >> >=3D121642 > > >>_______________________________________________ >>Rdfapi-php-interest mailing list >>Rdf...@li... >>https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest >> >> >> >> > > > > >--__--__-- > >_______________________________________________ >Rdfapi-php-interest mailing list >Rdf...@li... >https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > >End of Rdfapi-php-interest Digest > > |
From: Benjamin N. <bn...@ap...> - 2006-01-30 14:45:28
|
Hi Luigi, looks like the colon after "foaf" in the prefix declaration is missing: 'PREFIX foaf: <http://xmlns.com/foaf/0.1/>'. benjamin -- Benjamin Nowack Kruppstr. 100 45145 Essen, Germany http://www.bnode.org/ On 30.01.2006 14:09:43, Luigi Selmi wrote: ><html><div style=3D'background-color:'><P>Hi All, </P> ><P>I tried to query a foaf model using the sparl engine but it did = not >work. I made the following foaf file using the foaf-a-matic web = service >(<A >href= =3D"http://www.ldodds.com/foaf/foaf-a-matic.html">http://www.ldodds.com/fo= af/ >foaf-a-matic.html</A>):</P> ><P><rdf:RDF<BR> xmlns:rdf=3D"<A >href= =3D"http://www.w3.org/1999/02/22-rdf-syntax-ns">http://www.w3.org/1999/02/= 22- >rdf-syntax-ns</A>#"<BR> xmlns:rdfs=3D"<A >href= =3D"http://www.w3.org/2000/01/rdf-schema">http://www.w3.org/2000/01/rdf-sc= hem >a</A>#"<BR> xmlns:foaf=3D"<A >href= =3D"http://xmlns.com/foaf/0.1/">http://xmlns.com/foaf/0.1/</A>"<BR> = &nbs >p; xmlns:admin=3D"<A >href= =3D"http://webns.net/mvcb/">http://webns.net/mvcb/</A>"><BR><= foaf:Perso >nalProfileDocument rdf:about=3D""><BR> <foaf:maker >rdf:resource=3D"#me"/><BR> <foaf:primaryTopic >rdf:resource=3D"#me"/><BR> <admin:generatorAgent = rdf:resource=3D"<A >href= =3D'http://www.ldodds.com/foaf/foaf-a-matic"/'>http://www.ldodds.com/foaf/= foa >f-a-matic"/</A>><BR> <admin:errorReportsTo = rdf:resource=3D"<A >href= =3D'mailto:le...@ld..."/'>mailto:le...@ld..."/</A>><BR><= /foaf >:PersonalProfileDocument><BR><foaf:Person >rdf:ID=3D"me"><BR><foaf:name>Luigi >Selmi</foaf:name><BR><foaf:title>Mr</foaf:title>= <BR><foaf: >givenname>Luigi</foaf:givenname><BR><foaf:family_name>= Selmi</ >foaf:family_name><BR><foaf:nick>Luigi</foaf:nick><BR><= foaf:mb >ox_sha1sum>799ffcad6c44171ef4ec2d863d7cd9aca869982c<= /foaf:mbox_sha1sum> >;<BR><foaf:workplaceHomepage rdf:resource=3D"<A >href= =3D'http://www.sharesemantics.com"/></foaf:Person'>http://www.sharesemanti= cs. >com"/></foaf:Person</A>><BR></rdf:RDF></P> ><P>then I wrote the following chunk of php code to make the query and = execute >it :</P><FONT size=3D2> ><P>// Show the input model</P> ><P>$model->writeAsHtmlTable();</P></FONT><FONT size=3D2> ><P>PREFIX foaf <http://xmlns.com/foaf/0.1/></P> ><P>SELECT ?name</P> ><P>WHERE { </FONT><FONT face=3D"Times New Roman" size=3D3>?x</FONT><FONT = size=3D2> >foaf:name ?name</P> ><P>}';</P> ><P>// Execute the query</P> ><P>$result =3D $model->sparqlQuery($querystring); </P> ><P>but it never worked out. It prints out the model correctly but don't = find >the person's name . Everything goes well with vcard and dublincore = name >spaces. Maybe my query is incorrect. Can anyone give a working example? >Thanks</P> ><P>Luigi</P> ><P></FONT><BR><BR><BR> </P> ><DIV> ><P><FONT color=3D#0033cc></FONT> </P></DIV></div></html> > > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log = files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 >_______________________________________________ >Rdfapi-php-interest mailing list >Rdf...@li... >https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > |
From: Luigi S. <sel...@ho...> - 2006-01-30 14:09:57
|
<html><div style='background-color:'><P>Hi All, </P> <P>I tried to query a foaf model using the sparl engine but it did not work. I made the following foaf file using the foaf-a-matic web service (<A href="http://www.ldodds.com/foaf/foaf-a-matic.html">http://www.ldodds.com/foaf/foaf-a-matic.html</A>):</P> <P><rdf:RDF<BR> xmlns:rdf="<A href="http://www.w3.org/1999/02/22-rdf-syntax-ns">http://www.w3.org/1999/02/22-rdf-syntax-ns</A>#"<BR> xmlns:rdfs="<A href="http://www.w3.org/2000/01/rdf-schema">http://www.w3.org/2000/01/rdf-schema</A>#"<BR> xmlns:foaf="<A href="http://xmlns.com/foaf/0.1/">http://xmlns.com/foaf/0.1/</A>"<BR> xmlns:admin="<A href="http://webns.net/mvcb/">http://webns.net/mvcb/</A>"><BR><foaf:PersonalProfileDocument rdf:about=""><BR> <foaf:maker rdf:resource="#me"/><BR> <foaf:primaryTopic rdf:resource="#me"/><BR> <admin:generatorAgent rdf:resource="<A href='http://www.ldodds.com/foaf/foaf-a-matic"/'>http://www.ldodds.com/foaf/foaf-a-matic"/</A>><BR> <admin:errorReportsTo rdf:resource="<A href='mailto:le...@ld..."/'>mailto:le...@ld..."/</A>><BR></foaf:PersonalProfileDocument><BR><foaf:Person rdf:ID="me"><BR><foaf:name>Luigi Selmi</foaf:name><BR><foaf:title>Mr</foaf:title><BR><foaf:givenname>Luigi</foaf:givenname><BR><foaf:family_name>Selmi</foaf:family_name><BR><foaf:nick>Luigi</foaf:nick><BR><foaf:mbox_sha1sum>799ffcad6c44171ef4ec2d863d7cd9aca869982c</foaf:mbox_sha1sum><BR><foaf:workplaceHomepage rdf:resource="<A href='http://www.sharesemantics.com"/></foaf:Person'>http://www.sharesemantics.com"/></foaf:Person</A>><BR></rdf:RDF></P> <P>then I wrote the following chunk of php code to make the query and execute it :</P><FONT size=2> <P>// Show the input model</P> <P>$model->writeAsHtmlTable();</P></FONT><FONT size=2> <P>PREFIX foaf <http://xmlns.com/foaf/0.1/></P> <P>SELECT ?name</P> <P>WHERE { </FONT><FONT face="Times New Roman" size=3>?x</FONT><FONT size=2> foaf:name ?name</P> <P>}';</P> <P>// Execute the query</P> <P>$result = $model->sparqlQuery($querystring); </P> <P>but it never worked out. It prints out the model correctly but don't find the person's name . Everything goes well with vcard and dublincore name spaces. Maybe my query is incorrect. Can anyone give a working example? Thanks</P> <P>Luigi</P> <P></FONT><BR><BR><BR> </P> <DIV> <P><FONT color=#0033cc></FONT> </P></DIV></div></html> |
From: Seaborne, A. <and...@hp...> - 2006-01-26 11:58:56
|
-------- Original Message -------- > From: John Vandenberg <mailto:ja...@gm...> > Date: 26 January 2006 11:50 >=20 > On 26/01/06, Seaborne, Andy <and...@hp...> wrote: > >=20 > >=20 > > John Vandenberg wrote: > > > Hi, > > >=20 > > > I am trying to select a set of data out of a Mozilla extension > > > install.rdf file. I am using SPARQL because it will be easy for > > > developers to pick up and learn. > > >=20 > > > My problem is that when an optional entry doesnt exist (iconURL), > > > none of the fields are returned. This is the query I was trying to > > > perform.=20 > > >=20 > > > SELECT ?version, ?name, ?description, ?creator, ?icon WHERE (?x, > > > <em:version>, ?version), (?x, <em:name>, ?name), > > > (?x, <em:description>, ?description), > > > (?x, <em:creator>, ?creator), > > > (?x, <em:iconURL>, ?icon) > > > USING em FOR <http://www.mozilla.org/2004/em-rdf#> > > >=20 > > > To work around this, I am individually selecting each optional piece > > > of data. Can this be improved on? > > >=20 > > > -- > > > John > >=20 > >=20 > > That syntax is RDQL not SPARQL. >=20 > Sorry for the confusion; I am in the process of converting to SPARQL. :-) >=20 > > That query exactly translated is: > >=20 > > PREFIX em: <http://www.mozilla.org/2004/em-rdf#> > >=20 > > SELECT ?version ?name ?description ?creator ?icon WHERE > > { ?x em:version ?version ; > > em:name ?name ; > > em:description ?description ; > > em:creator ?creator ; > > em:iconURL ?icon . > > } > >=20 > > (Mechanical translation by program - but not a PHP program :-() > >=20 > > and adding optional for iconURL: > >=20 > > PREFIX em: <http://www.mozilla.org/2004/em-rdf#> > >=20 > > SELECT ?version ?name ?description ?creator ?icon WHERE > > { ?x em:version ?version . > > ?x em:name ?name . > > ?x em:description ?description . > > ?x em:creator ?creator . > > OPTIONAL { ?x em:iconURL ?icon . } > > } > >=20 > > a little more neatly that is: > >=20 > > PREFIX em: <http://www.mozilla.org/2004/em-rdf#> > > SELECT ?version ?name ?description ?creator ?icon WHERE > > { ?x em:version ?version ; > > em:name ?name ; > > em:description ?description ; > > em:creator ?creator . > > OPTIONAL > > { ?x em:iconURL ?icon .} > > } > >=20 > > Hope that helps, >=20 > Yes, thanks. Am I right that RDQL does not offer similar functionality? RDQL does not offer such functionality. >=20 > Also, the docs say that SPARQL support in rdfapi-php requires php 5.1; > are there specific problems that can be fixed or avoided in order to > run it on a locked down Redhat ES3 box with php 4.3.2 ? =20 Sorry - I don't know. I can only answer SPARQL general questions. Andy >=20 > -- > John |
From: John V. <ja...@gm...> - 2006-01-26 11:50:09
|
On 26/01/06, Seaborne, Andy <and...@hp...> wrote: > > > John Vandenberg wrote: > > Hi, > > > > I am trying to select a set of data out of a Mozilla extension > > install.rdf file. I am using SPARQL because it will be easy for > > developers to pick up and learn. > > > > My problem is that when an optional entry doesnt exist (iconURL), none > > of the fields are returned. This is the query I was trying to > > perform. > > > > SELECT ?version, ?name, ?description, ?creator, ?icon > > WHERE (?x, <em:version>, ?version), > > (?x, <em:name>, ?name), > > (?x, <em:description>, ?description), > > (?x, <em:creator>, ?creator), > > (?x, <em:iconURL>, ?icon) > > USING em FOR <http://www.mozilla.org/2004/em-rdf#> > > > > To work around this, I am individually selecting each optional piece > > of data. Can this be improved on? > > > > -- > > John > > > That syntax is RDQL not SPARQL. Sorry for the confusion; I am in the process of converting to SPARQL. > That query exactly translated is: > > PREFIX em: <http://www.mozilla.org/2004/em-rdf#> > > SELECT ?version ?name ?description ?creator ?icon > WHERE > { ?x em:version ?version ; > em:name ?name ; > em:description ?description ; > em:creator ?creator ; > em:iconURL ?icon . > } > > (Mechanical translation by program - but not a PHP program :-() > > and adding optional for iconURL: > > PREFIX em: <http://www.mozilla.org/2004/em-rdf#> > > SELECT ?version ?name ?description ?creator ?icon > WHERE > { ?x em:version ?version . > ?x em:name ?name . > ?x em:description ?description . > ?x em:creator ?creator . > OPTIONAL { ?x em:iconURL ?icon . } > } > > a little more neatly that is: > > PREFIX em: <http://www.mozilla.org/2004/em-rdf#> > SELECT ?version ?name ?description ?creator ?icon > WHERE > { ?x em:version ?version ; > em:name ?name ; > em:description ?description ; > em:creator ?creator . > OPTIONAL > { ?x em:iconURL ?icon .} > } > > Hope that helps, Yes, thanks. Am I right that RDQL does not offer similar functionality? Also, the docs say that SPARQL support in rdfapi-php requires php 5.1; are there specific problems that can be fixed or avoided in order to run it on a locked down Redhat ES3 box with php 4.3.2 ? -- John |
From: Seaborne, A. <and...@hp...> - 2006-01-26 09:58:26
|
John Vandenberg wrote: > Hi, > > I am trying to select a set of data out of a Mozilla extension > install.rdf file. I am using SPARQL because it will be easy for > developers to pick up and learn. > > My problem is that when an optional entry doesnt exist (iconURL), none > of the fields are returned. This is the query I was trying to > perform. > > SELECT ?version, ?name, ?description, ?creator, ?icon > WHERE (?x, <em:version>, ?version), > (?x, <em:name>, ?name), > (?x, <em:description>, ?description), > (?x, <em:creator>, ?creator), > (?x, <em:iconURL>, ?icon) > USING em FOR <http://www.mozilla.org/2004/em-rdf#> > > To work around this, I am individually selecting each optional piece > of data. Can this be improved on? > > -- > John That syntax is RDQL not SPARQL. That query exactly translated is: PREFIX em: <http://www.mozilla.org/2004/em-rdf#> SELECT ?version ?name ?description ?creator ?icon WHERE { ?x em:version ?version ; em:name ?name ; em:description ?description ; em:creator ?creator ; em:iconURL ?icon . } (Mechanical translation by program - but not a PHP program :-() and adding optional for iconURL: PREFIX em: <http://www.mozilla.org/2004/em-rdf#> SELECT ?version ?name ?description ?creator ?icon WHERE { ?x em:version ?version . ?x em:name ?name . ?x em:description ?description . ?x em:creator ?creator . OPTIONAL { ?x em:iconURL ?icon . } } a little more neatly that is: PREFIX em: <http://www.mozilla.org/2004/em-rdf#> SELECT ?version ?name ?description ?creator ?icon WHERE { ?x em:version ?version ; em:name ?name ; em:description ?description ; em:creator ?creator . OPTIONAL { ?x em:iconURL ?icon .} } Hope that helps, Andy |
From: John V. <ja...@gm...> - 2006-01-26 09:46:41
|
Hi, I am trying to select a set of data out of a Mozilla extension install.rdf file. I am using SPARQL because it will be easy for developers to pick up and learn. My problem is that when an optional entry doesnt exist (iconURL), none of the fields are returned. This is the query I was trying to perform. SELECT ?version, ?name, ?description, ?creator, ?icon WHERE (?x, <em:version>, ?version), (?x, <em:name>, ?name), (?x, <em:description>, ?description), (?x, <em:creator>, ?creator), (?x, <em:iconURL>, ?icon) USING em FOR <http://www.mozilla.org/2004/em-rdf#> To work around this, I am individually selecting each optional piece of data. Can this be improved on? -- John |