> On 16 Aug 2018, at 14:07, Mikael Pesonen <[email protected]> wrote:
>
>
> I'm exporting JSON-LD from Fuseki into web page, but Google's validation
> (https://search.google.com/structured-data/testing-tool) doesn't accept it.
> Google's validation says
>
> name is not a known valid target type for the name property
"@context" : { "name": "http://schema.org/name” } works, as does “@context”:
“http://schema.org/“.
Google’s structured data support has always been idiosyncratic, unfortunately.
It much better that it used to be, though.
It’s worth reporting to them, and perhaps asking on stack overflow? (IIRC they
monitor stack overflow for issues)
Regarding fuseki I think you’ll have to put something in to transform the
json-ld, unfortunately. I’ve found I have to control json-ld serialisation
fairly carefully in practice, since tools are not always fully compliant
json-ld processors.
In principle framing [1] ought to do the trick, but last time I tried it wasn’t
fully working (although it may well be time to revisit that).
Damian
[1] <https://json-ld.org/spec/latest/json-ld-framing/>
--
Damian Steer
Data Research Software Engineer
University of Bristol
https://www.bris.ac.uk/contact/person/getDetails?personKey=W1K8jX7rokwl8OKZUeQMmPO1FXAvt0