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: Christian W. <cw...@cw...> - 2007-01-23 14:48:58
|
> Updating adodb to the current version also helps. > Is there a reason the adodb version in CVS is so old? Can we update it?= Why is AdoDB bundled anyway? --=20 Regards/Mit freundlichen Gr=FC=DFen Christian Weiske |
From: Radoslaw O. <r.o...@go...> - 2007-01-23 14:15:05
|
Hi all, I have just set up a redirect from rdfapi-php.sourceforge.net to RAP's project page at wiwiss.fu-berlin.de Radek Richard Cyganiak wrote: > On 23 Jan 2007, at 10:26, Christian Weiske wrote: > > >>> Looking at http://rdfapi-php.sourceforge.net/ I get a phpinfo() >>> page, I >>> guess that isn't correct. >>> >> The site is still down. >> > > RAP's homepage is at http://sites.wiwiss.fu-berlin.de/suhl/bizer/ > rdfapi/ . The RAP project doesn't use the SourceForge-provided > webspace. A redirect from the SourceForge webspace to the real > homepage wouldn't hurt, but I don't see how this is a big deal. > > Richard > > > >> -- >> Regards/Mit freundlichen Grüßen >> Christian Weiske >> >> ---------------------------------------------------------------------- >> --- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php? >> page=join.php&p=sourceforge&CID=DEVDEV________________________________ >> _______________ >> Rdfapi-php-interest mailing list >> Rdf...@li... >> https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest >> > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > |
From: Richard C. <ri...@cy...> - 2007-01-23 14:04:56
|
On 23 Jan 2007, at 10:26, Christian Weiske wrote: >> Looking at http://rdfapi-php.sourceforge.net/ I get a phpinfo() =20 >> page, I >> guess that isn't correct. > The site is still down. RAP's homepage is at http://sites.wiwiss.fu-berlin.de/suhl/bizer/=20 rdfapi/ . The RAP project doesn't use the SourceForge-provided =20 webspace. A redirect from the SourceForge webspace to the real =20 homepage wouldn't hurt, but I don't see how this is a big deal. Richard > > --=20 > Regards/Mit freundlichen Gr=FC=DFen > Christian Weiske > > ----------------------------------------------------------------------=20= > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to =20 > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?=20 > page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV____________________________= ____=20 > _______________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest |
From: Richard C. <ri...@cy...> - 2007-01-23 13:53:23
|
Christian, On 22 Jan 2007, at 19:23, Christian Weiske wrote: > I face a very big problem regarding my SparqlEngineDb implementation: > Sorting. > > One can sort by any variable of any type in Sparql. The data type =20 > of the > values is stored in statements/l_datatype column and can hardly be > directly used in a SQL query. > > Imagine the following query: > ---------------------- > SELECT ?name ?emp > WHERE { ?x foaf:name ?name ; > ex:empId ?emp > } > ORDER BY ASC(?emp) > ---------------------- > > Now ?emp is an object following an "ex:empId" predicate, making the > datatype of ?emp xsd:integer. Making the SQL query in this case is =20 > easy; > just "ORDER BY CAST(emp as INTEGER) ASC" and it's done. > > Main problem is that I don't know in advance which data type the =20 > column > will have (as there could be statements like "?a ?b ?c .", ordering by > ?c) and that, even more serious, there could be multiple data types in > this data. > > I don't know what to do here. The only ideas I came up with are: > 1) Use a stored procedure which does comparison. This will render the > engine useless for older db systems such as mysql < 5. I also need to > get into stored procedures, but I think it is possible to hook into =20= > sorting. > 2) Sort on the client side. I would like to omit this since it would > decrease performance greatly. Further, I couldn't use server-side > LIMITs, making performance even worse. > 3) Provide data type hints in the query, which would make the sparql > implementation understand proprietary queries and still wouldn't work > with normal queries. > > Anybody an idea what I could do? I think you can write something like this in SPARQL: ORDER BY ASC(xsd:int(?emp)) Query authors could use this as a hint that allows the engine to use =20 the right cast in the SQL translation. In the absence of such a hint, =20= I'd just do the sorting client-side. This would be a relatively =20 simple and pragmatic solution. Richard > > > Btw, RDQL doesn't even provide ORDER support. I think I know why.. > > --=20 > Regards/Mit freundlichen Gr=FC=DFen > Christian Weiske > > ----------------------------------------------------------------------=20= > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to =20 > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?=20 > page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV____________________________= ____=20 > _______________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest |
From: Christian W. <cw...@cw...> - 2007-01-23 13:01:12
|
Hello, Some of the SQL queries generated by SparqlEngineDb are recognized as "invalid" by AdoDB, giving me an SQL error exception. The queries can be executed without problem using phpMyAdmin. Updating adodb to the current version also helps. Is there a reason the adodb version in CVS is so old? Can we update it? --=20 Regards/Mit freundlichen Gr=C3=BC=C3=9Fen Christian Weiske |
From: Christian W. <cw...@cw...> - 2007-01-23 12:44:29
|
> Looking at http://rdfapi-php.sourceforge.net/ I get a phpinfo() page, I= > guess that isn't correct. The site is still down. --=20 Regards/Mit freundlichen Gr=FC=DFen Christian Weiske |
From: Christian W. <cw...@cw...> - 2007-01-23 12:44:29
|
Hello all, I face a very big problem regarding my SparqlEngineDb implementation: Sorting. One can sort by any variable of any type in Sparql. The data type of the values is stored in statements/l_datatype column and can hardly be directly used in a SQL query. Imagine the following query: ---------------------- SELECT ?name ?emp WHERE { ?x foaf:name ?name ; ex:empId ?emp } ORDER BY ASC(?emp) ---------------------- Now ?emp is an object following an "ex:empId" predicate, making the datatype of ?emp xsd:integer. Making the SQL query in this case is easy; just "ORDER BY CAST(emp as INTEGER) ASC" and it's done. Main problem is that I don't know in advance which data type the column will have (as there could be statements like "?a ?b ?c .", ordering by ?c) and that, even more serious, there could be multiple data types in this data. I don't know what to do here. The only ideas I came up with are: 1) Use a stored procedure which does comparison. This will render the engine useless for older db systems such as mysql < 5. I also need to get into stored procedures, but I think it is possible to hook into sorti= ng. 2) Sort on the client side. I would like to omit this since it would decrease performance greatly. Further, I couldn't use server-side LIMITs, making performance even worse. 3) Provide data type hints in the query, which would make the sparql implementation understand proprietary queries and still wouldn't work with normal queries. Anybody an idea what I could do? Btw, RDQL doesn't even provide ORDER support. I think I know why.. --=20 Regards/Mit freundlichen Gr=C3=BC=C3=9Fen Christian Weiske |
From: Christian W. <cw...@cw...> - 2007-01-19 16:18:15
|
Hello all, The include paths in allTests.php are hardcoded to some windows system. I would like to move them into a config.php file so that they can be modified without changing CVS files. A copy if this file, called "config.php.dist" would reside in cvs and would need to be copied to config.php and modified accordingly to the current system. This way you would never have to change files in CVS which greatly helps when regularly committing into cvs and having a different setup (or system) than the paths in allTest.php currently assume. Is that ok? --=20 Regards/Mit freundlichen Gr=C3=BC=C3=9Fen Christian Weiske |
From: Seaborne, A. <and...@hp...> - 2007-01-19 11:33:37
|
-------- Original Message -------- > From: Christian Weiske <> > Date: 19 January 2007 07:12 >=20 > Hello all, >=20 > The current memory-SparqlEngine implementation is somewhat wrong when > it comes to OPTIONAL statements that do return no values for some > variables. Let me explain: Query:=20 > PREFIX foaf: <http://xmlns.com/foaf/0.1/> > SELECT ?mbox ?name { > ?x foaf:mbox ?mbox . > OPTIONAL { ?x foaf:name ?name } . > } >=20 > Data: > @prefix foaf: <http://xmlns.com/foaf/0.1/> . > _:e foaf:mbox <mailto:ev...@ex...> . >=20 >=20 > When querying, variable ?mbox is set but ?name is not, since it isn't > in the database. The correct value of ?name in my eyes is NULL.=20 > SparqlEngine returns an empty string "" which is ambiguous. >=20 > I opt for changing the unit tests and adapting the sparql engine. Any > objections?=20 NULL is OK but it's a "soft null" - if a later part of a query wants to now bind that variable and it didn't match earlier it can. e.g. ?x foaf:mbox ?mbox . OPTIONAL { ?x foaf:name ?name } . OPTIONAL { ?x foaf:nick ?name } . which sets ?name if there's a foaf:name else tries foaf:nick if ?name wasn't set before. What design for unboudn variavbles that you use is up to you. Some impls just leave ?name as "unbound", some would set it as NULL but then make sure that a NULL can later be bound to a real RDF term. Andy |
From: Christian W. <cw...@cw...> - 2007-01-19 07:40:43
|
Chris, > How did the CVS access issue end up. Did Tobias give you commit access?= No, I don't have commit access. --=20 Regards/Mit freundlichen Gr=C3=BC=C3=9Fen Christian Weiske |
From: Chris B. <ch...@bi...> - 2007-01-19 07:32:32
|
Makes sence to me as the SPARQL spec says: "There is no value of mbox in the solution where the name is "Bob". It is unbound." Cheers Chris ----- Original Message ----- From: "Christian Weiske" <cw...@cw...> To: <rdf...@li...> Sent: Friday, January 19, 2007 8:11 AM Subject: [Rdfapi-php-interest] type of non-existant values in optionalsparql queries > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------------------------------------------------------------------------- > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |
From: Chris B. <ch...@bi...> - 2007-01-19 07:32:12
|
> Hello all, > > > Short status notice: > I got the unit tests for the Sparql Memory engine run unmodified for > SparqlEngineDb (so both share the same tests now) by importing the > models into the database before running the tests. > > Currently I am fixing all the bugs that the tests show me... the db > engine nearly passes all the dawg tests. Great. How did the CVS access issue end up. Did Tobias give you commit access? Cheers Chris > |
From: Christian W. <cw...@cw...> - 2007-01-19 07:12:18
|
Hello all, The current memory-SparqlEngine implementation is somewhat wrong when it comes to OPTIONAL statements that do return no values for some variables. Let me explain: Query: PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?mbox ?name { ?x foaf:mbox ?mbox . OPTIONAL { ?x foaf:name ?name } . } Data: @prefix foaf: <http://xmlns.com/foaf/0.1/> . _:e foaf:mbox <mailto:ev...@ex...> . When querying, variable ?mbox is set but ?name is not, since it isn't in the database. The correct value of ?name in my eyes is NULL. SparqlEngine returns an empty string "" which is ambiguous. I opt for changing the unit tests and adapting the sparql engine. Any objections? --=20 Regards/Mit freundlichen Gr=C3=BC=C3=9Fen Christian Weiske |
From: Christian W. <cw...@cw...> - 2007-01-18 19:27:15
|
Hello all, Short status notice: I got the unit tests for the Sparql Memory engine run unmodified for SparqlEngineDb (so both share the same tests now) by importing the models into the database before running the tests. Currently I am fixing all the bugs that the tests show me... the db engine nearly passes all the dawg tests. --=20 Regards/Mit freundlichen Gr=C3=BC=C3=9Fen Christian Weiske |
From: Christian W. <cw...@cw...> - 2007-01-18 15:15:36
|
Hi all, Looking at http://rdfapi-php.sourceforge.net/ I get a phpinfo() page, I guess that isn't correct. --=20 Regards/Mit freundlichen Gr=C3=BC=C3=9Fen Christian Weiske |
From: Christian W. <cw...@cw...> - 2006-12-12 11:32:46
|
Hello all, Chris Bizer wrote that there are currently no official coding standards used in RAP and that we should suggest some that could be used. Coming from PEAR, I would opt for the PEAR coding standards [1]. They have been proven to be very readable, and are in used by a number of projects outside of pear, too. Further, there are some tools that make life easier with them: - PHP_CodeSniffer [2] is an application found in PEAR that scans php files and shows you which lines do not match the coding standards - PHP_Beautifier [3] automatically formats php code according to CS. [1] http://pear.php.net/manual/en/standards.php [2] http://pear.php.net/package/PHP_CodeSniffer [3] http://pear.php.net/package/PHP_Beautifier --=20 Regards/MfG, Christian Weiske |
From: Christian W. <cw...@cw...> - 2006-12-12 06:13:23
|
Hello all, At tmp.cweiske.de is the current status of the sparql engine that directly works on any database, SparqlEngineDb. http://tmp.cweiske.de/SparqlEngineDb.1.diff http://tmp.cweiske.de/SparqlEngineDb.phps Some implementational notes: Model classes instantiate SparqlEngine in sparqlQuery(). Since DbModel inherits from Model, there should be the possibility that it's decided automatically which Sparql engine should be used. To solve this problem, I introduced SparqlEngine::factory($model =3D null= ) as only valid method to instantiate it (making the constructor protected). This method decides which sparql engine to create and returns an instance. I do know that Dataset also instantiates such an engine, but this is solved by passing no parameter to factory(). Further, I re-indented (4 spaces) the Query and SparqlEngine class and added extensive docblock descriptions in Query. Current implementation status: SparqlEngineDb currently supports simple queries only. What works: - SELECT clauses - OPTIONAL and normal queries - ORDER BY - LIMIT - OFFSET What does not work: - UNION - FILTER - ASK, DESCRIBE, CONSTRUCT I am working on it, but I thought it could be included into CVS (maybe deactivated in SparqlEngine::factory()) since Chris CC'ed me as Onno Paap wanted to add some other features to RAP, and he should have the current sources to be able to look into it now. --=20 Regards/MfG, Christian Weiske |
From: Christian W. <cw...@cw...> - 2006-12-11 19:14:27
|
Hello all, Attached is the current status of the sparql engine that directly works on any database, SparqlEngineDb. Some implementational notes: Model classes instantiate SparqlEngine in sparqlQuery(). Since DbModel inherits from Model, there should be the possibility that it's decided automatically which Sparql engine should be used. To solve this problem, I introduced SparqlEngine::factory($model = null) as only valid method to instantiate it (making the constructor protected). This method decides which sparql engine to create and returns an instance. I do know that Dataset also instantiates such an engine, but this is solved by passing no parameter to factory(). Further, I re-indented (4 spaces) the Query and SparqlEngine class and added extensive docblock descriptions in Query. Current implementation status: SparqlEngineDb currently supports simple queries only. What works: - SELECT clauses - OPTIONAL and normal queries - ORDER BY - LIMIT - OFFSET What does not work: - UNION - FILTER - ASK, DESCRIBE, CONSTRUCT I am working on it, but I thought it could be included into CVS (maybe deactivated in SparqlEngine::factory()) since Chris CC'ed me as Onno Paap wanted to add some other features to RAP, and he should have the current sources to be able to look into it now. -- Regards/MfG, Christian Weiske |
From: Christian W. <cw...@cw...> - 2006-12-08 19:23:45
|
Hello, I am in the mid of writing SparqlEngineDb and wonder if there are any coding standards. While the new code is relatively pretty in my eyes, the old one does not always seem to have a structure. The usual questions come up: Tabs or spaces, indentation size, one-liners with or without braces {} and so on. Is there any consensus? I also saw a lot of private modifies in the sparql code. Is there a reason for this? protected is enough in most cases and allows people to extend the classes. Further, SparqlEngine currently returns >string(4) "true"< (or false) when ASKing something or returning a boolean value. In my opinion, we should use php's typing possibilities. --=20 Regards/MfG, Christian Weiske |
From: Seaborne, A. <and...@hp...> - 2006-11-28 22:52:51
|
GSO wrote: > OK, you're right by the looks about not using valid syntax, however > the problem changes when I use parentheses, I then get the following > error: > > <quote> > SPARQL PARSER ERROR: ) is neither a valid rdf- node nor a variable. > In Query: > > PREFIX ll: <http://www.gsowww.uklinux.net/librarylinks/vocabulary#> > SELECT * > WHERE { ?url ll:title ?title . > ?url ll:abstract ?abstract . > ?url ll:date ?date . > ?url ll:publisher ?publisher . > FILTER (?date >= 0->)<- > > Fatal error: Call to a member function getFromNamedPart() on a > non-object in /opt/lampp/htdocs/rdfapi-php/api/sparql/SparqlEngine.php > on line 417 That looks like bad news. > </quote> > > The closing/right parenthesis causes an error. > > GSO There's a SPARQL valdiator at: http://www.sparql.org/validator.html which is running a parser derived from the master version of the SPARQL grammar (in fact, the javacc grammar it works from is the input to making the HTML in the spec via perl script). It passes the query: PREFIX ll: <http://www.gsowww.uklinux.net/librarylinks/vocabulary#> SELECT * WHERE { ?url ll:title ?title . ?url ll:abstract ?abstract . ?url ll:date ?date . ?url ll:publisher ?publisher . FILTER (?date >= 0 ) } ORDER BY DESC(?date) While the SPARQL grammar has changed, the language accepted by the grammar has not in some while. The grammar changes to better reflect the rest of the SPARQL design. I wonder if the parser is off a little, whether it is correctly gathering up the expression. Andy |
From: GSO <gs...@ya...> - 2006-11-28 21:56:27
|
OK, you're right by the looks about not using valid syntax, however the problem changes when I use parentheses, I then get the following error: <quote> SPARQL PARSER ERROR: ) is neither a valid rdf- node nor a variable. In Query: PREFIX ll: <http://www.gsowww.uklinux.net/librarylinks/vocabulary#> SELECT * WHERE { ?url ll:title ?title . ?url ll:abstract ?abstract . ?url ll:date ?date . ?url ll:publisher ?publisher . FILTER (?date >= 0->)<- Fatal error: Call to a member function getFromNamedPart() on a non-object in /opt/lampp/htdocs/rdfapi-php/api/sparql/SparqlEngine.php on line 417 </quote> The closing/right parenthesis causes an error. GSO On 28/11/06, Seaborne, Andy <and...@hp...> wrote: > > > GSO wrote: > > A basic test statement - this works fine without the FILTER added, but > > returns a boolean false as a result with: > > > > PREFIX ll: <http://www.gsowww.uklinux.net/librarylinks/vocabulary#> > > SELECT * > > WHERE { ?url ll:title ?title . > > ?url ll:abstract ?abstract . > > ?url ll:date ?date . > > ?url ll:publisher ?publisher . > > FILTER ?date >= 0 > > Firstly, that isn't valid SPARQL syntax - should be FILTER (?date >= 0). May > be that is confusing it. > > Assuming, it's not that, if ?date is a string, then it is false (it's a type > error). Literals obey datatyping. > > In SPARQL, you can cast to an integer with xsd:integer(?date). > > Andy > > > } > > ORDER BY DESC(?date) > > > > '?date' is a number created with mktime(), e.g., Literal: 1112486400. > > > > If anyone can figure the bug in this I'd very much appreciate it. > > > > Thanks > > > > GSO > > http://www.gsowww.uklinux.net/pub > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Rdfapi-php-interest mailing list > > Rdf...@li... > > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |
From: Seaborne, A. <and...@hp...> - 2006-11-28 20:17:42
|
GSO wrote: > A basic test statement - this works fine without the FILTER added, but > returns a boolean false as a result with: > > PREFIX ll: <http://www.gsowww.uklinux.net/librarylinks/vocabulary#> > SELECT * > WHERE { ?url ll:title ?title . > ?url ll:abstract ?abstract . > ?url ll:date ?date . > ?url ll:publisher ?publisher . > FILTER ?date >= 0 Firstly, that isn't valid SPARQL syntax - should be FILTER (?date >= 0). May be that is confusing it. Assuming, it's not that, if ?date is a string, then it is false (it's a type error). Literals obey datatyping. In SPARQL, you can cast to an integer with xsd:integer(?date). Andy > } > ORDER BY DESC(?date) > > '?date' is a number created with mktime(), e.g., Literal: 1112486400. > > If anyone can figure the bug in this I'd very much appreciate it. > > Thanks > > GSO > http://www.gsowww.uklinux.net/pub > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest |
From: GSO <gs...@ya...> - 2006-11-28 17:36:10
|
A basic test statement - this works fine without the FILTER added, but returns a boolean false as a result with: PREFIX ll: <http://www.gsowww.uklinux.net/librarylinks/vocabulary#> SELECT * WHERE { ?url ll:title ?title . ?url ll:abstract ?abstract . ?url ll:date ?date . ?url ll:publisher ?publisher . FILTER ?date >= 0 } ORDER BY DESC(?date) '?date' is a number created with mktime(), e.g., Literal: 1112486400. If anyone can figure the bug in this I'd very much appreciate it. Thanks GSO http://www.gsowww.uklinux.net/pub |
From: Richard C. <ri...@cy...> - 2006-11-28 14:41:40
|
Markus, AJ, On 28 Nov 2006, at 12:54, Markus Kr=F6tzsch wrote: >> On 27 Nov 2006, at 09:09, AJ Chen wrote: >>> When firefox opens a rdf file generated by rdfapi, it automatically >>> parses it as xml file. The result is unreadable. >> >> This is what Firefox does with all XML files. > > That is not quite true. In fact, Firefox nicely displays XML files. =20= > See e.g. > http://ontoworld.org/RDF/categories.xml > > But FF interprets RDF as broken HTML (I think), i.e. the tags are =20 > stripped and > the page only consists of text between the tags. Ah, interesting, I didn't know. Thanks for pointing this out, and =20 apologies to AJ for my wrong claims. > To change this, you could > deliver your .rdf files as application/xml (and not as application/=20 > rdf+xml), > or (if they are static files), rename them into .xml or reconfigure =20= > your > webserver to use the other mime. Well, yes, but that's no real solution either because it sends an =20 inexact MIME type that might cause RDF clients to not recognize the =20 RDF document. Richard > And, of course, someone should file a Firefox bug report. > > Cheers, > > Markus > >> >>> So, I want Firefox to open rdf file as is, showing content within >>> xml structure. Any suggestion how to do that? >> >> Select "View Source" from the menu. >> >>> Maybe something can be added to the top of rdf file, which will >>> prevent it from parsing by xml parser. >> >> You could do that, but then it wouldn't be an RDF file any more, and >> therefore most RDF tools would not recognize it. >> >> (As a better solution, you could use an XML processing instruction to >> associate a CSS or XSLT stylesheet with the RDF document, see [1].) >> >> RDF files are not meant to be displayed to a human. It doesn't really >> matter if it's parsed as XML, or if the raw XML is displayed, Non- >> geeks will not be able to understand either of those. Look at how >> links to RSS and Atom feeds are usually handled, they are hidden away >> behind [RSS] buttons or <link> elements in the HTML head, human >> readers will usually not see it, and RSS clients know where to look >> for it. I think the same approach should be used for RDF. >> >> Yours, >> Richard >> >> [1] http://www.w3.org/TR/xml-stylesheet/ >> >>> Or configure firefox not to parse rdf file. But I can't find a way >>> to add rdf file type to firefox download manager. >>> Thanks, >>> -- >>> AJ Chen, PhD >>> Palo Alto, CA >>> http://web2express.org >>> --------------------------------------------------------------------=20= >>> -- >>> --- >>> Take Surveys. Earn Cash. Influence the Future of IT >>> Join SourceForge.net's Techsay panel and you'll get the chance to >>> share your >>> opinions on IT & business topics through brief surveys - and earn =20= >>> cash >>> http://www.techsay.com/default.php? >>> page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV__________________________= ____=20 >>> __ >>> _______________ >>> Rdfapi-php-interest mailing list >>> Rdf...@li... >>> https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest >> >> ---------------------------------------------------------------------=20= >> ---- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to =20 >> share >> your opinions on IT & business topics through brief surveys - and =20 >> earn cash >> http://www.techsay.com/default.php?=20 >> page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV >> _______________________________________________ >> Rdfapi-php-interest mailing list >> Rdf...@li... >> https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > --=20 > Markus Kr=F6tzsch > Institute AIFB, University of Karlsruhe, D-76128 Karlsruhe > ma...@ai... phone +49 (0)721 608 7362 > www.aifb.uni-karlsruhe.de/WBS/ fax +49 (0)721 693 717 |
From: Markus <ma...@ai...> - 2006-11-28 11:54:34
|
On Monday 27 November 2006 11:02, Richard Cyganiak wrote: > Hi, > > On 27 Nov 2006, at 09:09, AJ Chen wrote: > > When firefox opens a rdf file generated by rdfapi, it automatically > > parses it as xml file. The result is unreadable. > > This is what Firefox does with all XML files. That is not quite true. In fact, Firefox nicely displays XML files. See e.g= =2E=20 http://ontoworld.org/RDF/categories.xml But FF interprets RDF as broken HTML (I think), i.e. the tags are stripped = and=20 the page only consists of text between the tags. To change this, you could= =20 deliver your .rdf files as application/xml (and not as application/rdf+xml)= ,=20 or (if they are static files), rename them into .xml or reconfigure your=20 webserver to use the other mime. And, of course, someone should file a Firefox bug report. Cheers, Markus > > > So, I want Firefox to open rdf file as is, showing content within > > xml structure. Any suggestion how to do that? > > Select "View Source" from the menu. > > > Maybe something can be added to the top of rdf file, which will > > prevent it from parsing by xml parser. > > You could do that, but then it wouldn't be an RDF file any more, and > therefore most RDF tools would not recognize it. > > (As a better solution, you could use an XML processing instruction to > associate a CSS or XSLT stylesheet with the RDF document, see [1].) > > RDF files are not meant to be displayed to a human. It doesn't really > matter if it's parsed as XML, or if the raw XML is displayed, Non- > geeks will not be able to understand either of those. Look at how > links to RSS and Atom feeds are usually handled, they are hidden away > behind [RSS] buttons or <link> elements in the HTML head, human > readers will usually not see it, and RSS clients know where to look > for it. I think the same approach should be used for RDF. > > Yours, > Richard > > [1] http://www.w3.org/TR/xml-stylesheet/ > > > Or configure firefox not to parse rdf file. But I can't find a way > > to add rdf file type to firefox download manager. > > Thanks, > > -- > > AJ Chen, PhD > > Palo Alto, CA > > http://web2express.org > > ---------------------------------------------------------------------- > > --- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > > share your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php? > > page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV___________________________= _____ > > _______________ > > Rdfapi-php-interest mailing list > > Rdf...@li... > > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys - and earn ca= sh > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest =2D-=20 Markus Kr=F6tzsch Institute AIFB, University of Karlsruhe, D-76128 Karlsruhe ma...@ai... phone +49 (0)721 608 7362 www.aifb.uni-karlsruhe.de/WBS/ fax +49 (0)721 693 717 |