Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
GET /rest/
  list the top-level objects in the repository

POST /rest/fcr:properties with an  application/sparql-update request body
 @prefix dc: <http://purl/somewhere/something/1.1>
 INSERT { <info:fedora:/objects/islandora:xyzasdf> <dc:title> "My title" } WHERE {}
GET /rest/objects/sufia:123456789
  list the properties of this node
 
GET /rest/some-other-object-living-at-jcr-root
  there's nothing special about /objects, it's just another part of the path to an object. List the object properties
 
POST /rest/objects/islandora:xyzasdf with an application/sparql-update request body
 @prefix dc: <http://purl/somewhere/something/1.1>
 INSERT { <info:fedora:/objects/islandora:xyzasdf> <dc:title> "My title" } WHERE {}
 create a new object at /objects/islandora:xyzasdf and run the SPARQL-Update query against the resulting triples
 
POST /rest/objects/islandora:xyzasdf with a turtle/n3/n-triples/etc request body
 <info:fedora:/objects/islandora:xyzasdf> <http://purl/somewhere/something/1.1/title> "My title"
 create a new object at /objects/islandora:xyzasdf with the provided triples
 
POST /rest/objects/islandora:xyzasdf?mixin=fedora:object
  create a new fedora object at /objects/islandora:xyzasdf
 
POST /rest/objects/islandora:xyzasdf/an/arbitrary/hierarchy/to/an/islandora:datastream?mixin=fedora:datastream
  create a new datastream at /objects/islandora:xyzasdf/an/arbitrary/hierarchy/to/an/islandora:datastream in the JCR tree. (Will this create all the intermediate nodes? do I need to do this manually?)
 
POST /rest/objects/islandora:xyzasdf (where /rest/objects/islandora:xyzasdf already exists) with an optional application/sparql-update or turtle/n3/n-triples/etc body
 @prefix dc: <http://purl/somewhere/something/1.1>
 INSERT { <> <dc:title> "My title" } WHERE {}
 add a child object (with a repository-minted name, creating /objects/islandora:xyzasdf/some-uuid-pattern) to islandora:xyzasdf and run the SPARQL-Query against the resulting object
 
POST /rest/objects/islandora:xyzasdf (where /rest/objects/islandora:xyzasdf already exists)
 -> Slug: 123 
 add a child object with the name 123 (creating /objects/islandora:xyzasdf/123) and run the SPARQL-Query against the resulting object


PUT /rest/objects/sufia:123456789 with an RDF request body
  @prefix dc: <http://purl/somewhere/something/1.1>
  <info:fedora/rest/objects/sufia:123456789> dc:title "xyz"
  
  replace all triples for sufia:123456789 with the triples in the request body (note that some triples are fcrepo-managed (e.g. the fedora-internal namespace) and cannot be modified in this way
 
PATCH /rest/objects/sufia:123456789 with an application/sparql-update request body
  @prefix dc: <http://purl/somewhere/something/1.1>
  INSERT { <info:fedora:/objects/islandora:xyzasdf> <dc:title> "My title" } WHERE {}
 
  "patch" the properties of the sufia:123456789 object by executing the given query
 
DELETE /rest/objects/sufia:123456789
  Delete the node at /objects/sufia:123456789

 

/rest/{path}/fcr:new
- POST create a new child of QueryParam "mixin" under {path}

Code Block
POST /rest/fcr:new
  create a new child object with an automatically generated unique identifier
 
POST /rest/objects/fcr:new
  create a new child object under /objects with an automatically generated unique identifier
 
POST /rest/objects/sufia:123456789?mixin=fedora:datastream
  create a new child datastream for /objects/sufia:123456789 with an automatically generated unique identifier

...



Binary Content

/rest/{path}/ fcr:content

...