Skip to content
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

Rdf lists should only have one RDF.rest node #174

Merged
merged 1 commit into from
Aug 1, 2013
Merged

Conversation

jcoyne
Copy link
Member

@jcoyne jcoyne commented Aug 1, 2013

No description provided.

graph.insert([subject, RDF.first, RDF.nil]) unless first
graph.insert([subject, RDF.rest, RDF.nil])
graph.insert([subject, RDF.rest, RDF.nil]) unless last
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be OK to add a line or two of documentation to this method? It's not obvious to me what all the first and last business is doing or why.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's so simple: http://www.w3.org/TR/rdf-schema/#ch_list ;) It's for building descriptions of lists and list-like structures.

mjgiarlo added a commit that referenced this pull request Aug 1, 2013
Rdf lists should only have one RDF.rest node
@mjgiarlo mjgiarlo merged commit 4c4c815 into master Aug 1, 2013
@mjgiarlo mjgiarlo deleted the only_one_rest branch August 1, 2013 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants