Not logged in : Login

About: VirtTipsAndTricksDigestAuthAJAX     Goto   Sponge   NotDistinct   Permalink

An Entity of Type : atom:Entry, within Data Space : ods.openlinksw.com associated with source document(s)

AttributesValues
type
Date Created
Date Modified
label
  • VirtTipsAndTricksDigestAuthAJAX
maker
Title
  • VirtTipsAndTricksDigestAuthAJAX
isDescribedUsing
has creator
attachment
content
  • %META:TOPICPARENT{name="VirtTipsAndTricksGuide"}% ---+Using Digest Authentication to Insert Triples ---++What Insert triples using Digest Authentication against the Virtuoso /sparql-auth endpoint. ---++Why To simplify data management by using HTTP digest authentication. ---++How Here is a sample example showcasing how to insert triples in Virtuoso Quad store using Digest Authentication in a simple HTML 5 form with embedded AJAX: ---+++Example This example demonstrates how Virtuoso user can insert triples into the Virtuoso Quad Store using Digest authentication against the Virtuoso "/sparql-auth" endpoint. The implementation is done on the base of simple html form using HTML 5 and AJAX: ... ... Steps: 1 To be able to perform updates to the Quad Store, a Virtuoso user account should have specific settings done: 1 Go to http://host:port/conductor %BR%%BR% href="%ATTACHURLPATH%/dauth1.png" target="_blank">%BR%%BR% 1 Enter admin credentials 1 Go to "System Admin" -> "Users" %BR%%BR%%BR%%BR% 1 Click "Create New Account". Optionally, you can apply the settings to existing user too. 1 In the presented form: * enter "Account name", for ex. demo * enter "Password", * change "User type" to "SQL/ODBC and WebDAV", * for "DAV Home Path" hatch the "create" check-box, * change "Quata" to 5, * Select from "Account Roles" the role "SPARQL_UPDATE" and move to "Selected" list %BR%%BR%%BR%%BR% 1 Click "Save" 1 The new user "demo" should be created and displayed in the users list: %BR%%BR%%BR%%BR% 1 Now when we have an user that can update the Quad Store data, we will demonstrate how this user will insert a triple. Place the following demo.html file at your server, so for ex. it to be accessible from http://host:port/mydemo: %BR%%BR% href="%ATTACHURLPATH%/dauth5.png" target="_blank">%BR%%BR% 1 The presented form offers 4 fields -- one for graph URI, respectively one for subject, object and predicate values. Each of these fields has predefined values that can be changed to other preferable. Enter for the created user from above its credentials and click "Insert". 1 On a successful insert, a message as below will be presented: %BR%%BR%%BR%%BR% 1 In case some of the fields graphuri, subject, object or predicate are invalid, an error handler message will be presented: %BR%%BR%%BR%%BR% 1 In case the user has provided wrong credentials or has no rights to update the Quad Store, a message as per bellow will be presented: %BR%%BR%%BR%%BR% ---++Related * [[VirtTipsAndTricksGuide][Virtuoso Tips and Tricks Collection]] * [[VOSSparqlProtocol][Virtuoso SPARQL Query Service]] * [[http://docs.openlinksw.com/virtuoso/rdfsparql.html][Virtuoso Documentation]]
id
  • dbbab55ddff48b6cd4d474be5bfa249d
link
has container
http://rdfs.org/si...ices#has_services
atom:title
  • VirtTipsAndTricksDigestAuthAJAX
links to
atom:source
atom:author
atom:published
  • 2017-06-13T05:48:57Z
atom:updated
  • 2017-06-13T05:48:57Z
topic
is made of
is container of of
is link of
is http://rdfs.org/si...vices#services_of of
is creator of of
is atom:entry of
is atom:contains of
Faceted Search & Find service v1.17_git132 as of May 12 2023


Alternative Linked Data Documents: iSPARQL | ODE     Content Formats:   [cxml] [csv]     RDF   [text] [turtle] [ld+json] [rdf+json] [rdf+xml]     ODATA   [atom+xml] [odata+json]     Microdata   [microdata+json] [html]    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 08.03.3332 as of Sep 11 2024, on Linux (x86_64-generic-linux-glibc25), Single-Server Edition (15 GB total memory, 1 GB memory in use)
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2024 OpenLink Software