-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blank node shorthand #116
Comments
JSON-LD specifies blank node naming, and t has not caused implementation issues. |
Well, had I chosen to implement it, I would have had it:-) AFAIK, I cannot influence how RDFLib generates blank nodes, for example. Ivan
Ivan Herman, W3C |
If the order of rows in a table is significant and needs to be retained (even after load to a graph store), would it be possible to use the container membership properties |
Formally, this is of course possible. I do feel a little bit uncomfortable, though. There is very little semantics attached to the Ivan
Ivan Herman, W3C |
One possible gain would be the ability to round-trip CSV -> RDF -> CSV in a generic way and still retain the order of rows (should that be relevant). That way an RDF storage backend could potentially be used where one could HTTP PUT a CSV table and be able the HTTP GET 'the same' table without the row order being potentially changed. Also I would say that stating |
Indeed, that is true. Although this could be achieved e.g. by adding, for each row, an extra triplet on the row number. This was actually part of earlier drafts, if I remember it well.
True, and I forgot about that. But using
:-)
It is not a good practice to add explicit semantics, through some sort of a microsyntax, to a predicate URI; this is clearly the case of Also, repeating myself: I know these are not strong arguments based on some mathematical reasoning, but we cannot completely ignore the (best) practice out there either. Cheers Ivan
Ivan Herman, W3C |
One might also argue that abstractly a CSV file is a table container that contains a sequence of rows, so However I totally agree on your point about putting semantics into the URIs for In general I'm personally not a fan of indicating the order of things by adding literal values. Using an RDF Collection is another option, especially as both Turtle and JSON-LD have sufficient syntactic sugar to make them palatable. Here's a small example based on Example 6 from the draft spec using Turtle:
JSON-LD:
|
I am happy we agree on that! :-)
Agreed. If we decide that maintaining the order of rows is important, then collections may make very much sense. RDF/XML users may not like it, but we may want to ignore that, I do not know. There is an efficiently price, of course. Syntactic sugar is one thing, but the fact is that for all each entry we get 2-3 more triples. For smaller CSV files we do not care. Do we care if the CSV file is GB level (or more?) Ivan
Ivan Herman, W3C |
csv2rdf document now re-written to reflect decisions of the f2f meeting in Feb 2015, London. |
The document contains that following (hitherto unnumbered) issue:
However, I think this can be only a MAY or possibly (but reluctantly) a SHOULD. Indeed, if an implementation relies on an external RDF package, leaving the serialization done by that package, then there may be no control over the identifier used for blank nodes. Ie, this requirement cannot be reinforces in such a setup.
The text was updated successfully, but these errors were encountered: