Re: JSON-LD for search.datao.net

Hi John. Hi everyone.

I hope search.datao.net is more usable after my latest corrections.
Could please retry your operations?

FYI, the REST service is accessible via such an URL:
http://91.121.4.203/?q=tom+cruise

Nothing more complicated. (yet :)

The JSON-LD support is pretty basic. But I think it is enough.
(once again, feel free to comment).

I still have to investigate how to map my JSON properties
"endpoint.url" and "endpoint.namedgraph" to an existing vocabulary.

Anyone here can help?
Or point me at the correct discussion group to discuss that topic?

On Tue, Nov 11, 2014 at 9:26 AM, John Walker <john.walker@semaku.com> wrote:
> Hi Olivier,
>
> Nice initiative.
>
> I tried to make a request via curl like this:
>
> curl "http://91.121.4.203/" -H "Accept: application/ld+json"
>
> However it returns HTML with the JSON-LD in <pre> element.
> Also it is not clear to me how I should send the query text string.
>
> With regards the the _id, you can map this to the @id key using the JSON-LD
> context as described here:
> http://www.w3.org/TR/json-ld/#aliasing-keywords
>
> Cheers,
> John
>
>
>> On November 11, 2014 at 3:34 AM Olivier Rossel <olivier.rossel@gmail.com>
>> wrote:
>>
>>
>> Hi everyone.
>>
>> I have hacked a small search engine for the Linked Data.
>> It is available here: http://search.datao.net/
>>
>> Just type a resource label in the search bar.
>> And the search engine will (hopefully) return
>> the corresponding resources of the Linked Data.
>>
>> For example, typing "CNN" returns a JSON result set.
>> With each entry formatted like this:
>>
>> {
>> "_id":"http://dbpedia.org/resource/Category:CNN",
>> "rdfslabel":[
>> "CNN"
>> ],
>> "endpoint":{
>> "url":"http://data-observatory.org/lod-profiles/sparql",
>> "namedgraph":"http://dbpedia.org/full_data"
>> },
>> "rdftype":[
>> "http://www.w3.org/2004/02/skos/core#Concept"
>> ]
>> }
>>
>>
>> Basically, this JSON snippet translates into:
>> "Resource with URI 'http://dbpedia.org/resource/Category:CNN' is
>> available at endpoint
>> 'http://data-observatory.org/lod-profiles/sparql' in named graph
>> 'http://dbpedia.org/full_data'. Its labels are ['CNN'] and its types
>> are ['http://www.w3.org/2004/02/skos/core#Concept']".
>>
>> No big deal.
>>
>> But now I wish to make the result set to be as JSON-LD compliant as
>> possible.
>>
>> As far as I understand, renaming the '_id' property into '@id' is one
>> step in the right direction.
>>
>> But I would very much appreciate your expertise about the other things
>> to tweak in order to return
>> results compliant with the JSON-LD philosophy.
>>
>> Your help and comments are very welcome.
>>
>> Cheers...
>>

Received on Wednesday, 12 November 2014 11:50:08 UTC