pho-utensil 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -0
- data/Rakefile +47 -0
- data/bin/utensil +7 -0
- data/lib/utensil-app.rb +159 -0
- data/public/css/blueprint/ie.css +28 -0
- data/public/css/blueprint/plugins/fancy-type/screen.css +71 -0
- data/public/css/blueprint/print.css +30 -0
- data/public/css/blueprint/screen.css +252 -0
- data/public/css/blueprint/src/forms.css +49 -0
- data/public/css/blueprint/src/grid.css +269 -0
- data/public/css/blueprint/src/grid.png +0 -0
- data/public/css/blueprint/src/ie.css +61 -0
- data/public/css/blueprint/src/print.css +85 -0
- data/public/css/blueprint/src/reset.css +38 -0
- data/public/css/blueprint/src/typography.css +105 -0
- data/public/css/impromptu.css +318 -0
- data/public/css/spared.css +99 -0
- data/public/icons/script_delete.png +0 -0
- data/public/icons/script_edit.png +0 -0
- data/public/icons/script_error.png +0 -0
- data/public/icons/script_go.png +0 -0
- data/public/img/purzen_Cartoon_spatula.png +0 -0
- data/public/js/spared-config.js +126 -0
- data/public/js/spared-examples.js +13 -0
- data/public/js/spared-prefixes.js +85 -0
- data/public/js/spared-templates.js +9 -0
- data/public/js/spared.js +190 -0
- data/public/lib/jquery-1.2.6.js +3549 -0
- data/public/lib/jquery-impromptu.1.5.js +133 -0
- data/public/lib/jquery.ui.all.js +9639 -0
- data/public/rq/list-properties-of-type.rq +9 -0
- data/public/rq/list-properties.rq +7 -0
- data/public/rq/list-types.rq +7 -0
- data/views/admin.erb +37 -0
- data/views/configure.erb +4 -0
- data/views/enrich.erb +35 -0
- data/views/explore.erb +1 -0
- data/views/index.erb +33 -0
- data/views/layout.erb +53 -0
- data/views/spared.erb +66 -0
- data/views/update.erb +28 -0
- data/views/upload.erb +35 -0
- metadata +117 -0
data/views/admin.erb
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
<div class="span-14">
|
2
|
+
<div class="column span-14">
|
3
|
+
<h2>Job Control</h2>
|
4
|
+
|
5
|
+
<% if params[:job_url] %>
|
6
|
+
<div class="span-12">
|
7
|
+
<span class="column success span-12">Job Successfully Submitted. <a href="<%= params[:job_url] %>">View</a>.</span>
|
8
|
+
</div>
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
<% if params[:failed] %>
|
12
|
+
<div class="span-12">
|
13
|
+
<span class="column error span-12"><%= Failed to submit job %></span>
|
14
|
+
</div>
|
15
|
+
<% end %>
|
16
|
+
|
17
|
+
<form class="column span-14" action="/jobs" method="post">
|
18
|
+
<input type="radio" name="job" value="ResetDataJob" />Reset<br />
|
19
|
+
<input type="radio" name="job" value="ReindexJob" />Reindex<br />
|
20
|
+
<input type="radio" name="job" value="SnapshotJob" />Snapshot<br />
|
21
|
+
<br />
|
22
|
+
<input type="submit" value="Submit Job"/>
|
23
|
+
</form>
|
24
|
+
</div>
|
25
|
+
<br />
|
26
|
+
<hr class="space"/>
|
27
|
+
<div class="column span-14">
|
28
|
+
<h2>Backups</h2>
|
29
|
+
<p>The following snapshot is available for download:</p>
|
30
|
+
|
31
|
+
<p><a href="<%= @snapshot.url %>"><%= @snapshot.date %></a> ( <%= @snapshot.size %><%= @snapshot.units %> )</a>.</p>
|
32
|
+
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
<div class="column span-8 last box">
|
36
|
+
<p>Job Control Functions and Store Backup</p>
|
37
|
+
</div>
|
data/views/configure.erb
ADDED
data/views/enrich.erb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
<div class="span-16">
|
2
|
+
|
3
|
+
<h2>Enrich</h2>
|
4
|
+
|
5
|
+
<% if params[:success] == true %>
|
6
|
+
<span class="column success span-14">Data Successfully Stored</span>
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
<% if params[:success] == false %>
|
10
|
+
<span class="column error span-14"><%= params[:response].content %></span>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<% if params[:error] %>
|
14
|
+
<span class="column error span-14"><%= params[:error] %></span>
|
15
|
+
<% end %>
|
16
|
+
|
17
|
+
<form action="/enrich/infer" method="post">
|
18
|
+
|
19
|
+
<input type="text" name="endpoint" class="span-16" value="<%= settings.store.sparql_client.endpoint %>">
|
20
|
+
|
21
|
+
<textarea class="span-16" name="query" rows="30" cols="60"></textarea>
|
22
|
+
</textarea>
|
23
|
+
|
24
|
+
<input type="submit" value="Enrich"/>
|
25
|
+
</form>
|
26
|
+
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div id="nav" class="column span-8 last">
|
30
|
+
<div class="box">
|
31
|
+
<p>Enter a SPARQL CONSTRUCT or DESCRIBE query into the form.</p>
|
32
|
+
<p>The query will be executed against the desired SPARQL endpoint</p>
|
33
|
+
<p>The resulting RDF will automatically be stored.</p>
|
34
|
+
</div>
|
35
|
+
</div>
|
data/views/explore.erb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
TODO
|
data/views/index.erb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
<div class="span-17 box">
|
2
|
+
|
3
|
+
<h2>Recent Metabox Updates</h2>
|
4
|
+
|
5
|
+
<ul>
|
6
|
+
<li><a href="http://www.example.org">http://www.example.org</a></li>
|
7
|
+
<li><a href="http://www.example.org">http://www.example.org</a></li>
|
8
|
+
<li><a href="http://www.example.org">http://www.example.org</a></li>
|
9
|
+
<li><a href="http://www.example.org">http://www.example.org</a></li>
|
10
|
+
<li><a href="http://www.example.org">http://www.example.org</a></li>
|
11
|
+
</ul>
|
12
|
+
|
13
|
+
<h2>Recent Contentbox Updates</h2>
|
14
|
+
|
15
|
+
<ul>
|
16
|
+
<li><a href="http://www.example.org">http://www.example.org</a></li>
|
17
|
+
<li><a href="http://www.example.org">http://www.example.org</a></li>
|
18
|
+
<li><a href="http://www.example.org">http://www.example.org</a></li>
|
19
|
+
<li><a href="http://www.example.org">http://www.example.org</a></li>
|
20
|
+
<li><a href="http://www.example.org">http://www.example.org</a></li>
|
21
|
+
</ul>
|
22
|
+
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<div class="span-4 box last">
|
26
|
+
<strong>Updated:</strong><span>Unknown</span><br />
|
27
|
+
<br />
|
28
|
+
<strong>Readable:</strong> <span><% if @status.readable? %>True<% else %>False<% end %></span><br />
|
29
|
+
<strong>Writeable:</strong> <span><% if @status.writeable? %>True<% else %>False<% end %></span><br />
|
30
|
+
<br />
|
31
|
+
<strong><%= @jobs.length %></strong> <span>scheduled jobs</span>
|
32
|
+
</div>
|
33
|
+
|
data/views/layout.erb
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<link rel="stylesheet" href="/css/blueprint/screen.css" type="text/css" media="screen, projection">
|
4
|
+
<link rel="stylesheet" href="/css/blueprint/print.css" type="text/css" media="print">
|
5
|
+
<link rel="stylesheet" href="/css/utensil.css" type="text/css" media="screen, projection">
|
6
|
+
<!--[if IE]><link rel="stylesheet" href="/css/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
|
7
|
+
|
8
|
+
<link rel="stylesheet" media="all" type="text/css" href="css/impromptu.css"/>
|
9
|
+
<link rel="stylesheet" media="all" type="text/css" href="css/ui.tabs.css"/>
|
10
|
+
<link rel="stylesheet" media="all" type="text/css" href="css/spared.css"/>
|
11
|
+
|
12
|
+
<script type="text/javascript" src="lib/jquery-1.2.6.js"></script>
|
13
|
+
<script type="text/javascript" src="lib/jquery.ui.all.js"></script>
|
14
|
+
<script type="text/javascript" src="lib/jquery-impromptu.1.5.js"></script>
|
15
|
+
<script type="text/javascript" src="js/spared-config.js"></script>
|
16
|
+
<script type="text/javascript" src="js/spared.js"></script>
|
17
|
+
|
18
|
+
<title>Pho Utensil for Store: <%= settings.storename %></title>
|
19
|
+
</head>
|
20
|
+
|
21
|
+
<body>
|
22
|
+
<div class="container">
|
23
|
+
|
24
|
+
<div id="header" class="span-24">
|
25
|
+
<div class="span-12 prepend-top"><h1 id="pagetitle"><img src="/img/purzen_Cartoon_spatula.png" style="float: left"/>
|
26
|
+
<a href="/">Pho Utensil</a><sup class="quiet small alt">0.1</sup></h1>
|
27
|
+
</div>
|
28
|
+
<div class="span-12 large last" style="text-align:right">
|
29
|
+
User: <%= settings.user %> |
|
30
|
+
Store: <%= settings.storename %>
|
31
|
+
<br />
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
<hr class="space">
|
35
|
+
|
36
|
+
<div class="span-24 large">
|
37
|
+
<a href="/query">Query</a> | <a href="/explore">Explore</a> | <a href="/upload">Load</a> |
|
38
|
+
<a href="/update">Update</a> |
|
39
|
+
<a href="/enrich">Enrich</a> | <a href="/configure">Configure</a> | <a href="/admin">Admin</a>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
<hr>
|
43
|
+
<%= yield %>
|
44
|
+
<hr>
|
45
|
+
|
46
|
+
<div class="span-24 quiet">
|
47
|
+
<code>pho-utensil</code> was written by <a href="http://www.ldodds.com">Leigh Dodds</a>
|
48
|
+
</div>
|
49
|
+
|
50
|
+
</div>
|
51
|
+
|
52
|
+
</body>
|
53
|
+
</html>
|
data/views/spared.erb
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
<div class="column span-16">
|
2
|
+
<h2>SPARQL Query Editor</h2>
|
3
|
+
<form class="spared" action="/sparql">
|
4
|
+
|
5
|
+
<div class="buttons">
|
6
|
+
<button class="positive" id="run-query">
|
7
|
+
<img src="icons/script_go.png" />Run</button>
|
8
|
+
<button id="load-query">
|
9
|
+
<img src="icons/script_edit.png" />Load</button>
|
10
|
+
<button class="negative" id="clear-query">
|
11
|
+
<img src="icons/script_delete.png" />Clear</button>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<div style="clear: left;"></div>
|
15
|
+
|
16
|
+
<textarea class="code span-16" id="query" name="query" rows="10" cols="60">
|
17
|
+
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
18
|
+
SELECT ?label WHERE {
|
19
|
+
?s rdfs:label ?label.
|
20
|
+
}
|
21
|
+
</textarea>
|
22
|
+
|
23
|
+
<div class="options">
|
24
|
+
<input type="checkbox" id="inline" checked="checked" value="true">Show results in-line</input>
|
25
|
+
</div>
|
26
|
+
|
27
|
+
</form>
|
28
|
+
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="nav" class="column span-8 last">
|
32
|
+
<div class="box">
|
33
|
+
<h3>Prefixes</h3>
|
34
|
+
<div class="contents">
|
35
|
+
<span class="small">Click to add prefix to query</span>
|
36
|
+
<div class="list-of-items" id="prefixes">
|
37
|
+
Empty
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
<div class="box">
|
43
|
+
<h3>Templates</h3>
|
44
|
+
<div class="contents">
|
45
|
+
<span class="small">Click to create new query from template</span>
|
46
|
+
<div class="list-of-items" id="templates">
|
47
|
+
Empty
|
48
|
+
</div>
|
49
|
+
</div>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
<div class="box">
|
53
|
+
<h3>Examples</h3>
|
54
|
+
<div class="contents">
|
55
|
+
<span class="small">Click to load example query</span>
|
56
|
+
<div class="list-of-items" id="examples">
|
57
|
+
Empty
|
58
|
+
</div>
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<div id="results" class="column span-24 last">
|
65
|
+
<h2>Results</h2>
|
66
|
+
</div>
|
data/views/update.erb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
<% if params[:success] %>
|
2
|
+
<div class="span-14">
|
3
|
+
<span class="column success span-14">Changeset Successfully Applied</span>
|
4
|
+
</div>
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
<div class="span-14">
|
8
|
+
|
9
|
+
<form action="" method="get">
|
10
|
+
<input class="span-14" name="url" type="text" value="<%= @url %>"/>
|
11
|
+
<input type="submit" value="Fetch"/>
|
12
|
+
</form>
|
13
|
+
|
14
|
+
<form class="span-14" action="/update" method="post">
|
15
|
+
|
16
|
+
<textarea class="span-14" name="data" rows="30" cols="60"><%= @description %></textarea>
|
17
|
+
|
18
|
+
<input type="hidden" name="url" value="<%= @url %>"/>
|
19
|
+
<input type="hidden" name="old_data" value="<%= h @description %>"/>
|
20
|
+
|
21
|
+
<input type="submit" value="Update"/>
|
22
|
+
</form>
|
23
|
+
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<div class="span-8 box last">
|
27
|
+
<p>Fetch the description of a resource, edit it, and apply changes back to the store</p>
|
28
|
+
</div>
|
data/views/upload.erb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
|
2
|
+
<% if params[:success] == true %>
|
3
|
+
<div class="span-24">
|
4
|
+
<span class="column success span-16">Data Successfully Stored</span>
|
5
|
+
</div>
|
6
|
+
<% end %>
|
7
|
+
|
8
|
+
<% if params[:success] == false %>
|
9
|
+
<div class="span-24">
|
10
|
+
<span class="column error span-16"><%= params[:response].content %></span>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<% if params[:error] %>
|
15
|
+
<div class="span-24">
|
16
|
+
<span class="column error span-16"><%= params[:error] %></span>
|
17
|
+
</div>
|
18
|
+
<% end %>
|
19
|
+
|
20
|
+
<div class="span-24 last">
|
21
|
+
|
22
|
+
<form action="/upload" method="post">
|
23
|
+
|
24
|
+
<textarea class="span-24" name="data" rows="30" cols="60"></textarea>
|
25
|
+
|
26
|
+
<select name="format">
|
27
|
+
<option selected="selected" value="application/rdf+xml">RDF/XML</option>
|
28
|
+
<option value="text/plain">N-Triples</option>
|
29
|
+
<option value="text/turtle">Turtle</option>
|
30
|
+
</select>
|
31
|
+
|
32
|
+
<input type="submit" value="Upload"/>
|
33
|
+
</form>
|
34
|
+
|
35
|
+
</div>
|
metadata
ADDED
@@ -0,0 +1,117 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pho-utensil
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
version: 0.0.1
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Leigh Dodds
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2010-04-03 00:00:00 +01:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: pho
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
- 7
|
30
|
+
version: "0.7"
|
31
|
+
type: :runtime
|
32
|
+
version_requirements: *id001
|
33
|
+
description: Talis Platform Admin Client
|
34
|
+
email: leigh.dodds@talis.com
|
35
|
+
executables:
|
36
|
+
- utensil
|
37
|
+
extensions: []
|
38
|
+
|
39
|
+
extra_rdoc_files:
|
40
|
+
- README.rdoc
|
41
|
+
files:
|
42
|
+
- README.rdoc
|
43
|
+
- Rakefile
|
44
|
+
- bin/utensil
|
45
|
+
- lib/utensil-app.rb
|
46
|
+
- public/css/spared.css
|
47
|
+
- public/css/blueprint/src/typography.css
|
48
|
+
- public/css/blueprint/src/ie.css
|
49
|
+
- public/css/blueprint/src/grid.png
|
50
|
+
- public/css/blueprint/src/reset.css
|
51
|
+
- public/css/blueprint/src/print.css
|
52
|
+
- public/css/blueprint/src/grid.css
|
53
|
+
- public/css/blueprint/src/forms.css
|
54
|
+
- public/css/blueprint/ie.css
|
55
|
+
- public/css/blueprint/plugins/fancy-type/screen.css
|
56
|
+
- public/css/blueprint/print.css
|
57
|
+
- public/css/blueprint/screen.css
|
58
|
+
- public/css/impromptu.css
|
59
|
+
- public/rq/list-properties-of-type.rq
|
60
|
+
- public/rq/list-types.rq
|
61
|
+
- public/rq/list-properties.rq
|
62
|
+
- public/lib/jquery.ui.all.js
|
63
|
+
- public/lib/jquery-impromptu.1.5.js
|
64
|
+
- public/lib/jquery-1.2.6.js
|
65
|
+
- public/js/spared.js
|
66
|
+
- public/js/spared-prefixes.js
|
67
|
+
- public/js/spared-config.js
|
68
|
+
- public/js/spared-templates.js
|
69
|
+
- public/js/spared-examples.js
|
70
|
+
- public/img/purzen_Cartoon_spatula.png
|
71
|
+
- public/icons/script_delete.png
|
72
|
+
- public/icons/script_edit.png
|
73
|
+
- public/icons/script_go.png
|
74
|
+
- public/icons/script_error.png
|
75
|
+
- views/admin.erb
|
76
|
+
- views/update.erb
|
77
|
+
- views/configure.erb
|
78
|
+
- views/enrich.erb
|
79
|
+
- views/explore.erb
|
80
|
+
- views/spared.erb
|
81
|
+
- views/upload.erb
|
82
|
+
- views/index.erb
|
83
|
+
- views/layout.erb
|
84
|
+
has_rdoc: true
|
85
|
+
homepage: http://github.com/ldodds/pho-utensil
|
86
|
+
licenses: []
|
87
|
+
|
88
|
+
post_install_message:
|
89
|
+
rdoc_options: []
|
90
|
+
|
91
|
+
require_paths:
|
92
|
+
- lib
|
93
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
segments:
|
98
|
+
- 1
|
99
|
+
- 8
|
100
|
+
- 5
|
101
|
+
version: 1.8.5
|
102
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
segments:
|
107
|
+
- 0
|
108
|
+
version: "0"
|
109
|
+
requirements: []
|
110
|
+
|
111
|
+
rubyforge_project:
|
112
|
+
rubygems_version: 1.3.6
|
113
|
+
signing_key:
|
114
|
+
specification_version: 3
|
115
|
+
summary: Talis Platform Admin Client
|
116
|
+
test_files: []
|
117
|
+
|