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

FYI - looks good :)
(Lost formatting - see link :  http://lists.foaf-project.org/pipermail/foaf-dev/2014-June/010933.html )

On 18 June 2014 19:05, Dan Brickley <danbri at danbri.org> 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/" > } The core schema is now also served as json-ld by content negotiation, thanks to Markus Lanthaler for doing the conversion and helping debug during the inevitable "swearing at Apache configuration files" session that such things necessitate. The context file also now has a JSON-LD media type btw. curl -H "Accept: application/ld+json" http://xmlns.com/foaf/0.1/ At some point we should automate the generation of this, but FOAF isn't changing very fast so I think we're good for now. Let's link the files visibly from the FOAF spec next time it gets a revision... Dan > 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

Source: http://lists.foaf-project.org/pipermail/foaf-dev/2014-June/010933.html

Received on Friday, 20 June 2014 17:44:21 UTC