Querying the SADI registry

7 views
Skip to first unread message

Tim Lebo

unread,
Dec 18, 2011, 3:59:00 PM12/18/11
to sadi-dev
sadi-dev,

I am trying to execute the following query against the SPARQL endpoint
behind http://sadiframework.org/registry/sparql/

select distinct ?service
where {
?service a <http://www.mygrid.org.uk/mygrid-moby-
service#serviceDescription>
}

Unfortunately, it defaults to HTML and ignores requests for the
standard format of "application/sparql-results+xml" [1]:

curl -H "Accept: application/sparql-results+xml" 'http://
sadiframework.org/registry/sparql/?query=select%20distinct%20%3Fservice
%0Awhere%20%7B%0A%20%20%3Fservice%20a%20%3Chttp%3A%2F
%2Fwww.mygrid.org.uk%2Fmygrid-moby-service%23serviceDescription%3E%0A
%7D%0A'

Do I need to do something extra to get standard SPARQL Protocol [2]
behavior?

Thank you for your consideration.

Regards,
Tim Lebo

[1] http://www.w3.org/TR/rdf-sparql-XMLres/
[2] http://www.w3.org/TR/rdf-sparql-protocol/

Luke McCarthy

unread,
Dec 19, 2011, 11:32:05 AM12/19/11
to sadi...@googlegroups.com
I'll look into this today, but for now, you should be able to execute the query against the actual Virtuoso SPARQL endpoint, which is http://biordf.net/sparql — you will need to specify the named graph http://sadiframework.org/registry/ to avoid getting Biomoby services in with your results (so the query becomes:
SELECT DISTINCT ?service
FROM <http://sadiframework.org/registry/>
WHERE {
?service a <http://www.mygrid.org.uk/mygrid-moby-service#serviceDescription>
}
)

Cheers,

Luke

Tim rdf

unread,
Dec 19, 2011, 1:22:51 PM12/19/11
to sadi...@googlegroups.com
Luke,

Thanks for pointing me to the source endpoint. I can work from that,
though it'd be nice to have that exposed and/or having
sadiframework.org/registry/sparql/ behave like a normal endpoint.

Regards,
Tim

Luke McCarthy

unread,
Dec 19, 2011, 1:24:20 PM12/19/11
to sadi...@googlegroups.com
Which is why I said "for now" and "I'll look into this today".

Luke McCarthy

unread,
Dec 19, 2011, 7:00:38 PM12/19/11
to sadi...@googlegroups.com
"http://sadiframework.org/registry/sparql/ should now be functioning as an
actual SPARQL endpoint. Let me know if there are still problems with it.
Reply all
Reply to author
Forward
0 new messages