-
-
Save Industrial/34dc62660de2ec878879 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# With a HTTP REST API for RDF I would want to be able to: | |
# - Create one or many triples. | |
# - Update one or many triples. | |
# - Delete one or many triples. | |
# | |
# 1) Does this mean my URL Scheme ends up looking like: | |
# | |
# GET /api/rdf Get everything (Don't support this?) | |
# POST /api/rdf Create a subject. | |
# GET /api/rdf/:subject Get a subject. | |
# PUT /api/rdf/:subject Update a subject. | |
# DELETE /api/rdf/:subject Delete a subject. | |
# | |
# 2) Given the URL scheme, does that mean a PUT of a subject includes | |
# sending it the complete new state of all triples with this subject? | |
# | |
# 3) Where do people start out? GET /api/rdf ? | |
# | |
# Other questions: | |
# - What do I do with HEAD requests? What do I return from them and does | |
# the context matter (i.e. graph or subject or?) |
HEAD requests: ignore them. They're just the head of GET.
PUT to update a graph is weird; usually PUT replaces entities whole. It should probably be a POST.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Potential problem: blank nodes as subjects