AllegroGraph - AGWebView
-
Upload
craig-norvell -
Category
Technology
-
view
618 -
download
0
Transcript of AllegroGraph - AGWebView
![Page 1: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/1.jpg)
AllegroGraph WebView
AGWebView is the browser interface for managing triple stores.
![Page 2: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/2.jpg)
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.
![Page 3: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/3.jpg)
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)
![Page 4: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/4.jpg)
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.
![Page 5: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/5.jpg)
Starting AGWebView
To start AGWebView, direct a Web browser to the AllegroGraph server port:
http://localhost:10035
![Page 6: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/6.jpg)
Logging In
Log in (the first time) using your AllegroGraph superuser account, from agraph.cfg:
SuperUser test:xyzzy
![Page 7: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/7.jpg)
Opening Page
The opening page shows non-root catalogs, plus the repositories of the root catalog.
Choose one to drill deeper.
![Page 8: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/8.jpg)
Repository Page
This page lets you manage a repository.
Access to queries is in the header.
![Page 9: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/9.jpg)
New Query Page
Run a SPARQL or Prolog query here.
Click on a URI in the result table to "walk" the RDF graph...
![Page 10: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/10.jpg)
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...
![Page 11: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/11.jpg)
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.
![Page 12: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/12.jpg)
Create a Repository
To create a repository (in the Root Catalog as shown here) simply type in its name.
![Page 13: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/13.jpg)
Load Data
Options on the AGWebView page expand into pop-up forms to let you load different types of files.
![Page 14: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/14.jpg)
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
![Page 15: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/15.jpg)
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.
![Page 16: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/16.jpg)
Triple Indices
AllegroGraph provides seven standard indices, but you can request a custom index sorted in any order.
![Page 17: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/17.jpg)
Free-Text Indices
AllegroGraph supports free-text searches through multiple text indices, each tightly configured to support efficient search.
![Page 18: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/18.jpg)
Free-Text Indices
![Page 19: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/19.jpg)
Free-Text Indices
![Page 20: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/20.jpg)
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:
![Page 21: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/21.jpg)
Select Namespaces
![Page 22: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/22.jpg)
Custom Namespaces
You can create your own namespaces for use with specific users and repositories:
![Page 23: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/23.jpg)
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".
![Page 24: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/24.jpg)
New User
The "manage" link in the banner opens the user management page.
![Page 25: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/25.jpg)
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.
![Page 26: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/26.jpg)
Access
• Read, Write or Read/Write access• Access to specific repositories, or to "all"• Use / for the root catalog.
![Page 27: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/27.jpg)
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.
![Page 28: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/28.jpg)
Anonymous Login
• Create a user "anonymous" with no password.• Grant appropriate permissions and access.• All visitors are logged in automatically.
![Page 29: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/29.jpg)
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.
![Page 30: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/30.jpg)
Sessions (Federation)
• The "session specification" control lets you federate repositories using a special syntax.
![Page 31: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/31.jpg)
Google Maps
• AGWebView can display query results in Google Maps format when:
– You have provided a GM key.– The query results contain geospatial data.
![Page 32: AllegroGraph - AGWebView](https://reader034.fdocuments.net/reader034/viewer/2022042715/5593b14d1a28ab88248b45a7/html5/thumbnails/32.jpg)
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.