Re: RDFa + JSON-LD

Ivan,

Thank you. In addition to the major parsers and online test suites (e.g. http://linter.structured-data.org , https://search.google.com/structured-data/testing-tool), there are also JavaScript libraries. I noticed that one, Green Turtle, includes tests for combinations of syntaxes or "semantic hybridization" scenarios.

It so happens that Green Turtle's author, R. Alexander Mi?owski, is a proponent of "semantic hybridization" (http://www.xmlprague.cz/sessions2015/#semhybrid). "JSON-LD and RDFa are being promoted for use on the Web to augment and annotate information. Yet, each format has its optimal use for encoding particular kinds of information." A publication by R. Alexander Mi?owski "describes a hybrid approach where JSON-LD and RDFa can be used together to provide optimal encoding while retaining connections to document locations." The interested reader can refer to the conference proceedings (http://archive.xmlprague.cz/2015/files/xmlprague-2015-proceedings.pdf) for the publication.

Are there reasons that independent graphs make a sense in terms of design or implementation?

What are the best courses of action for proponents of merging graphs or "semantic hybridization"?

Best regards,
Adam

From: Ivan Herman<mailto:ivan@w3.org>
Sent: ?Friday?, ?January? ?20?, ?2017 ?10?:?55? ?AM
To: Adam Sobieski<mailto:adamsobieski@hotmail.com>
Cc: public-rdfa@w3.org<mailto:public-rdfa@w3.org>, public-rdf-comments@w3.org<mailto:public-rdf-comments@w3.org>

Adam,

afaik, there is no such specification. Put it another way, the RDFa and the embedded JSON-LD contents (or embedded Turtle content, which is also possible) are considered as separate, and independent RDF graphs. Particular tools MAY merge them and treat them as one, but there is no specification for it as far as I know.

Which also means that your example below would become very much tool specific.

Cheers

Ivan

On 20 Jan 2017, at 01:03, Adam Sobieski <adamsobieski@hotmail.com<mailto:adamsobieski@hotmail.com>> wrote:

RDFa Community Group,
RDF Working Group,

Does anybody know whether or where RDFa + JSON-LD scenarios are specified?

See: RDFa + JSON-LD Examples at https://www.w3.org/community/argumentation/schemas/ .


<html>
  <head>
    <script type="application/ld+json">
[{"@id": "2", "http://schema.org/supports": { "@id": "1" }},
 {"@id": "3", "http://schema.org/supports": { "@id": "1" }},
 {"@id": "4", "http://schema.org/supports": { "@id": "1" }}]
   </script>
  </head>
  <body vocab="http://schema.org/">
    <span about="1" typeof="Statement" property="text">Statement 1.</span>
    <span about="2" typeof="Statement" property="text">Statement 2.</span>
    <span about="3" typeof="Statement" property="text">Statement 3.</span>
    <span about="4" typeof="Statement" property="text">Statement 4.</span>
  </body>
</html>



Thank you,
Adam Sobieski


----
Ivan Herman, W3C
Digital Publishing Technical Lead
Home: http://www.w3.org/People/Ivan/
mobile: +31-641044153
ORCID ID: http://orcid.org/0000-0003-0782-2704

Received on Saturday, 21 January 2017 01:14:57 UTC