W3C home > Mailing lists > Public > semantic-web@w3.org > February 2017

Re: sameAs.org

From: Hugh Glaser <hugh@glasers.org>
Date: Mon, 13 Feb 2017 12:41:26 +0000
Cc: Tim Thompson <timathom@gmail.com>, Andy Mabbett <andy@pigsonthewing.org.uk>, Semantic Web Mailing List <semantic-web@w3.org>
Message-Id: <8B0C3C8C-DE80-42F3-B5AA-0CB05AB21795@glasers.org>
To: Miel Vander Sande <Miel.VanderSande@UGent.be>
Hi Miel,
> On 13 Feb 2017, at 12:04, Miel Vander Sande <Miel.VanderSande@UGent.be> wrote:
> 
> Hi Hugh,
> 
> 
>> On 07 Feb 2017, at 13:36, Hugh Glaser <hugh@glasers.org> wrote:
>> 
>> Hi again,
>> I think I could do with some help here (or at least advice!).
>> (I'm keeping this on the list, as I think it is probably still of interest to some people - feel free to email me to tell us to take it off list.)
>> 
>> So, following your pages, there seem to be quite a lot of options for me.
>> 
>> The context:
>> I have REST-like services that query based on a single (urlencoded) symbol/URI.
>> For example
>> http://differentfrom.org
>> which can be invoked by
>> http://differentfrom.org/symbols/http%3A%2F%2Fdata.ordnancesurvey.co.uk%2Fid%2F7000000000003822
>> and of course they do the conneg for rdf.
>> 
>> So it seems to me that I need a simple proxy that wraps whatever I need around this.
> 
> I’m not entirely sure I follow. A proxy could translate such request to the TPF server. This actually what the DBpedia archive does now after they switched to TPF. For instance, the URL http://dbpedia.mementodepot.org/memento/20151001000000/http://dbpedia.org/page/Frederik_H._Kreuger queries the TPF server at http://fragments.mementodepot.org/ internally.
But isn't that the other way around?
I already serve Linked Data - it's the TPF server I don't have.
So the proxy you talk about is LD calling TPF.
I need TPF calling LD (I think).
> 
>> (I'm pretty sure I don't want to cache anything, such as tdt, since the underlying service is doing all the caching it can manage, so if the proxy is running on the same server, that would be a poor thing to do.)
>> I can also invoke the service directly (in PHP), but that would simply be a call instead of the http GET.
> 
> Could you elaborate?
With respect to the caching; if the Linked Data -> TPF proxy is simple (and therefore lightweight) enough, then there should be not point in caching something which is making a call to get data that is already cached.

The direct PHP service is simply that if a TPF proxy is running on the same server as the Linked Data source, then it can make a direct call to get the data the same way the HTTP GET would make.

I hope that is clearer.
Cheers
Hugh
> 
> Cheers,
> 
> Miel
> 
>> It seems to me that there must be a really lightweight solution to this?
>> I guess I also need some hydra document(s) somewhere that describes the service.
>> 
>> Is that roughly right?
>> And if so, what is best?
>> 
>> Cheers
>> 
>>> On 6 Feb 2017, at 20:14, Miel Vander Sande <miel.vandersande@ugent.be> wrote:
>>> 
>>> Hi Hugh,
>>> 
>>>> On 06 Feb 2017, at 19:10, Hugh Glaser <hugh@glasers.org> wrote:
>>>> 
>>>> I'm probably missing something, but don't I need a SPARQL endpoint for the TPF server?
>>> 
>>> You certainly don’t; but you can, if you want. The TPF server publishes a datasource through a Web API that only accepts triple patterns. What type of datasource you use is up to you. 
>>> 
>>> We mostly use HDT (http://rdfhdt.org), because it is very compact and very performant for the TPF server. You can also use a SPARQL endpoint as datasource, but I wouldn’t recommend it.
>>> 
>>> SPARQL queries are possible, but they are executed by the client. Check out http://client.linkeddatafragments.org/ for instance. It queries http://fragments.dbpedia.org/en by default, but this could be any other TPF interface. 
>>> 
>>> Cheers,
>>> 
>>> Miel
Received on Monday, 13 February 2017 12:41:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:50:25 UTC