RE: Updated JSON-LD spec to more closely align w/ RDF data model

On Wednesday, July 10, 2013 11:01 AM, Peter F. Patel-Schneider wrote:
> On 07/10/2013 12:24 AM, Markus Lanthaler wrote:
> > On Wednesday, July 10, 2013 2:34 AM, Peter F. Patel-Schneider
> >> Appendix A looks good, modulo an answer to my query about mixed
> types
> >> for JSON numbers.
> > Great. By your query about mixed types you mean the mapping to
> xsd:integer and xsd:double depending on the fractional part, right?
> 
> Yes.
> >
> >
> >> Appendix C should mention the new generalized RDF datasets, I think,
> >> but the other changes look OK.
> > It does:
> >
> >     In JSON-LD properties can be IRIs or blank nodes whereas in RDF
> >     properties (predicates) have to be IRIs. This means that JSON-LD
> >     serializes *generalized RDF Datasets*.
> >
> > with "generalized RDF Datasets" being a link to the definition in RDF
> Concepts. Do you think we need to add another sentence?
> 
> 
> Oops, I didn't read far enough.
> 
> I was commenting about parts of the first paragraph in Appendix C that
> do not
> appear to have been adjusted to account for generalized RDF datasets.
> 
> > Could you please propose one.
> 
> I would like to see the first part of Appendix C adjusted to match
> Appendix A,
> something like:
> 
> JSON-LD is a concrete RDF syntax
> <http://www.w3.org/TR/rdf11-concepts/#dfn-concrete-rdf-syntax> as
> described in
> [RDF11-CONCEPTS <http://json-ld.org/spec/latest/json-ld/#bib-RDF11-
> CONCEPTS>].
> Hence, a JSON-LD document is an RDF document and a JSON document and
> correspondingly represents an instance of an extended RDF data model,
> namely
> generalized RDF datasets [link]. The extension to the RDF data model
> is:
> 
>   * In JSON-LD properties
>     <http://json-ld.org/spec/latest/json-ld/#dfn-property> can be IRIs
>     <http://json-ld.org/spec/latest/json-ld/#dfn-iri> or blank nodes
>     <http://json-ld.org/spec/latest/json-ld/#dfn-blank-node> whereas in
>     properties (predicates) in RDF datasets have to be IRIs
>     <http://json-ld.org/spec/latest/json-ld/#dfn-iri>.
> 
> Summarized, these differences mean that JSON-LD is capable of
> serializing any
> RDF graph or dataset and most, but not all, JSON-LD documents can be
> directly
> interpreted as RDF datasets. It is possible to work around this
> restriction,
> when interpreting JSON-LD as RDF, by transforming blank nodes
> <http://json-ld.org/spec/latest/json-ld/#dfn-blank-node> used as
> properties
> <http://json-ld.org/spec/latest/json-ld/#dfn-property> to IRIs
> <http://json-ld.org/spec/latest/json-ld/#dfn-iri>, minting new "Skolem
> IRIs"
> as per Replacing Blank Nodes with IRIs
> <http://www.w3.org/TR/rdf11-concepts/#section-skolemization> of
> [RDF11-CONCEPTS <http://json-ld.org/spec/latest/json-ld/#bib-RDF11-
> CONCEPTS>].
> The normative algorithms for interpreting JSON-LD as RDF and
> serializing RDF
> as JSON-LD are specified in the JSON-LD Processing Algorithms and API
> specification [JSON-LD-API
> <http://json-ld.org/spec/latest/json-ld/#bib-JSON-LD-API>].

Fixed in https://github.com/json-ld/json-ld.org/commit/9855519a1cd78f45b721635857c28fdc865d353a

Live at http://json-ld.org.local/spec/latest/json-ld/#relationship-to-rdf



--
Markus Lanthaler
@markuslanthaler

Received on Wednesday, 10 July 2013 15:15:11 UTC