Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] Running SPARQL query using Java code andAllegroGraph store

Luthra, Nidhi Nidhi.Luthra at
Wed Mar 18 23:17:46 PDT 2009

Thanks. The xsd:string worked. :)


-----Original Message-----
From: protege-owl-bounces at [mailto:protege-owl-bounces at] On Behalf Of James Howison
Sent: Wednesday, March 18, 2009 9:53 PM
To: User support for the Protege-OWL editor
Subject: Re: [protege-owl] Running SPARQL query using Java code andAllegroGraph store

On 18 Mar 2009, at 5:48 AM, Luthra, Nidhi wrote:

> Hi all
> I wrote the following query in Java and tried executing it for the  
> RDF store I had in AllegroGraph Server.
> String query ="PREFIX owl1: < 
> >" +
> 		"SELECT  ?subject ?q "+
> 		"WHERE { ?subject owl1:belongsToDB ?p." +
> 		"?p owl1:DB_name \"ny\" }";
> But this shows no results. Whereas when I run the same query in  
> Protégé application using SPARQL query panel, it gives good results.
> I think I am mistaking at specifying the literal "ny" in the query.
> Could anyone please correct my mistake and oblige :)

Try \"ny\"^^xsd:string ?  Perhaps the string also has a language  
element?  (You'd need to define xsd)

If you can print out the Turtle version of the data, that will help.   
Perhaps pick a known relevant object and use DESCRIBE?


protege-owl mailing list
protege-owl at

Instructions for unsubscribing: 

More information about the protege-owl mailing list