From: Mark D W. <mar...@ko...> - 2014-12-12 20:50:54
|
I'm noticing some anomalies in the handling of typed literals Here's a very simple RDF/XML file, with just two statements. The first has a literal with an integer typed value of 42. <?xml version="1.0" encoding="utf-8"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:base="http://www.w3.org/2001/XMLSchema#" xmlns:me="http://www.example.com/"> <rdf:Description rdf:about="urn:guid:00000000-0000-0000-0000-000000000003" > <me:A rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">42</me:A> <me:B rdf:datatype="integer">37</me:B> </rdf:Description> </rdf:RDF> If I execute the following query, PREFIX me: <http://www.example.com/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> SELECT DISTINCT ?s ?p WHERE { ?s ?p 42 . } LIMIT 25 the two external triplestore implementations I tried correctly return one tuple; however, the dotNetRDF LeviathanQueryProcessor using the in-memory store does not return any tuples. Is this a bug, or operator error? Also, I was hoping to reduce the size of my RDF/XML by using the xml:base construct, but I don't seem to be able to get the xml:base attribute to take effect. Is there a trick to getting that to work? Thanks, -Mark |