allegrograph - agwebview
TRANSCRIPT
AllegroGraph WebView
AGWebView is the browser interface for managing triple stores.
AllegroGraph WebView
The AllegroGraph Web View (AGWebView) is a user interface for exploring, querying, and managing AllegroGraph triple stores.
AGWebView is included in your AllegroGraph installation.
AGWebView Features
Using AGWebView, you can:• Browse available catalogs and repositories • Create (also delete) a repository • Load RDF data into a repository, or into a specific graph of a repository• Configure triple indices for a repository (SPOGI, etc.)• Set up free-text indices for a repository • Issue SPARQL and Prolog queries, which can be saved and reused • Walk from query results to related triples and resources • View and add namespaces
(continued on next slide)
AGWebView Features
Using AGWebView, you can also:• Manage AllegroGraph users and "roles," and their access to repositories • Capture a query as a web URL for embedding in applications • Apply Prolog rules and functors to repositories • Open transaction sessions for commit and rollback. • Activate RDFS++ reasoning on a repository • Federate local and remote repositories into a single point of access • Open telnet connections to AllegroGraph processes for debugging • View graphs of "construct" and "describe" SPARQL query results • Plot geospatial query results in a Google Maps display.
Starting AGWebView
To start AGWebView, direct a Web browser to the AllegroGraph server port:
http://localhost:10035
Logging In
Log in (the first time) using your AllegroGraph superuser account, from agraph.cfg:
SuperUser test:xyzzy
Opening Page
The opening page shows non-root catalogs, plus the repositories of the root catalog.
Choose one to drill deeper.
Repository Page
This page lets you manage a repository.
Access to queries is in the header.
New Query Page
Run a SPARQL or Prolog query here.
Click on a URI in the result table to "walk" the RDF graph...
Walking the Graph
Clicking on the #person55 URI displays all triples of that resource.
Click on an object value to see all triples with that value...
Walking the Graph
This table lists all persons born in 1957.
AGWebView lets you explore the triple store simply by clicking on URIs and values.
Create a Repository
To create a repository (in the Root Catalog as shown here) simply type in its name.
Load Data
Options on the AGWebView page expand into pop-up forms to let you load different types of files.
Triple Indices
Add or remove triple indices to speed up loading and searching. Each index contains all triples, sorted in a specific way.
SPOGI index is sorted by:
S = subject URI
P = predicate URI
O = object URI or literal value
G = graph URI
I = triple ID number
Triple Indices
Since the SPOGI index is sorted by subject URI, all triples with the same subject are found in a block in that index.
The POSGI index has all triples with the same predicate in a block.
The OSPGI index is sorted by object value, which is good for retrieving ranges of object values.
The "G" indexes segregate graphs from one another.
The "I" index is for deleting triples by ID number.
Triple Indices
AllegroGraph provides seven standard indices, but you can request a custom index sorted in any order.
Free-Text Indices
AllegroGraph supports free-text searches through multiple text indices, each tightly configured to support efficient search.
Free-Text Indices
Free-Text Indices
Default Namespaces
AGWebView lets you define and manage a set of namespaces, to make query and browse operations easier. These namespaces are present by default:
Select Namespaces
Custom Namespaces
You can create your own namespaces for use with specific users and repositories:
Users Management
Initial superuser: Created by the installation script.
• create and manage other users• start sessions• evaluate arbitrary code• read/write access to all repositories in all catalogs
In Franz documentation, the initial superuser is usually identified as "text" with password "xyzzy".
New User
The "manage" link in the banner opens the user management page.
Permissions
• Superuser: Can do everything to everything.• Start Sessions: Supports transactions.• Evaluate arbitrary code: Prolog queries, and Lisp by way
of Prolog. • Control replication: Set up replication of data between
triple stores.
Access
• Read, Write or Read/Write access• Access to specific repositories, or to "all"• Use / for the root catalog.
Roles
• Roles let you profile a group of users to have the same permissions and access.
• More important, a role lets you revoke privileges from a group of users all at the same time.
Anonymous Login
• Create a user "anonymous" with no password.• Grant appropriate permissions and access.• All visitors are logged in automatically.
Self-Enrollment
• When "anonymous" access is enabled, you can also enable "self-enrollment."
• Anonymous users can create their own accounts. • These accounts have the same privileges and access as
"anonymous" has. • The self-enrolled accounts have their own namespaces
and saved queries.
Sessions (Federation)
• The "session specification" control lets you federate repositories using a special syntax.
Google Maps
• AGWebView can display query results in Google Maps format when:
– You have provided a GM key.– The query results contain geospatial data.
Graph Display
• AGWebView can display a graph of RDF resources when you use a SPARQL "describe" or "construct" query.
• Look for "Display as a map?" above the table of query results.