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 deshaw.com
Wed Mar 18 23:17:46 PDT 2009


Thanks. The xsd:string worked. :)

Regards,
Nidhi



-----Original Message-----
From: protege-owl-bounces at mailman.stanford.edu [mailto:protege-owl-bounces at mailman.stanford.edu] 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: <http://www.owl-ontologies.com/Ontology1236061076.owl# 
> >" +
> 		"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?

--J

_______________________________________________
protege-owl mailing list
protege-owl at lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 



More information about the protege-owl mailing list