SHARE client does not show any result (ANY SOLUTION?)

33 views
Skip to first unread message

Ahmad Chan

unread,
Oct 31, 2013, 10:27:36 PM10/31/13
to sadi...@googlegroups.com
Hi,

 I have configured SHARE according to this tutorial (https://code.google.com/p/sadi/wiki/CustomRegistry) for my registry (http://cbakerlab.unbsj.ca:8080/yusai/). All the services have been developed to consume this (http://cbakerlab.unbsj.ca:8080/liapi/snorql/) sparql endpoint. My sadi.properties file exactly has the following code.

# sadi.properties

# add a local registry read from a SPARQL endpoint
sadi.registry.local = ca.wilkinsonlab.sadi.client.RegistryImpl
sadi.registry.local.endpoint = http://cbakerlab.unbsj.ca:8080/liapi/sparql
sadi.registry.local.graph = http://cbakerlab.unbsj.ca:8080/yusai/

sadi.registry.sadi.exclude = true
sadi.registry.biomoby.exclude = true
sadi.registry.sparql.exclude = true

sadi.registry.demo = ca.wilkinsonlab.sadi.client.DemoRegistry
sadi.registry.demo.url = /demo-registry.rdf

Rest, i did not change anything, just uploaded on web server. The SHARE is accessible at http://cbakerlab.unbsj.ca:8080/cardioSHARE-yusai/.

when i try following query, it does not return any result.

PREFIX uysie: <http://cbakerlab.unbsj.ca:8085/unbvps/uysie#>
SELECT DISTINCT ?figid ?pmid
FROM <http://cbakerlab.unbsj.ca:8080/liapi/sparql>
WHERE {
?s <http://cbakerlab.unbsj.ca:8085/unbvps/uysie#hasImageID> ?figid.
?s <http://cbakerlab.unbsj.ca:8085/unbvps/uysie#hasPMID> ?pmid.
FILTER(?pmid='16725051')
}

Where i am doing mistake. I will appreciate, if anyone help me to figure out this issue. Did i configure the SHARE properly, i have doubt?

Thanks

Luke McCarthy

unread,
Nov 14, 2013, 12:07:24 PM11/14/13
to sadi...@googlegroups.com
Hi,

I can't connect to the SPARQL endpoint http://cbakerlab.unbsj.ca:8080/liapi/sparql — I get an HTTP 400 Bad Request error. 

So I tried fetching the SPARQL request URL manually (http://cbakerlab.unbsj.ca:8080/liapi/sparql?query=PREFIX++rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX++mygrid%3A+%3Chttp%3A%2F%2Fwww.mygrid.org.uk%2Fmygrid-moby-service%23%3E%0APREFIX++sadi%3A+%3Chttp%3A%2F%2Fsadiframework.org%2Fontologies%2Fsadi.owl%23%3E%0APREFIX++rdf%3A++%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0A%0ASELECT++*%0AWHERE%0A++%7B+%3FserviceURI++mygrid%3AhasOperation++%3Fop+%3B%0A++++++++++++++mygrid%3AhasServiceNameText++%3Fname+%3B%0A++++++++++++++mygrid%3AhasServiceDescriptionText++%3Fdescription+.%0A++++%3Fop+++++++mygrid%3AinputParameter++%3Finput+.%0A++++%3Finput++++rdf%3Atype++++++++++++++mygrid%3Aparameter+%3B%0A++++++++++++++mygrid%3AobjectType+++++%3FinputClassURI+.%0A++++OPTIONAL%0A++++++%7B+%3FinputClassURI%0A++++++++++++++++++rdfs%3Alabel++%3FinputClassLabel+.%0A++++++%7D%0A++++%3Fop++++++mygrid%3AoutputParameter++%3Foutput+.%0A++++%3Foutput++mygrid%3AobjectType+++++%3FoutputClassURI+.%0A++++OPTIONAL%0A++++++%7B+%3FoutputClassURI%0A++++++++++++++++++rdfs%3Alabel++%3FoutputClassLabel+.%0A++++++%7D%0A++%7D%0A&default-graph-uri=http%3A%2F%2Fcbakerlab.unbsj.ca%3A8080%2Fyusai%2F) and found the error message "This service does not allow the dataset to be specified in the protocol request".

So then I removed the sadi.registry.local.graph line from your sadi.properties. That allows the query to complete, but there are no results returned (i.e.: there are no services registered in whatever the default dataset from http://cbakerlab.unbsj.ca:8080/liapi/sparql is…)

In your sadi.properties, you are including a local file as well. Is that the file that contains the registered services? If so, I'll need to see it to further diagnose what's going wrong.

Cheers,

Luke

--
You received this message because you are subscribed to the Google Groups "sadi-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sadi-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages