Re: [foaf-dev] foaf-dev Digest, Vol 82, Issue 2
Timothy Holborn <[email protected]> Sat, 21 Jun 2014 03:49:48 +1000
| Newsgroups | gmane.comp.web.rdfweb |
|---|---|
| Message-ID | <[email protected]> |
Sent from my iPad > On 21 Jun 2014, at 2:00 am, foaf-dev-request-RyYwo1q5J+qsOXdr9/[email protected] wrote: > > Send foaf-dev mailing list submissions to > foaf-dev-RyYwo1q5J+qsOXdr9/[email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.foaf-project.org/mailman/listinfo/foaf-dev > or, via email, send a message with subject or body 'help' to > foaf-dev-request-RyYwo1q5J+qsOXdr9/[email protected] > > You can reach the person managing the list at > foaf-dev-owner-RyYwo1q5J+qsOXdr9/[email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of foaf-dev digest..." > > > Today's Topics: > > 1. Re: fyi, I made a quick json-ld context for foaf > (Nicholas Humfrey) > 2. Re: fyi, I made a quick json-ld context for foaf (Dan Brickley) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 19 Jun 2014 18:59:19 +0100 > From: Nicholas Humfrey <[email protected]> > To: Dan Brickley <[email protected]> > Cc: foaf-dev Friend of a <foaf-dev-RyYwo1q5J+qsOXdr9/[email protected]> > Subject: Re: [foaf-dev] fyi, I made a quick json-ld context for foaf > Message-ID: <F41FBB97-0380-48B9-8FC3-39D1F6636D4F-s4kxQxTmxwLQT0dZR+AlfA@public.gmane.org> > Content-Type: text/plain; charset=us-ascii > > Very nice! > +1 > 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 > > > ------------------------------ > > Message: 2 > Date: Thu, 19 Jun 2014 19:09:43 +0100 > From: Dan Brickley <[email protected]> > To: Libby Miller <[email protected]>, foaf-dev Friend of a > <foaf-dev-RyYwo1q5J+qsOXdr9/[email protected]>, Markus Lanthaler > <[email protected]> > Subject: Re: [foaf-dev] fyi, I made a quick json-ld context for foaf > Message-ID: > <CAFfrAFoMP1Rmk2OK0RNkTQQYQ=MoiJxjh8aNb1z9RRhW+UnH_Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> > Content-Type: text/plain; charset=UTF-8 > >> On 18 June 2014 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/" >> } > > 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 > > > ------------------------------ > > _______________________________________________ > foaf-dev mailing list > foaf-dev-RyYwo1q5J+qsOXdr9/[email protected] > http://lists.foaf-project.org/mailman/listinfo/foaf-dev > > End of foaf-dev Digest, Vol 82, Issue 2 > ***************************************