JSON-LD for search.datao.net

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 Tuesday, 11 November 2014 02:35:41 UTC