Versions Compared

Key

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

...

Info

There are some restrictions on what can be modified.  For example, several foundation namespaces cannot be deleted:

  • fcrepo (http://fedora.info/definitions/v4/repository#)
  • mix (http://www.jcp.org/jcr/mix/1.0)
  • mode (http://www.modeshape.org/1.0)
  • nt (http://www.jcp.org/jcr/nt/1.0)
  • sv (http://www.jcp.org/jcr/sv/1.0)
  • xml (http://www.w3.org/XML/1998/namespace)
  • xmlns (http://www.w3.org/2000/xmlns/)
  • xs (http://www.w3.org/2001/XMLSchema)
  • xsi (http://www.w3.org/2001/XMLSchema-instance)

Additionally, deleting namespaces such as fedora (http://fedora.info/definitions/v4/rest-api#) and premis (http://www.loc.gov/premis/rdf/v1#) can render your repository unusable.

 

Example:

Code Block
curl -X POST -H "Content-Type: application/sparql-update" -d "@namespaces.rdf" "http://localhost:8080/rest/fcr:namespaces"
 
Body:
# Register the namespace 'info:some-namespace' with the prefix 'some'
INSERT { 
    <info:some-namespace> <http://purl.org/vocab/vann/preferredNamespacePrefix> "some" 
} WHERE { 
 
}

...