From: Rob V. <rv...@do...> - 2014-04-18 05:15:13
|
The query only matches a single triple which is why you only get one result "two" is not the same term as "two"^^xsd:string The recent RDF 1.1 specification says that "two" is implicitly typed such as to be equivalent to "two"^^xsd:string but this is not a specification that we yet support Rob From: Сергей Попов <ser...@ma...> Reply-To: Сергей Попов <ser...@ma...> Date: Monday, 14 April 2014 12:40 To: Rob Vesse <rv...@do...> Subject: Query > Hi > My data: > > @prefix d: <http://learningsparql.com/ns/data#>. > @prefix dm: <http://learningsparql.com/ns/demo#>. > @prefix xsd: <http://www.w3.org/2001/XMLSchema#>. > @prefix mt: <http://learningsparql.com/ns/mytypesystem#>. > d:item1a dm:prop "3". > d:item1b dm:prop "3"^^xsd:integer. > d:item1c dm:prop 3. > d:item1d dm:prop 3.0e5. > d:item2a dm:prop "two". > d:item2b dm:prop "two"^^xsd:string. > d:item2c dm:prop "two"^^mt:potrzebies. > d:item2d dm:prop "two"@en. > > My query: > > PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> > PREFIX d: <http://learningsparql.com/ns/data#> > PREFIX dm: <http://learningsparql.com/ns/demo#> > SELECT ?s > WHERE { ?s ?p "two" . } > I get next Result: > > http://learningsparql.com/ns/data#item2a > > <http://learningsparql.com/ns/data#item2a> One result only return. Why does't > return two results d:item2a, d:item2b. > > -- > Сергей Попов |