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-08-23 15:03:01
|
You are right Benjamin, and I was wrong. The spec says that the rdf:ID must indeed be unique. Apologies for spreading misinformation ... (The full rule is: The same combination of rdf:ID and xml:base must never occur twice in a document, taking into account that xml:base is inherited to XML child elements.) So it's indeed a RAP bug. Richard On 23 Aug 2006, at 15:46, Benjamin Nowack wrote: > On 23.08.2006 14:27:37, Richard Cyganiak wrote: >> Vowlidator seems to dislike the fact that RAP uses rdf:ID twice with >> the same value. That's allowed by the specs, although admittedly you >> could argue that it's bad style. (And indeed it's just a warning in >> Vowlidator, not an error.) > AFAIK, redundant node rdf:IDs are not allowed in a shared > scope/document. It's similar to the id attribute in html. > It's a bug in both RAP and Vowlidator, the latter should > issue an error, not a warning ;) > > hth, > ben > >> >> So it's not a RAP bug, but it's an indication that Vowlidator is a >> bit too picky :-) >> >> You can safely ignore the warning. >> >> Yours, >> Richard >> >> >> On 23 Aug 2006, at 13:28, Onno Paap wrote: >> >>> Dear rdfapi-php team, >>> The following examples are snippets from much larger OWL constructs. >>> They have no meaning by themselves, just as illustration of the way >>> the RAP netapi handles this. >>> My question: does this example show an RAP bug? >>> Onno Paap >>> >>> This piece of OWL code has no errors in Vowlidator: >>> ============ >>> <rdf:RDF >>> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" >>> xmlns:owl="http://www.w3.org/2002/07/owl#" >>> xml:base="http://www.15926.org/2006/02/onnopaap1"> >>> <owl:Class rdf:ID="AbstractObject"> >>> <rdf:type rdf:resource="#ClassOfAbstractObject"/> >>> </owl:Class> >>> <owl:Class rdf:ID="ClassOfAbstractObject"/> >>> </rdf:RDF> >>> ============ >>> >>> Loaded in RAP gives 3 triples: >>> ============ >>> 1. >>> Resource: http://www.15926.org/2006/02/onnopaap1#AbstractObject >>> RDF Node: rdf:type >>> RDF Node: owl:Class >>> 2. >>> Resource: http://www.15926.org/2006/02/onnopaap1#AbstractObject >>> RDF Node: rdf:type >>> Resource: http://www.15926.org/2006/02/ >>> onnopaap1#ClassOfAbstractObject >>> 3. >>> Resource: http://www.15926.org/2006/02/ >>> onnopaap1#ClassOfAbstractObject >>> RDF Node: rdf:type >>> RDF Node: owl:Class >>> ============ >>> >>> The RAP netapi makes this out of it: >>> ============ >>> <?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://www.15926.org/2006/02/onnopaap1#" >>> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" >>> xmlns:owl="http://www.w3.org/2002/07/owl#" >>> xmlns:ns1="http://www.15926.org/2006/02/onnopaap1#"> >>> <owl:Class rdf:ID="AbstractObject" /> >>> <ns1:ClassOfAbstractObject rdf:ID="AbstractObject" /> >>> <owl:Class rdf:ID="ClassOfAbstractObject" /> >>> </rdf:RDF> >>> ============ >>> >>> Which gives errors in Vowlidator: >>> ============ >>> [1] WARNING - Parser Indication: http://www.15926.org/2006/02/ >>> onnopaap1#[15:53]: >>> {W105} Redefinition of ID: AbstractObject >>> >>> [2] WARNING - Parser Indication: http://www.15926.org/2006/02/ >>> onnopaap1#[13:37]: >>> {W105} Previous definition of 'AbstractObject'. >>> ============ >>> >>> -------------------------------------------------------------------- >>> -- >>> --- >>> Using Tomcat but need to do more? Need to support web services, >>> security? >>> Get stuff done quickly with pre-integrated technology to make your >>> job easier >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>> Geronimo >>> http://sel.as-us.falkag.net/sel? >>> cmd=lnk&kid=120709&bid=263057&dat=121642 >>> _______________________________________________ >>> Rdfapi-php-interest mailing list >>> Rdf...@li... >>> https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest >>> >> >> >> --------------------------------------------------------------------- >> ---- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Rdfapi-php-interest mailing list >> Rdf...@li... >> https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest >> >> > > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |
From: Benjamin N. <bn...@ap...> - 2006-08-23 13:45:31
|
On 23.08.2006 14:27:37, Richard Cyganiak wrote: >Vowlidator seems to dislike the fact that RAP uses rdf:ID twice with >the same value. That's allowed by the specs, although admittedly you >could argue that it's bad style. (And indeed it's just a warning in >Vowlidator, not an error.) AFAIK, redundant node rdf:IDs are not allowed in a shared scope/document. It's similar to the id attribute in html. It's a bug in both RAP and Vowlidator, the latter should issue an error, not a warning ;) hth, ben > >So it's not a RAP bug, but it's an indication that Vowlidator is a >bit too picky :-) > >You can safely ignore the warning. > >Yours, >Richard > > >On 23 Aug 2006, at 13:28, Onno Paap wrote: > >> Dear rdfapi-php team, >> The following examples are snippets from much larger OWL constructs. >> They have no meaning by themselves, just as illustration of the way >> the RAP netapi handles this. >> My question: does this example show an RAP bug? >> Onno Paap >> >> This piece of OWL code has no errors in Vowlidator: >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> <rdf:RDF >> xmlns:rdf=3D"http://www.w3.org/1999/02/22-rdf-syntax-ns#" >> xmlns:owl=3D"http://www.w3.org/2002/07/owl#" >> xml:base=3D"http://www.15926.org/2006/02/onnopaap1"> >> <owl:Class rdf:ID=3D"AbstractObject"> >> <rdf:type rdf:resource=3D"#ClassOfAbstractObject"/> >> </owl:Class> >> <owl:Class rdf:ID=3D"ClassOfAbstractObject"/> >> </rdf:RDF> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> >> Loaded in RAP gives 3 triples: >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> 1. >> Resource: http://www.15926.org/2006/02/onnopaap1#AbstractObject >> RDF Node: rdf:type >> RDF Node: owl:Class >> 2. >> Resource: http://www.15926.org/2006/02/onnopaap1#AbstractObject >> RDF Node: rdf:type >> Resource: http://www.15926.org/2006/02/ >> onnopaap1#ClassOfAbstractObject >> 3. >> Resource: http://www.15926.org/2006/02/ >> onnopaap1#ClassOfAbstractObject >> RDF Node: rdf:type >> RDF Node: owl:Class >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> >> The RAP netapi makes this out of it: >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> <?xml version=3D"1.0" encoding=3D"UTF-8" ?> >> <!-- >> Generated by RdfSerializer.php from RDF RAP. >> # http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/index.html ! >> --> >> <rdf:RDF xml:base=3D"http://www.15926.org/2006/02/onnopaap1#" >> xmlns:rdf=3D"http://www.w3.org/1999/02/22-rdf-syntax-ns#" >> xmlns:owl=3D"http://www.w3.org/2002/07/owl#" >> xmlns:ns1=3D"http://www.15926.org/2006/02/onnopaap1#"> >> <owl:Class rdf:ID=3D"AbstractObject" /> >> <ns1:ClassOfAbstractObject rdf:ID=3D"AbstractObject" /> >> <owl:Class rdf:ID=3D"ClassOfAbstractObject" /> >> </rdf:RDF> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> >> Which gives errors in Vowlidator: >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> [1] WARNING - Parser Indication: http://www.15926.org/2006/02/ >> onnopaap1#[15:53]: >> {W105} Redefinition of ID: AbstractObject >> >> [2] WARNING - Parser Indication: http://www.15926.org/2006/02/ >> onnopaap1#[13:37]: >> {W105} Previous definition of 'AbstractObject'. >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> >> ---------------------------------------------------------------------- >> --- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel? >> cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642 >> _______________________________________________ >> Rdfapi-php-interest mailing list >> Rdf...@li... >> https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest >> > > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job = easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache = Geronimo >http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 >_______________________________________________ >Rdfapi-php-interest mailing list >Rdf...@li... >https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > |
From: Richard C. <ri...@cy...> - 2006-08-23 12:27:55
|
Hi Onno, The RDF/XML as serialized by RAP is legal, and when parsed will produce exactly the same triples as the original snippet. Both serializations are equivalent. Vowlidator seems to dislike the fact that RAP uses rdf:ID twice with the same value. That's allowed by the specs, although admittedly you could argue that it's bad style. (And indeed it's just a warning in Vowlidator, not an error.) So it's not a RAP bug, but it's an indication that Vowlidator is a bit too picky :-) You can safely ignore the warning. Yours, Richard On 23 Aug 2006, at 13:28, Onno Paap wrote: > Dear rdfapi-php team, > The following examples are snippets from much larger OWL constructs. > They have no meaning by themselves, just as illustration of the way > the RAP netapi handles this. > My question: does this example show an RAP bug? > Onno Paap > > This piece of OWL code has no errors in Vowlidator: > ============ > <rdf:RDF > xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" > xmlns:owl="http://www.w3.org/2002/07/owl#" > xml:base="http://www.15926.org/2006/02/onnopaap1"> > <owl:Class rdf:ID="AbstractObject"> > <rdf:type rdf:resource="#ClassOfAbstractObject"/> > </owl:Class> > <owl:Class rdf:ID="ClassOfAbstractObject"/> > </rdf:RDF> > ============ > > Loaded in RAP gives 3 triples: > ============ > 1. > Resource: http://www.15926.org/2006/02/onnopaap1#AbstractObject > RDF Node: rdf:type > RDF Node: owl:Class > 2. > Resource: http://www.15926.org/2006/02/onnopaap1#AbstractObject > RDF Node: rdf:type > Resource: http://www.15926.org/2006/02/ > onnopaap1#ClassOfAbstractObject > 3. > Resource: http://www.15926.org/2006/02/ > onnopaap1#ClassOfAbstractObject > RDF Node: rdf:type > RDF Node: owl:Class > ============ > > The RAP netapi makes this out of it: > ============ > <?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://www.15926.org/2006/02/onnopaap1#" > xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" > xmlns:owl="http://www.w3.org/2002/07/owl#" > xmlns:ns1="http://www.15926.org/2006/02/onnopaap1#"> > <owl:Class rdf:ID="AbstractObject" /> > <ns1:ClassOfAbstractObject rdf:ID="AbstractObject" /> > <owl:Class rdf:ID="ClassOfAbstractObject" /> > </rdf:RDF> > ============ > > Which gives errors in Vowlidator: > ============ > [1] WARNING - Parser Indication: http://www.15926.org/2006/02/ > onnopaap1#[15:53]: > {W105} Redefinition of ID: AbstractObject > > [2] WARNING - Parser Indication: http://www.15926.org/2006/02/ > onnopaap1#[13:37]: > {W105} Previous definition of 'AbstractObject'. > ============ > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |
From: Onno P. <onn...@gm...> - 2006-08-23 11:28:49
|
Dear rdfapi-php team, The following examples are snippets from much larger OWL constructs. They have no meaning by themselves, just as illustration of the way the RAP netapi handles this. My question: does this example show an RAP bug? Onno Paap This piece of OWL code has no errors in Vowlidator: ============ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:owl="http://www.w3.org/2002/07/owl#" xml:base="http://www.15926.org/2006/02/onnopaap1"> <owl:Class rdf:ID="AbstractObject"> <rdf:type rdf:resource="#ClassOfAbstractObject"/> </owl:Class> <owl:Class rdf:ID="ClassOfAbstractObject"/> </rdf:RDF> ============ Loaded in RAP gives 3 triples: ============ 1. Resource: http://www.15926.org/2006/02/onnopaap1#AbstractObject RDF Node: rdf:type RDF Node: owl:Class 2. Resource: http://www.15926.org/2006/02/onnopaap1#AbstractObject RDF Node: rdf:type Resource: http://www.15926.org/2006/02/onnopaap1#ClassOfAbstractObject 3. Resource: http://www.15926.org/2006/02/onnopaap1#ClassOfAbstractObject RDF Node: rdf:type RDF Node: owl:Class ============ The RAP netapi makes this out of it: ============ <?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://www.15926.org/2006/02/onnopaap1#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:ns1="http://www.15926.org/2006/02/onnopaap1#"> <owl:Class rdf:ID="AbstractObject" /> <ns1:ClassOfAbstractObject rdf:ID="AbstractObject" /> <owl:Class rdf:ID="ClassOfAbstractObject" /> </rdf:RDF> ============ Which gives errors in Vowlidator: ============ [1] WARNING - Parser Indication: http://www.15926.org/2006/02/onnopaap1#[15:53]: {W105} Redefinition of ID: AbstractObject [2] WARNING - Parser Indication: http://www.15926.org/2006/02/onnopaap1#[13:37]: {W105} Previous definition of 'AbstractObject'. ============ |
From: Richard C. <ri...@cy...> - 2006-08-03 07:50:16
|
Hi Danilo, It's a bug -- I suppose it worked in another version of PHP but =20 doesn't work in the latest versions. I've fixed it in CVS. To make it =20= work for you, either get the latest code from CVS, or fix it in your =20 local copy by making a small change to the two lines mentioned in the =20= error messages: Insert a space to change '<?php{' into '<?php {'. =20 Then it should work. Best, Richard On 3 Aug 2006, at 04:41, Danilo Saldanha Bizarro wrote: > Hi > > There are some erros when i try to use RDFDB INTERFACE: > > EDIT: Parse error: parse error, unexpected '}' in c:\arquivos de > programas\apache group\Apache\htdocs\rdfapi-php\tools\rdfdb-utils=20 > \query.php > on line 376 > > QUERY: Parse error: parse error, unexpected '}' in c:\arquivos de > programas\apache group\Apache\htdocs\rdfapi-php\tools\rdfdb-utils=20 > \query.php > on line 376 > > NAMESPACE: Parse error: parse error, unexpected '}' in c:\arquivos de > programas\apache group\Apache\htdocs\rdfapi-php\tools\rdfdb-utils=20 > \namesp.php > on line 155 > > > The remain of options are working on. The database and the model =20 > haven been > created normally. I can upload triples and they are stored. > > What can be that errors ? > > Thank you very much > > _________________________________________________________________ > Acompanhe os desfiles do evento S=E3o Paulo Fashion Week. > http://www.msn.com.br/diversao/spfw/ > > > ----------------------------------------------------------------------=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 =20 > 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 > |
From: Danilo S. B. <ds...@ho...> - 2006-08-03 02:41:18
|
Hi There are some erros when i try to use RDFDB INTERFACE: EDIT: Parse error: parse error, unexpected '}' in c:\arquivos de programas\apache group\Apache\htdocs\rdfapi-php\tools\rdfdb-utils\query.php on line 376 QUERY: Parse error: parse error, unexpected '}' in c:\arquivos de programas\apache group\Apache\htdocs\rdfapi-php\tools\rdfdb-utils\query.php on line 376 NAMESPACE: Parse error: parse error, unexpected '}' in c:\arquivos de programas\apache group\Apache\htdocs\rdfapi-php\tools\rdfdb-utils\namesp.php on line 155 The remain of options are working on. The database and the model haven been created normally. I can upload triples and they are stored. What can be that errors ? Thank you very much _________________________________________________________________ Acompanhe os desfiles do evento São Paulo Fashion Week. http://www.msn.com.br/diversao/spfw/ |
From: <au...@in...> - 2006-07-29 12:20:40
|
Chris Bizer wrote: > There are also ongoing efforts to implement D2RQ in PHP, but I don't=20 > know if there is any released code yet. A student of us (Lehmann Christian) is currently implementing D2RQ for=20 PHP. He is already quite far - should be finished by next month.=20 However, code is unfortunately not yet released. You can contact him=20 personally at Leh...@gm... to find out if you can get=20 access to a preview release. --S=F6ren |
From: Chris B. <bi...@ze...> - 2006-07-29 09:28:30
|
Hi Sinagi, if your are not bound to PHP you could use D2RQ = http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/ or D2R Map = http://www.wiwiss.fu-berlin.de/suhl/bizer/d2rmap/D2Rmap.htm. There are also ongoing efforts to implement D2RQ in PHP, but I don't = know if there is any released code yet. Cheers Chris ----- Original Message -----=20 From: sonagi Kim=20 To: rdf...@li...=20 Sent: Thursday, July 27, 2006 6:34 PM Subject: [Rdfapi-php-interest] create rdf Hi, there. I am a newbie. I'd like to create rdf information from relational = database. if I have a recordset of database, how can I create the RDF? what is the easy way to translation? could you give sample code? best, Brain -------------------------------------------------------------------------= ----- = -------------------------------------------------------------------------= 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=3D= DEVDEV -------------------------------------------------------------------------= ----- _______________________________________________ Rdfapi-php-interest mailing list Rdf...@li... https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest |
From: sonagi K. <son...@gm...> - 2006-07-28 21:17:38
|
Hi, there. I am a newbie. I'd like to create rdf information from relational database. if I have a recordset of database, how can I create the RDF? what is the easy way to translation? could you give sample code? best, Brain |
From: <tob...@we...> - 2006-07-28 11:09:36
|
Hi Ian, sorry for the delay and thanks for this report. Richard is on holiday. I think i fixed the problem with the missing query results. Try to download the new version of the SparqlEngine which is now in the CVS repository. Regards, Tobias > Hi Richard, > > Today we were using RAP and realized that our query does not > seem to be returning all of the (combinatorial) results in XML > that we expect. Here's the test: > > * In our data [1], something may have more than one type > (defined here [2]). For instance, a document may be both > a "FirstEdition" and a "REC". > > [1] http://www.w3.org/2002/01/tr-automation/tr.rdf > [2] http://www.w3.org/2001/02pd/rec54.rdf > > * The query below should return results that show that the resource > identified by this URI: > > http://www.w3.org/TR/REC-html40-971218 > > is both a rec:FirstEdition and a rec:REC. Instead the query results > only attest to it being a rec:REC. > > Note: You can probably construct a much simpler query to test this... > > * As an aside, we have encountered a similar issue of not getting > back all of the results we expect in the rasqal library; see > this bug report: > http://bugs.librdf.org/mantis/view.php?id=77 > > I mention this only because the issue of "getting back all the > combinatorial possibilities in XML" seems to be the same; not that > the implementation issue is in any way related. > > I hope this report is useful. > > _ Ian > > ---------------------------------------------------------- > PREFIX : <http://www.w3.org/2000/10/swap/pim/contact#> > PREFIX doc: <http://www.w3.org/2000/10/swap/pim/doc#> > PREFIX mat: <http://www.w3.org/2002/05/matrix/vocab#> > PREFIX org: <http://www.w3.org/2001/04/roadmap/org#> > PREFIX rec: <http://www.w3.org/2001/02pd/rec54#> > PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> > PREFIX dc: <http://purl.org/dc/elements/1.1/> > SELECT ?doc ?editor ?title ?date ?versionOf ?type ?supersedes > ?previous WHERE {?doc rdf:type ?type; dc:title ?title; dc:date ?date; > doc:versionOf ?versionOf. OPTIONAL {?doc rec:supersedes ?supersedes} > OPTIONAL {?doc rec:previousEdition ?previous} OPTIONAL {?versionOf > rec:supersedes ?supersedes} OPTIONAL {?doc rec:editor > [:fullName ?editor ] .}} ORDER BY DESC(?date) > > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > ------------------------------------------------------------------------ > > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |
From: Ian B. J. <ij...@w3...> - 2006-07-12 17:31:38
|
Hi Richard, Today we were using RAP and realized that our query does not seem to be returning all of the (combinatorial) results in XML that we expect. Here's the test: * In our data [1], something may have more than one type (defined here [2]). For instance, a document may be both a "FirstEdition" and a "REC".=20 [1] http://www.w3.org/2002/01/tr-automation/tr.rdf =20 [2] http://www.w3.org/2001/02pd/rec54.rdf * The query below should return results that show that the resource identified by this URI: http://www.w3.org/TR/REC-html40-971218 is both a rec:FirstEdition and a rec:REC. Instead the query results only attest to it being a rec:REC. Note: You can probably construct a much simpler query to test this... * As an aside, we have encountered a similar issue of not getting back all of the results we expect in the rasqal library; see this bug report: http://bugs.librdf.org/mantis/view.php?id=3D77 I mention this only because the issue of "getting back all the combinatorial possibilities in XML" seems to be the same; not that =20 the implementation issue is in any way related. I hope this report is useful.=20 _ Ian ---------------------------------------------------------- PREFIX : <http://www.w3.org/2000/10/swap/pim/contact#> PREFIX doc: <http://www.w3.org/2000/10/swap/pim/doc#> PREFIX mat: <http://www.w3.org/2002/05/matrix/vocab#> PREFIX org: <http://www.w3.org/2001/04/roadmap/org#> PREFIX rec: <http://www.w3.org/2001/02pd/rec54#>=20 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX dc: <http://purl.org/dc/elements/1.1/> SELECT ?doc ?editor ?title ?date ?versionOf ?type ?supersedes ?previous WHERE {?doc rdf:type ?type; dc:title ?title; dc:date ?date; doc:versionOf ?versionOf. OPTIONAL {?doc rec:supersedes ?supersedes} OPTIONAL {?doc rec:previousEdition ?previous} OPTIONAL {?versionOf rec:supersedes ?supersedes} OPTIONAL {?doc rec:editor [:fullName ?editor ] .}} ORDER BY DESC(?date) --=20 Ian Jacobs (ij...@w3...) http://www.w3.org/People/Jacobs Tel: +1 718 260-9447 |
From: Ian B. J. <ij...@w3...> - 2006-07-11 13:40:44
|
Hello Richard, The change seems to do the trick. Thank you! _ Ian On Mon, 2006-07-10 at 22:50 +0200, Richard Cyganiak wrote: > Hi Ian, >=20 > Thanks for the additional information! I *think* (but haven't =20 > actually tried) that a small change in line 1282 of api/sparql/=20 > SparqlEngine.php should fix the problem. Could you please try to replace >=20 > $label =3D htmlentities($varvalue->getLabel()); >=20 > with >=20 > $label =3D htmlspecialchars($varvalue->getLabel()); >=20 > and report back if it works? >=20 > Cheers, > Richard >=20 >=20 > On 10 Jul 2006, at 16:37, Ian B. Jacobs wrote: >=20 > > On Mon, 2006-07-10 at 11:56 +0200, Richard Cyganiak wrote: > >> Ian, > >> > >> The file parses fine here, with UNIC_RDF set to false. I didn't try > >> to run a SPARQL query though, so maybe the problem is not parsing but > >> somewhere in the SPARQL engine. Can you please provide the exact > >> error message, and a code sample that produces the error? Which > >> version of RAP and PHP ("php -v") is this? > > > > Hello Richard, > > > > Here's more information; I hope it helps. Thanks for your work on =20 > > this. > > > > _ Ian > > > > [Info provided by my colleague Dom] > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > > Version info: > > dom@cumulustier:~$ php5 -v > > PHP 5.1.4-0.1 (cli) (built: Jun 13 2006 21:46:20) > > dom@cumulustier:~$ > > less /usr/local/lib/php/rdfapi-php/api/RdfAPI.php |grep "@version" > > // @version : $Id: RdfAPI.php,v 1.20 =20 > > 2006/05/15 > > 05:24:35 tgauss Exp $ > > > > When I run the SPARQL query on the tr.rdf with UNIC_RDF set to =20 > > false, I > > get back a bunch of PHP errors =E0 la: > > > > Warning: simplexml_load_string(): > > Entity: line 1: parser error : Entity 'acirc' not defined > > in /usr/local/lib/php/rdfapi-php/api/sparql/=20 > > SparqlEngine.php on > > line 1260 > > > > Warning: simplexml_load_string(): iteral>Mark > > Baker</literal></binding><binding > > name=3D"title"><literal>XHTMLâ > > in /usr/local/lib/php/rdfapi-php/api/sparql/SparqlEngine.php on line > > 1260 > > > > Warning: simplexml_load_string(): > > ^ > > in /usr/local/lib/php/rdfapi-php/api/sparql/SparqlEngine.php on line > > 1260 > > > > Warning: simplexml_load_string(): Entity: line 1: parser =20 > > error : > > Input is not proper UTF-8, indicate encoding ! > > Bytes: 0x84 0x26 0x63 0x65 > > in /usr/local/lib/php/rdfapi-php/api/sparql/SparqlEngine.php on line > > 1260 > > > > When I experimented to see what went wrong, it looks like the function > > that outputs the results as XML was failing on the intermediary =20 > > content. > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > >> On 7 Jul 2006, at 03:46, Ian B. Jacobs wrote: > >> > >>> Hello, > >>> > >>> One of my colleagues reported [1] an issue where UTF-8 characters > >>> are escaped like this "\u00D0" (correct codepoints but escaped > >>> instead of the actual characters). > >>> > >>> Richard Cyganiak kindly made a suggestion [2]: > >>> > >>> "Set UNIC_RDF to FALSE again to avoid this." > >>> > >>> However, when I set UNIC_RDF to FALSE, the parser seems to fail. > >>> Here is the query: > >>> > >>> PREFIX : <http://www.w3.org/2000/10/swap/pim/contact#> > >>> PREFIX doc: <http://www.w3.org/2000/10/swap/pim/doc#> > >>> PREFIX mat: <http://www.w3.org/2002/05/matrix/vocab#> > >>> PREFIX org: <http://www.w3.org/2001/04/roadmap/org#> > >>> PREFIX rec: <http://www.w3.org/2001/02pd/rec54#> > >>> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> > >>> PREFIX dc: <http://purl.org/dc/elements/1.1/> > >>> SELECT ?doc, ?editor, ?title, ?date, ?versionOf, ?type, ? > >>> supersedes WHERE {?doc rdf:type ?type; dc:title ?title; dc:date ? > >>> date; doc:versionOf ?versionOf. OPTIONAL {?doc rec:supersedes ? > >>> supersedes} OPTIONAL {?doc rec:editor [:fullName ?editor ] .}} > >>> ORDER BY DESC(?date) > >>> > >>> Here is the RDF source: > >>> http://www.w3.org/2002/01/tr-automation/tr.rdf > >>> > >>> I find that if I set UNIC_RDF to TRUE, parsing succeeds but I =20 > >>> have the > >>> escaping issue. If I set it fo FALSE, parsing fails (with a "255" > >>> error that > >>> I did not examine closely). > >>> > >>> I would appreciate any suggestions and hope the above information is > >>> sufficient to run the test; please let me know if more =20 > >>> information is > >>> required. > >>> > >>> Thank you, > >>> > >>> _ Ian Jacobs > >>> > >>> > >>> > >>> [1] http://sourceforge.net/mailarchive/message.php?msg_id=3D15149273 > >>> [2] http://sourceforge.net/mailarchive/message.php?msg_id=3D15149274 > >>> --=20 > >>> Ian Jacobs (ij...@w3...) http://www.w3.org/People/Jacobs > >>> Tel: +1 718 260-9447 > >>> > >>> --------------------------------------------------------------------=20 > >>> -- > >>> --- > >>> Using Tomcat but need to do more? Need to support web services, > >>> security? > >>> Get stuff done quickly with pre-integrated technology to make your > >>> job easier > >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache > >>> Geronimo > >>> http://sel.as-us.falkag.net/sel? > >>> cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642 > >>> _______________________________________________ > >>> Rdfapi-php-interest mailing list > >>> Rdf...@li... > >>> https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > --=20 > > Ian Jacobs (ij...@w3...) http://www.w3.org/People/Jacobs > > Tel: +1 718 260-9447 --=20 Ian Jacobs (ij...@w3...) http://www.w3.org/People/Jacobs Tel: +1 718 260-9447 |
From: Richard C. <ri...@cy...> - 2006-07-10 20:50:07
|
Hi Ian, Thanks for the additional information! I *think* (but haven't =20 actually tried) that a small change in line 1282 of api/sparql/=20 SparqlEngine.php should fix the problem. Could you please try to replace $label =3D htmlentities($varvalue->getLabel()); with $label =3D htmlspecialchars($varvalue->getLabel()); and report back if it works? Cheers, Richard On 10 Jul 2006, at 16:37, Ian B. Jacobs wrote: > On Mon, 2006-07-10 at 11:56 +0200, Richard Cyganiak wrote: >> Ian, >> >> The file parses fine here, with UNIC_RDF set to false. I didn't try >> to run a SPARQL query though, so maybe the problem is not parsing but >> somewhere in the SPARQL engine. Can you please provide the exact >> error message, and a code sample that produces the error? Which >> version of RAP and PHP ("php -v") is this? > > Hello Richard, > > Here's more information; I hope it helps. Thanks for your work on =20 > this. > > _ Ian > > [Info provided by my colleague Dom] > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D > Version info: > dom@cumulustier:~$ php5 -v > PHP 5.1.4-0.1 (cli) (built: Jun 13 2006 21:46:20) > dom@cumulustier:~$ > less /usr/local/lib/php/rdfapi-php/api/RdfAPI.php |grep "@version" > // @version : $Id: RdfAPI.php,v 1.20 =20 > 2006/05/15 > 05:24:35 tgauss Exp $ > > When I run the SPARQL query on the tr.rdf with UNIC_RDF set to =20 > false, I > get back a bunch of PHP errors =E0 la: > > Warning: simplexml_load_string(): > Entity: line 1: parser error : Entity 'acirc' not defined > in /usr/local/lib/php/rdfapi-php/api/sparql/=20 > SparqlEngine.php on > line 1260 > > Warning: simplexml_load_string(): iteral>Mark > Baker</literal></binding><binding > name=3D"title"><literal>XHTMLâ > in /usr/local/lib/php/rdfapi-php/api/sparql/SparqlEngine.php on line > 1260 > > Warning: simplexml_load_string(): > ^ > in /usr/local/lib/php/rdfapi-php/api/sparql/SparqlEngine.php on line > 1260 > > Warning: simplexml_load_string(): Entity: line 1: parser =20 > error : > Input is not proper UTF-8, indicate encoding ! > Bytes: 0x84 0x26 0x63 0x65 > in /usr/local/lib/php/rdfapi-php/api/sparql/SparqlEngine.php on line > 1260 > > When I experimented to see what went wrong, it looks like the function > that outputs the results as XML was failing on the intermediary =20 > content. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >> On 7 Jul 2006, at 03:46, Ian B. Jacobs wrote: >> >>> Hello, >>> >>> One of my colleagues reported [1] an issue where UTF-8 characters >>> are escaped like this "\u00D0" (correct codepoints but escaped >>> instead of the actual characters). >>> >>> Richard Cyganiak kindly made a suggestion [2]: >>> >>> "Set UNIC_RDF to FALSE again to avoid this." >>> >>> However, when I set UNIC_RDF to FALSE, the parser seems to fail. >>> Here is the query: >>> >>> PREFIX : <http://www.w3.org/2000/10/swap/pim/contact#> >>> PREFIX doc: <http://www.w3.org/2000/10/swap/pim/doc#> >>> PREFIX mat: <http://www.w3.org/2002/05/matrix/vocab#> >>> PREFIX org: <http://www.w3.org/2001/04/roadmap/org#> >>> PREFIX rec: <http://www.w3.org/2001/02pd/rec54#> >>> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> >>> PREFIX dc: <http://purl.org/dc/elements/1.1/> >>> SELECT ?doc, ?editor, ?title, ?date, ?versionOf, ?type, ? >>> supersedes WHERE {?doc rdf:type ?type; dc:title ?title; dc:date ? >>> date; doc:versionOf ?versionOf. OPTIONAL {?doc rec:supersedes ? >>> supersedes} OPTIONAL {?doc rec:editor [:fullName ?editor ] .}} >>> ORDER BY DESC(?date) >>> >>> Here is the RDF source: >>> http://www.w3.org/2002/01/tr-automation/tr.rdf >>> >>> I find that if I set UNIC_RDF to TRUE, parsing succeeds but I =20 >>> have the >>> escaping issue. If I set it fo FALSE, parsing fails (with a "255" >>> error that >>> I did not examine closely). >>> >>> I would appreciate any suggestions and hope the above information is >>> sufficient to run the test; please let me know if more =20 >>> information is >>> required. >>> >>> Thank you, >>> >>> _ Ian Jacobs >>> >>> >>> >>> [1] http://sourceforge.net/mailarchive/message.php?msg_id=3D15149273 >>> [2] http://sourceforge.net/mailarchive/message.php?msg_id=3D15149274 >>> --=20 >>> Ian Jacobs (ij...@w3...) http://www.w3.org/People/Jacobs >>> Tel: +1 718 260-9447 >>> >>> --------------------------------------------------------------------=20= >>> -- >>> --- >>> Using Tomcat but need to do more? Need to support web services, >>> security? >>> Get stuff done quickly with pre-integrated technology to make your >>> job easier >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>> Geronimo >>> http://sel.as-us.falkag.net/sel? >>> cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642 >>> _______________________________________________ >>> Rdfapi-php-interest mailing list >>> Rdf...@li... >>> https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > --=20 > Ian Jacobs (ij...@w3...) http://www.w3.org/People/Jacobs > Tel: +1 718 260-9447 |
From: Richard C. <ri...@cy...> - 2006-07-10 09:56:52
|
Ian, The file parses fine here, with UNIC_RDF set to false. I didn't try to run a SPARQL query though, so maybe the problem is not parsing but somewhere in the SPARQL engine. Can you please provide the exact error message, and a code sample that produces the error? Which version of RAP and PHP ("php -v") is this? Cheers, Richard On 7 Jul 2006, at 03:46, Ian B. Jacobs wrote: > Hello, > > One of my colleagues reported [1] an issue where UTF-8 characters > are escaped like this "\u00D0" (correct codepoints but escaped > instead of the actual characters). > > Richard Cyganiak kindly made a suggestion [2]: > > "Set UNIC_RDF to FALSE again to avoid this." > > However, when I set UNIC_RDF to FALSE, the parser seems to fail. > Here is the query: > > PREFIX : <http://www.w3.org/2000/10/swap/pim/contact#> > PREFIX doc: <http://www.w3.org/2000/10/swap/pim/doc#> > PREFIX mat: <http://www.w3.org/2002/05/matrix/vocab#> > PREFIX org: <http://www.w3.org/2001/04/roadmap/org#> > PREFIX rec: <http://www.w3.org/2001/02pd/rec54#> > PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> > PREFIX dc: <http://purl.org/dc/elements/1.1/> > SELECT ?doc, ?editor, ?title, ?date, ?versionOf, ?type, ? > supersedes WHERE {?doc rdf:type ?type; dc:title ?title; dc:date ? > date; doc:versionOf ?versionOf. OPTIONAL {?doc rec:supersedes ? > supersedes} OPTIONAL {?doc rec:editor [:fullName ?editor ] .}} > ORDER BY DESC(?date) > > Here is the RDF source: > http://www.w3.org/2002/01/tr-automation/tr.rdf > > I find that if I set UNIC_RDF to TRUE, parsing succeeds but I have the > escaping issue. If I set it fo FALSE, parsing fails (with a "255" > error that > I did not examine closely). > > I would appreciate any suggestions and hope the above information is > sufficient to run the test; please let me know if more information is > required. > > Thank you, > > _ Ian Jacobs > > > > [1] http://sourceforge.net/mailarchive/message.php?msg_id=15149273 > [2] http://sourceforge.net/mailarchive/message.php?msg_id=15149274 > -- > Ian Jacobs (ij...@w3...) http://www.w3.org/People/Jacobs > Tel: +1 718 260-9447 > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest |
From: Richard C. <ri...@cy...> - 2006-07-07 11:58:16
|
On 7 Jul 2006, at 11:21, Michael Mainik wrote: > Hi, > tank your for the quick reply. I've already tried it this way but I =20= > get > <ns1:Publication>......</ns1:Publication> instead of the =20 > rdf:Description-tag(ns1=3D"http://swrc.ontoware.org/ontology") and =20 > the rdf:type-tag is still missing. This: <ns1:Publication> ... </ns1:Publication> is exactly the same as this: <rdf:Description> <rdf:type rdf:resource=3D"http://...Publication" /> .... </rdf:Description> The first is just a short form for the second. Both encode exactly =20 the same triples. (You can use tools like the RDF validator [1] to show the triples =20 encoded in an RDF/XML file. You shouldn't worry about how exactly the =20= RDF/XML looks. The triples is all that matters, and the many =20 different ways of writing down the same set of triples as RDF/XML are =20= all equivalent.) Best, Richard [1] http://www.w3.org/RDF/Validator/ > > Best regards, > Michael > -------- Original-Nachricht -------- > Datum: Thu, 6 Jul 2006 22:44:12 +0200 > Von: Richard Cyganiak <ri...@cy...> > An: Michael Mainik <za...@gm...> > Betreff: Re: [Rdfapi-php-interest] rdf:type > >> Hi Michael, >> >> On 6 Jul 2006, at 22:25, Michael Mainik wrote: >>> Im trying to implement a php-script which generates RDF-Files with >>> data form a local database containing infromation about >>> publications. My rdf-file should look like this: >>> <rdf:Description rdf:about=3D"http://swrc.ontoware.org/m1"> >>> <rdf:type> >>> <owl:Class rdf:about=3D"http://swrc.ontoware.org/ >>> ontology#Publication"/> >>> </rdf:type> >>> <dc:creator>Me</dc:creator> >>> <dc:title rdf:datatype=3D"http://www.w3.org/2001/ >>> XMLSchema#string">A multi-agent platform for a corporate semantic >>> web.</dc:title> >>> <dc:description rdf:datatype=3D"http://www.w3.org/2001/ >>> XMLSchema#string">We describe the technical choices and the design >>> of a multi-agents\nsoftware architecture to manage a corporate >>> memory in the form\nof a corporate semantic web. We then present >>> our approach to\ntackle a distributed memory and distributed >>> queries.</dc:description> >>> </rdf:Description> >>> but when I try to add the rdf:type-tag to my model, I get the >>> following error message: >>> Fatal error: Call to undefined method Literal::getURI() in /var/www/ >>> rdfapi-php/api/util/RdfUtil.php on line 63 >>> >>> My php-code looks like this: >>> $publication =3D new Resource('http://l3s.de/publication/'.$ergebnis >>> [$i]->dblp_key); >>> $pub_title =3D DC::TITLE(); >>> $pub_source =3D DC::SOURCE(); >>> =09 >>> =09 >>> $statement0 =3D new Statement($publication, = RDF::TYPE(), new >>> Literal("")); >> >> I guess here's the problem. The object (third element) of an rdf:type >> statement must be a resource, that is, an URI or a blank node. A >> literal will not work. (And especially not an empty literal!) You >> could try something like this: >> >> $model->add(new Statement($pub, RDF::TYPE(), >> new Resource("http://swrc.ontoware.org/ >> ontology#Publication"))); >> >> Best, >> Richard >> >> >> >>> $statement1 =3D new Statement($publication, = $pub_title, new >>> Literal ($ergebnis[$i]->title)); >>> $statement2 =3D new Statement($publication, = $pub_source, new >>> Literal ($ergebnis[$i]->source)); >>> =09 >>> =09 >>> =09 >>> $model->add($statement0); >>> $model->add($statement1); >>> $model->add($statement2); >>> >>> I cannot find any mistake in my code, please help me. >>> --=20 >>> >>> >>> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! >>> Ideal f=FCr Modem und ISDN: http://www.gmx.net/de/go/smartsurfer >>> >>> Using Tomcat but need to do more? Need to support web services, >>> security? >>> Get stuff done quickly with pre-integrated technology to make your >>> job easier >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>> Geronimo >>> http://sel.as-us.falkag.net/sel? >>> cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642 >>> _______________________________________________ >>> Rdfapi-php-interest mailing list >>> Rdf...@li... >>> https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest >>> > > --=20 > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > Ideal f=FCr Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > |
From: Ian B. J. <ij...@w3...> - 2006-07-07 01:47:15
|
Hello, One of my colleagues reported [1] an issue where UTF-8 characters are escaped like this "\u00D0" (correct codepoints but escaped instead of the actual characters).=20 Richard Cyganiak kindly made a suggestion [2]: =20 "Set UNIC_RDF to FALSE again to avoid this." However, when I set UNIC_RDF to FALSE, the parser seems to fail. Here is the query: PREFIX : <http://www.w3.org/2000/10/swap/pim/contact#> PREFIX doc: <http://www.w3.org/2000/10/swap/pim/doc#> PREFIX mat: <http://www.w3.org/2002/05/matrix/vocab#>=20 PREFIX org: <http://www.w3.org/2001/04/roadmap/org#> PREFIX rec: <http://www.w3.org/2001/02pd/rec54#>=20 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX dc: <http://purl.org/dc/elements/1.1/> SELECT ?doc, ?editor, ?title, ?date, ?versionOf, ?type, ?supersedes WHERE = {?doc rdf:type ?type; dc:title ?title; dc:date ?date; doc:versionOf ?versi= onOf. OPTIONAL {?doc rec:supersedes ?supersedes} OPTIONAL {?doc rec:editor= [:fullName ?editor ] .}} ORDER BY DESC(?date) Here is the RDF source: http://www.w3.org/2002/01/tr-automation/tr.rdf I find that if I set UNIC_RDF to TRUE, parsing succeeds but I have the escaping issue. If I set it fo FALSE, parsing fails (with a "255" error tha= t I did not examine closely). I would appreciate any suggestions and hope the above information is sufficient to run the test; please let me know if more information is=20 required. Thank you, _ Ian Jacobs [1] http://sourceforge.net/mailarchive/message.php?msg_id=3D15149273 [2] http://sourceforge.net/mailarchive/message.php?msg_id=3D15149274 --=20 Ian Jacobs (ij...@w3...) http://www.w3.org/People/Jacobs Tel: +1 718 260-9447 |
From: Richard C. <ri...@cy...> - 2006-07-06 20:44:16
|
Hi Michael, On 6 Jul 2006, at 22:25, Michael Mainik wrote: > Im trying to implement a php-script which generates RDF-Files with =20 > data form a local database containing infromation about =20 > publications. My rdf-file should look like this: > <rdf:Description rdf:about=3D"http://swrc.ontoware.org/m1"> > <rdf:type> > <owl:Class rdf:about=3D"http://swrc.ontoware.org/=20 > ontology#Publication"/> > </rdf:type> > <dc:creator>Me</dc:creator> > <dc:title rdf:datatype=3D"http://www.w3.org/2001/=20 > XMLSchema#string">A multi-agent platform for a corporate semantic =20 > web.</dc:title> > <dc:description rdf:datatype=3D"http://www.w3.org/2001/=20 > XMLSchema#string">We describe the technical choices and the design =20 > of a multi-agents\nsoftware architecture to manage a corporate =20 > memory in the form\nof a corporate semantic web. We then present =20 > our approach to\ntackle a distributed memory and distributed =20 > queries.</dc:description> > </rdf:Description> > but when I try to add the rdf:type-tag to my model, I get the =20 > following error message: > Fatal error: Call to undefined method Literal::getURI() in /var/www/=20= > rdfapi-php/api/util/RdfUtil.php on line 63 > > My php-code looks like this: > $publication =3D new Resource('http://l3s.de/publication/'.$ergebnis=20= > [$i]->dblp_key); > $pub_title =3D DC::TITLE(); > $pub_source =3D DC::SOURCE(); > =09 > =09 > $statement0 =3D new Statement($publication, = RDF::TYPE(), new =20 > Literal("")); I guess here's the problem. The object (third element) of an rdf:type =20= statement must be a resource, that is, an URI or a blank node. A =20 literal will not work. (And especially not an empty literal!) You =20 could try something like this: $model->add(new Statement($pub, RDF::TYPE(), new Resource("http://swrc.ontoware.org/=20 ontology#Publication"))); Best, Richard > $statement1 =3D new Statement($publication, = $pub_title, new =20 > Literal ($ergebnis[$i]->title)); > $statement2 =3D new Statement($publication, = $pub_source, new =20 > Literal ($ergebnis[$i]->source)); > =09 > =09 > =09 > $model->add($statement0); > $model->add($statement1); > $model->add($statement2); > > I cannot find any mistake in my code, please help me. > --=20 > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > Ideal f=FCr Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > > Using Tomcat but need to do more? Need to support web services, =20 > security? > Get stuff done quickly with pre-integrated technology to make your =20 > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache =20 > Geronimo > http://sel.as-us.falkag.net/sel?=20 > cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642 > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |
From: Michael M. <za...@gm...> - 2006-07-06 20:26:03
|
Hi, Im trying to implement a php-script which generates RDF-Files with data form a local database containing infromation about publications. My rdf-file should look like this: <rdf:Description rdf:about="http://swrc.ontoware.org/m1"> <rdf:type> <owl:Class rdf:about="http://swrc.ontoware.org/ontology#Publication"/> </rdf:type> <dc:creator>Me</dc:creator> <dc:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">A multi-agent platform for a corporate semantic web.</dc:title> <dc:description rdf:datatype="http://www.w3.org/2001/XMLSchema#string">We describe the technical choices and the design of a multi-agents\nsoftware architecture to manage a corporate memory in the form\nof a corporate semantic web. We then present our approach to\ntackle a distributed memory and distributed queries.</dc:description> </rdf:Description> but when I try to add the rdf:type-tag to my model, I get the following error message: Fatal error: Call to undefined method Literal::getURI() in /var/www/rdfapi-php/api/util/RdfUtil.php on line 63 My php-code looks like this: $publication = new Resource('http://l3s.de/publication/'.$ergebnis[$i]->dblp_key); $pub_title = DC::TITLE(); $pub_source = DC::SOURCE(); $statement0 = new Statement($publication, RDF::TYPE(), new Literal("")); $statement1 = new Statement($publication, $pub_title, new Literal ($ergebnis[$i]->title)); $statement2 = new Statement($publication, $pub_source, new Literal ($ergebnis[$i]->source)); $model->add($statement0); $model->add($statement1); $model->add($statement2); I cannot find any mistake in my code, please help me. -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer |
From: Stefan E. <st...@er...> - 2006-06-23 18:28:13
|
Hello, > -----Original Message----- > From: rdf...@li... [mailto:rdfapi- > > thanks for your contribution! It would be great if we had such a > feature. We are planning to integrate some parts of Benjamin Nowaks ARC > http://arc.web-semantics.org/ in RAP. I propose you have a look at > Benjamins code before continuing your work. Maybe you can adapt ARC to > RAPs SPARQL engine. Which parts of the ARC-implementation will be integrated? Will this affect the database structure of RAP? Regards, Stefan |
From: <tob...@we...> - 2006-06-22 13:30:03
|
Hi, thanks for your contribution! It would be great if we had such a feature. We are planning to integrate some parts of Benjamin Nowaks ARC http://arc.web-semantics.org/ in RAP. I propose you have a look at Benjamins code before continuing your work. Maybe you can adapt ARC to RAPs SPARQL engine. Regards, Tobias > Hello, > > I have a question about the SparqlEngine in the case when DbModel is used > for RDF storage. > > What do you think about replacing the following code in > SparqlEngine->matchPattern > > $resultSet = $this->findTuplesMatchingOnePattern($qt[0], $newGraphList); > for ($i=1; $i<count($qt); $i++) { > $rs = $this->findTuplesMatchingOnePattern($qt[$i], $newGraphList); > $resultSet = $this->joinTuples($resultSet, $rs); > if(!$resultSet) > break; > } > if($finalRes != null){ > $finalRes = $this->joinTuples($finalRes,$resultSet); > }else{ > $finalRes = $resultSet; > } > > by some code which generates a single SQL-Statement which would translate > SPAQL-Queries like > > PREFIX vcard <http://www.w3.org/2001/vcard-rdf/3.0#> > SELECT ?fullName ?age ?telval ?tel > WHERE { ?x vcard:age ?age . ?x vcard:FN ?fullName. ?x vcard:TEL ?tel. ?tel > rdf:value ?telval} > > into SQL-Queries like > > select t0.object as age, t0.object_is as age_type, t1.object as fullName, > t1.object_is as fullName_type, t2.object as tel, t2.object_is as tel_type, > t3.object as telval, t3.object_is as telval_type from statements as t0 > join statements as t1 on t0.subject=t1.subject join statements as t2 on > t0.subject=t2.subject join statements as t3 on t2.object=t3.subject where > 1=1 and t0.predicate = 'http://www.w3.org/2001/vcard-rdf/3.0#age' and > t1.predicate = 'http://www.w3.org/2001/vcard-rdf/3.0#FN' and t2.predicate = > 'http://www.w3.org/2001/vcard-rdf/3.0#TEL' and t3.predicate = > 'http://www.w3.org/1999/02/22-rdf-syntax-ns#value' > > ? > > I have done some basic work into this direction but I want to know what you > think about such a modification? > > With kind regards > Stefan Erras > > > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |
From: Stefan E. <ste...@ge...> - 2006-06-22 12:13:01
|
Hello, I have a question about the SparqlEngine in the case when DbModel is used for RDF storage. What do you think about replacing the following code in SparqlEngine->matchPattern $resultSet = $this->findTuplesMatchingOnePattern($qt[0], $newGraphList); for ($i=1; $i<count($qt); $i++) { $rs = $this->findTuplesMatchingOnePattern($qt[$i], $newGraphList); $resultSet = $this->joinTuples($resultSet, $rs); if(!$resultSet) break; } if($finalRes != null){ $finalRes = $this->joinTuples($finalRes,$resultSet); }else{ $finalRes = $resultSet; } by some code which generates a single SQL-Statement which would translate SPAQL-Queries like PREFIX vcard <http://www.w3.org/2001/vcard-rdf/3.0#> SELECT ?fullName ?age ?telval ?tel WHERE { ?x vcard:age ?age . ?x vcard:FN ?fullName. ?x vcard:TEL ?tel. ?tel rdf:value ?telval} into SQL-Queries like select t0.object as age, t0.object_is as age_type, t1.object as fullName, t1.object_is as fullName_type, t2.object as tel, t2.object_is as tel_type, t3.object as telval, t3.object_is as telval_type from statements as t0 join statements as t1 on t0.subject=t1.subject join statements as t2 on t0.subject=t2.subject join statements as t3 on t2.object=t3.subject where 1=1 and t0.predicate = 'http://www.w3.org/2001/vcard-rdf/3.0#age' and t1.predicate = 'http://www.w3.org/2001/vcard-rdf/3.0#FN' and t2.predicate = 'http://www.w3.org/2001/vcard-rdf/3.0#TEL' and t3.predicate = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#value' ? I have done some basic work into this direction but I want to know what you think about such a modification? With kind regards Stefan Erras |
From: Richard C. <ri...@cy...> - 2006-06-17 15:44:06
|
On 17 Jun 2006, at 14:55, Roberto SL wrote: > 2. I have noticed that beside the GENERAL_PREFIX_BASE variable > there is > a number which derives from . $this->m_nextAutomaticPrefixIndex > specified in the RdfSerializer.php . > > Why there is that number When RAP serializes an RDF model to RDF/XML, it needs namespace declarations for all RDF properties that are used in the model. If there are no declarations for some properties, then RAP makes up its own declarations and uses prefixes like ns0, ns1 and so on. There can be any number of different namespaces in any RDF model, and so RAP needs to number them because each needs its unique prefix. By the way, you can declare your own namespaces using $model- >addNamespace($prefix, $uri). > and is it possible to disable it? Well, just hack the code. But why would you want to do that? Best, Richard > > Thanks again, > > RSL > > > > > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |
From: Richard C. <ri...@cy...> - 2006-06-17 15:34:06
|
Hi Roberto, Concerning the first part of your mail: The VCard vocabulary must be included or the tutorial code won't work: On 17 Jun 2006, at 14:55, Roberto SL wrote: > 1. Error: Resource expected as predicate, no blank node allowed. in > xx/xx/Statement.php on line 66 > > Here is the code taken from the tutorial about MemModel > (http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/tutorial/ > usingthemodelapi.htm ) and which is generating that error: > > <?php > > define("RDFAPI_INCLUDE_DIR", "../rdfapi-php/api/"); > include(RDFAPI_INCLUDE_DIR . "RdfAPI.php"); include(RDFAPI_INCLUDE_DIR . "vocabulary/VCARD.php"); It works if you add this line. The documentation should of course mention this. I've added this line to the tutorial in CVS. I think Tobias will publish it to the website with the next release. Best, Richard |
From: Roberto SL <ref...@gm...> - 2006-06-17 12:54:21
|
Hi all, I am testing the RDF PHP API because it is my intention to integrate it in an open source project. However, while testing I have the following issues: 1. Error: Resource expected as predicate, no blank node allowed. in xx/xx/Statement.php on line 66 Here is the code taken from the tutorial about MemModel (http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/tutorial/usingthemodelapi.htm ) and which is generating that error: <?php define("RDFAPI_INCLUDE_DIR", "../rdfapi-php/api/"); include(RDFAPI_INCLUDE_DIR . "RdfAPI.php"); $someDoc = new Resource ("http://www.example.org/someDocument.html"); $creator = new Resource ("http://www.purl.org/dc/elements/1.1/creator"); $statement1 = new Statement ($someDoc, $creator, new Literal ("Radoslaw Oldakowski")); $model1 = ModelFactory::getDefaultModel(); $model1->add($statement1); $model2 = ModelFactory::getDefaultModel(); $model2->add(new Statement($someDoc, new Resource("http://www.example.org/myVocabulary/title"), new Literal("RAP tutorial"))); $model2->add(new Statement($someDoc, new Resource("http://www.example.org/myVocabulary/language"), new Literal("English"))); $model1->addModel($model2); $bNode = new BlankNode($model1); $model1->replace(NULL, NULL, new Literal("Radoslaw Oldakowski"), $bNode); $model1->add(new Statement($bNode, $VCARD_FN, new Literal("Radoslaw Oldakowski"))); $model1->add(new Statement($bNode, $VCARD_EMAIL, new Literal("ra...@gm..."))); echo "\$model1 contains " .$model1->size() ." statements"; echo "<b>Output the MemModel as HTML table: </b><p>"; $model1->writeAsHtmlTable(); $model1->saveAs("model1.rdf", "rdf"); $model1->saveAs("model1.n3", "n3"); ?> 2. I have noticed that beside the GENERAL_PREFIX_BASE variable there is a number which derives from . $this->m_nextAutomaticPrefixIndex specified in the RdfSerializer.php . Why there is that number and is it possible to disable it? Thanks again, RSL |
From: Richard C. <ri...@cy...> - 2006-06-06 07:08:03
|
AJ, Note that <rdf:Description ...> with an <rdf:type rdf:resource="...Experiment" /> inside is exactly equivalent to <exp:Experiment ...>. The latter is just a shorthand for the former. That said, when you add an rdf:type statement with value exp:Experiment to the instance, you should get the output you want. Here's some code to get you started: <?php define("RDFAPI_INCLUDE_DIR", "./rdfapi-php/api/"); include(RDFAPI_INCLUDE_DIR . "RdfAPI.php"); $model = ModelFactory::getDefaultModel(); $model->addNamespace('ex', 'http://example.org/'); $a = new Resource("http://example.org/a"); $type = new Resource("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"); $b = new Resource("http://example.org/b"); $statement = new Statement($a, $type, $b); $model->add($statement); echo $model->writeRdfToString(); ?> Best, Richard On 5 Jun 2006, at 08:13, AJ Chen wrote: > I created a ResModel for an instance of class Experiment (from my > own ontology called "exp") and wrote it into RDF file using $model- > >saveAs($save_file). In the RDF file, the class instance started with > <rdf:Description rdf:ID="i"> > > How do I tell the resmodel that it's an instance of Experiment > class? I want to have the RDF writen as > <rdf:RDF > <exp:Experiment rdf:ID="i"> > ... > > Thanks, > AJ > > > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest |