3 ms·
There could be semantic conflict: "spouse": "http://dbpedia.org/resource/Cynthia_Lennon" Entity "spouse": "Cynthia Lennon" String value "spouse": "ht
by singularity2001 4y ago
There could be semantic conflict:
"spouse": "http://dbpedia.org/resource/Cynthia_Lennon"
Entity
"spouse": "Cynthia Lennon"
String value
"spouse": "http://my_url.com/Cynthia_Lennon.mpg"
Url
Also please use Json5 to allow comments, trailing commas and get rid of superfluous '"'
- seabass-labrax 4y agoThe first line of the example on the JSON-LD website is: "@context": "https://json-ld.org/contexts/person.jsonld", This is a 'context map', which is what links the short name "spouse" for the JSON key to a particular class defined in a RDF (Resource Description Framework) ontology. Here, that's <https://schema.org/spouse https://schema.org/spouse>. These ontologies are what make it unambiguous to the parser that the content is a IRI/URL rather than a literal string. Alternatively, one can write JSON-LD without a context map by using the full IRI of the class as the key: "https://schema.org/spouse": "https://json-ld.org/contexts/person.jsonld",