Re: [foaf-dev] fyi, I made a quick json-ld context for foaf

Nicholas Humfrey <[email protected]> Thu, 19 Jun 2014 18:59:19 +0100
Newsgroups gmane.comp.web.rdfweb
Message-ID <[email protected]>
Very nice!

Sent from my phone


> On 18 Jun 2014, at 19:05, Dan Brickley <[email protected]> wrote:
> 
> http://xmlns.com/foaf/context
> 
> ... let's you write things like this
> 
> {
>  "@context": "http://xmlns.com/foaf/context",
>  "@type": "Person",
>  "name": "Manu Sporny",
>  "homepage": "http://manu.sporny.org/"
> }
> 
> I figured it's better than using the full foaf ns URI, it doesn't need
> that silly '0.1' yet triples expand to their usual old form. Plus I
> didn't need to mess around with content negotiation, which is always a
> huge plus.
> 
> The format is based on the schema.org one we also added this week
> (conneg at 'schema.org' homepage, or also available c/o
> schema.org/docs/jsonldcontext.json.txt ). These files help json
> parsers figure out whether to treat strings as URIs etc., e.g. see
> http://json-ld.org/playground/ which currently has ugly FOAF examples
> because the @context is declared inline.
> 
> cheers,
> 
> Dan
> _______________________________________________
> foaf-dev mailing list
> foaf-dev-RyYwo1q5J+qsOXdr9/[email protected]
> http://lists.foaf-project.org/mailman/listinfo/foaf-dev