- From: Milan Simonovic <milan.molbio@gmail.com>
- Date: Fri, 26 Jun 2015 14:53:33 +0200
- To: Ruben Verborgh <ruben.verborgh@ugent.be>
- Cc: public-linked-json@w3.org
- Message-Id: <BAECE4F8-AE5A-4C25-B1FD-B162E6D161EF@gmail.com>
ah, sorry, I thought it’s possible using any kind of vocabulary (schema.org <http://schema.org/> for example), thanks for the clarification.
regards,
Milan
> On Jun 26, 2015, at 14:45, Ruben Verborgh <ruben.verborgh@ugent.be> wrote:
>
> Hi Milan,
>
>> so if i wanted to have a search URI template in my json-ld, something like
>> http://www.youtypeitwepostit.com/search/{search}
>> then I have to use Hydra.
>
> The Hydra Core Vocabulary would indeed be my preferred choice here; others might exist.
>
>> Ok, but I don’t see how vocabularies solve this. What do you mean by that?
>
> Well, the Hydra Core Vocabulary is a vocabulary that allows you to talk about IRI templates.
> For example:
>
> {
> "@context": "http://www.w3.org/ns/hydra/context.jsonld",
> "@type": "IriTemplate",
> "template": "http://api.example.com/issues{?q}",
> "mapping": [
> {
> "@type": "IriTemplateMapping",
> "variable": "q",
> "property": "hydra:freetextQuery",
> "required": true
> }
> ]
> }
>
> The above snippet is JSON-LD, and uses Hydra Core Vocabulary concepts
> (hydra:IriTemplate, hydra:template, hydra:mapping, …) to explain the IRI template.
> More info: http://www.w3.org/ns/hydra/spec/latest/core/#templated-links
>
> This shows how the Hydra Core Vocabulary solves the expression of IRI templates in RDF.
>
> Best,
>
> Ruben
Received on Friday, 26 June 2015 12:54:10 UTC