Assigns a URI to a the resource in a form, if no @resource or @about is present on the form. This method will prompt the user to confirm a namespace and fileName if the event is not a submit event or if the namespace for the resource cannot be determined. When the user confirms the namespace and fileName, the form is automatically submitted.


calli.saveResourceAs( event, [fileName, [create]] )

Parameter Description
  • HTML form submit or
  • HTML click event
fileName (optional) Suggested local part of newly crated resource
create (optional) URI of the class of resource to create


<form method="POST" action="" enctype="application/rdf+xml" typeof="foaf:Person"
    onsubmit="return calli.saveResourceAs(event,calli.slugify($('#label').val()))">