Re: Finding SPAQL endpoints?

On Sat, 2009-03-07 at 00:36 -0300, Daniel Schwabe wrote:
> I could query the site for its sitemap extension (would it always be 
> <home url>/sitemap.xml? 

Yes, you can do it in a programmatic way. But that URL (/sitemap.xml),
even it's common used, it's not mandatory, so you can't use it as a
constant. But there is one way, not so direct, but at least one that is
standard:

1) From /robots.txt you can take the Sitemap's URL ("Sitemap:" as [1]
specifies)
2) According the extension proposed by DERI [2], you can check if the
sitemap points a SPARQL enpoint looking for the
sc:sparqlEndpointLocation element.

Hope that helps.

Best,

[1] http://www.sitemaps.org/protocol.php
[2] http://sw.deri.org/2007/07/sitemapextension/

-- 
Sergio Fernández - sergio.fernandez@fundacionctic.org
R&D Deparment
CTIC Foundation - www.fundacionctic.org
Phone: +34 984 29 12 12
Fax:  +34 984 39 06 12
Edificio Centros Tecnológicos
Parque Científico Tecnológico
33203 Cabueñes - Gijón - Asturias - Spain

Received on Sunday, 8 March 2009 20:06:34 UTC