Hello Ivan,

Thanks for your response.

The reason I asked about it was that a particular query was not working for me.

Sample graph:

urn:foo1 urn:prop1 "1"^^xsd:integer.
urn:foo2 rdf:label "bar".


Queries:

describe ?x where {?x rdf:label "bar". } <- works, returns all the
triples with urn:foo2 as subject
describe ?x where {?x ?p ?o.} <- works, returns the entire graph

describe ?x where {?x urn:prop1 "1".} <- fails, returns empty graph
describe ?x where {?x urn:prop1 "1"^^xsd:int.} <- fails, returns empty graph
describe ?x where {?x urn:prop1 "1"^^xsd:integer.} <- fails, returns empty graph
describe ?x where {?x urn:prop1 1.} <- fails, returns empty graph
describe ?x where {?x ?p 1.} <-fails, returns empty graph



Also, select fails

select ?x where {?x urn:prop1 1.}


Perhaps it is my lack of knowledge on Sparql querying ... but is there
some special syntax to indicate an integer in the "object" position in
the graph pattern ? I think with simple literals, the describe is
working correctly for me, but not for these kind of literals (but I
have not tested extensively).

Any help in this regard would be really appreciated ...

Regards
Rajeev J Sebastian


On Jan 22, 2008 11:28 AM, Ivan Mikhailov <imikhai...@openlinksw.com> wrote:
> Hello Rajeev,
>
> Yes, Virtuoso supports DESCRIBE for everything that can be SELECTed.
> Internally, DESCRIBE, CONSTRUCT, INSERT, DELETE and MODIFY are
> implemented as user-defined aggregates applied to the output of
> appropriate SELECT statement so they do not bring any additional
> restrictions to SELECT functionality.
>
> Best Regards,
> Ivan Mikhailov,
> OpenLink Software.
>
>
> On Tue, 2008-01-22 at 05:32 +0530, Rajeev J Sebastian wrote:
> > Hello all,
> >
> > Does Virtuoso 5.0.3 support queries of the form:
> >
> > describe ?x where { ?x foaf:name "foo" }
> >
> > ?
> >
> > Regards
> > Rajeev J Sebastian
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Virtuoso-users mailing list
> > Virtuoso-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>
>

Reply via email to