Versions Compared

Key

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

...

Status
colourBlue
titlePOST
 add, modify, or modify delete namespaces

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.
Warning
  • 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)
TODO: What are the caveats?

 

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 { 
 
}

...