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 |