Re: representing deserialized RDF - N3, JSON-LD, RDFa, XML/RDF

> That looks lossy from an RDF perspective.

It's not; the difference between URIs and literals is that the latter start with a quote.

> How would you differentiate the following two triples?

Assuming @prefix ex: http://ex.org/#.

> ex:s ex:p <http://foo/bar>.

{ subject: 'http://ex.org/#s', predicate: 'http://ex.org/#p', object: 'http://foo/bar' }

> ex:s ex:p "http://foo/bar".

{ subject: 'http://ex.org/#s', predicate: 'http://ex.org/#p', object: '"http://foo/bar"' }

Note how the literal gets additional quotes [1].

Best,

Ruben

[1] https://github.com/RubenVerborgh/N3.js#triple-representation

Received on Wednesday, 11 December 2013 11:57:32 UTC