Structured data for knowsAbout shows up as a URL


#1

Hi, using the OpenLink Structured Data Sniffer (OSDS) Chrome extension. I’ve added some structured data to a web page using json-ld, schema.org type “Person”. One of the attributes is “knowsAbout” which can be text. The page is: www.ciachef.edu/anthony-bourdain/
My code has
“knowsAbout”: “culinary arts”,
But in the OSDS, it shows it as a URL:
[schema:knowsAbout](http://schema.org/knowsAbout) https://www.ciachef.edu/anthony-bourdain/culinary%20arts

Any reason why it thinks it should be a URL? It doesn’t do this in the Google Structured Data Tester.

Thanks!


#2

@jannette: I see what you mean, we shall have this checked by development …


#3

The jsonld.js libs expands

 "knowsAbout": "culinary arts", 

to

"http://schema.org/knowsAbout": [
     {
       "@id": "https://json-ld.org/playground/culinary arts"
     }
   ],

and to TTL

_:b0 <http://schema.org/knowsAbout> <https://json-ld.org/playground/culinary arts> .

You could check it => Test JSON-LD playground
Therefore the issue may be in the jsonld.js lib => https://github.com/digitalbazaar/jsonld.js

You must update JSON-LD code to something like:

"knowsAbout": [ {"@value":"culinary arts"}],

for properly work.