Merging with issue-vivo-101-sparqlupdate. Using develop licenser files that were in conflict. VIVO-255 VIVO-101

This commit is contained in:
Brian Caruso 2013-08-28 11:37:50 -04:00
commit 4c42128993
41 changed files with 1606 additions and 414 deletions

View file

@ -0,0 +1,159 @@
# $This file is distributed under the terms of the license in /doc/license.txt$
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix action: <java:edu.cornell.mannlib.vitro.webapp.auth.permissions.SimplePermission#> .
# These are the reqired action objects from the SimplePermission.java.
action:AccessSpecialDataModels
a display:RequiredAction ;
rdfs:label "ACCESS_SPECIAL_DATA_MODELS" .
action:DoBackEndEditing
a display:RequiredAction ;
rdfs:label "DO_BACK_END_EDITING" .
action:DoFrontEndEditing
a display:RequiredAction ;
rdfs:label "DO_FRONT_END_EDITING" .
action:EditOntology
a display:RequiredAction ;
rdfs:label "EDIT_ONTOLOGY" .
action:EditOwnAccount
a display:RequiredAction ;
rdfs:label "EDIT_OWN_ACCOUNT" .
action:EditSiteInformation
a display:RequiredAction ;
rdfs:label "EDIT_SITE_INFORMATION" .
action:LoginDuringMaintenance
a display:RequiredAction ;
rdfs:label "LOGIN_DURING_MAINTENANCE" .
action:ManageMenus
a display:RequiredAction ;
rdfs:label "MANAGE_MENUS" .
action:ManageOwnProxies
a display:RequiredAction ;
rdfs:label "MANAGE_OWN_PROXIES" .
action:ManagePortals
a display:RequiredAction ;
rdfs:label "MANAGE_PORTALS" .
action:ManageProxies
a display:RequiredAction ;
rdfs:label "MANAGE_PROXIES" .
action:ManageSearchIndex
a display:RequiredAction ;
rdfs:label "MANAGE_SEARCH_INDEX" .
action:ManageTabs
a display:RequiredAction ;
rdfs:label "MANAGE_TABS" .
action:ManageUserAccounts
a display:RequiredAction ;
rdfs:label "MANAGE_USER_ACCOUNTS" .
action:QueryFullModel
a display:RequiredAction ;
rdfs:label "QUERY_FULL_MODEL" .
action:QueryUserAccountsModel
a display:RequiredAction ;
rdfs:label "QUERY_USER_ACCOUNTS_MODEL" .
action:RebuildVClassGroupCache
a display:RequiredAction ;
rdfs:label "REBUILD_VCLASS_GROUP_CACHE" .
action:RefreshVisualizationCache
a display:RequiredAction ;
rdfs:label "REFRESH_VISUALIZATION_CACHE" .
action:SeeIndividualEditingPanel
a display:RequiredAction ;
rdfs:label "SEE_INDVIDUAL_EDITING_PANEL" .
action:SeeRevisionInfo
a display:RequiredAction ;
rdfs:label "SEE_REVISION_INFO" .
action:SeeSiteAdminPage
a display:RequiredAction ;
rdfs:label "SEE_SITE_ADMIN_PAGE" .
action:SeeStartupStatus
a display:RequiredAction ;
rdfs:label "SEE_STARTUP_STATUS" .
action:SeeVerbosePropertyInformation
a display:RequiredAction ;
rdfs:label "SEE_VERBOSE_PROPERTY_INFORMATION" .
action:UseAdvancedDataToolsPages
a display:RequiredAction ;
rdfs:label "USE_ADVANCED_DATA_TOOLS_PAGES" .
action:UseSparqlQueryPage
a display:RequiredAction ;
rdfs:label "USE_SPARQL_QUERY_PAGE" .
action:UseBasicAjaxControllers
a display:RequiredAction ;
rdfs:label "USE_BASIC_AJAX_CONTROLLERS" .
action:UseMiscellaneousAdminPages
a display:RequiredAction ;
rdfs:label "USE_MISCELLANEOUS_ADMIN_PAGES" .
action:UseMiscellaneousCuratorPages
a display:RequiredAction ;
rdfs:label "USE_MISCELLANEOUS_CURATOR_PAGES" .
action:UseMiscellaneousEditorPages
a display:RequiredAction ;
rdfs:label "USE_MISCELLANEOUS_EDITOR_PAGES" .
action:UseMiscellaneousPages
a display:RequiredAction ;
rdfs:label "USE_MISCELLANEOUS_PAGES" .

View file

@ -0,0 +1,23 @@
# $This file is distributed under the terms of the license in /doc/license.txt$
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
### page for SPARQL UPDATE ###
display:SparqlUpdateMenuItem
a display:NavigationElement ;
display:linkText "SPARQL Update";
display:toPage display:SparqlUpdatePage .
display:sparqlUpdateDataGetter
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlUpdate> .
display:SparqlUpdatePage
a display:Page ;
display:title "SPARQL Update" ;
display:urlMapping "/sparql" ;
display:hasDataGetter display:sparqlUpdateDataGetter ;
display:requiredAction <java:edu.cornell.mannlib.vitro.webapp.auth.permissions.SimplePermission#UseAdvancedDataToolsPages> .

View file

@ -52,6 +52,7 @@ LIMIT 20
<div>
<h3>Format for SELECT query results:</h3>
<input id='RS_XML_BUTTON' type='radio' name='resultFormat' value='RS_XML'> <label for='RS_XML_BUTTON'>RS_XML</label>
<input id='RS_TEXT_BUTTON' type='radio' name='resultFormat' value='RS_TEXT' checked='checked'> <label for='RS_TEXT_BUTTON'>RS_TEXT</label>
<input id='RS_CSV_BUTTON' type='radio' name='resultFormat' value='vitro:csv'> <label for='RS_CSV_BUTTON'>CSV</label>
@ -66,23 +67,11 @@ LIMIT 20
<input id='RR_N3_BUTTON' type='radio' name='rdfResultFormat' value='N3'> <label for='RR_N3_BUTTON'>N3</label>
<input id='RR_NTRIPLE_BUTTON' type='radio' name='rdfResultFormat' value='N-TRIPLE'> <label for='RR_NTRIPLE_BUTTON'>N-Triples</label>
<input id='RR_TURTLE_BUTTON' type='radio' name='rdfResultFormat' value='TTL'> <label for='RR_TURTLE_BUTTON'>Turtle</label>
<input id='RR_JSON_LD_BUTTON' type='radio' name='rdfResultFormat' value='JSON-LD'> <label for='RR_JSON_LD_BUTTON'>JSON-LD</label>
</div>
<input class="submit" type="submit" value="Run Query" />
</form>
<%--
<h4>Notes</h4>
<p>CONSTRUCT and DESCRIBE queries always return RDF XML</p>
<p>The parameter 'resultFormat' must not be null or zero length</p>
<p>The parameter 'resultFormat' must be one of the following: <ul>
<li>RS_XML</li>
<li>RS_TEXT</li>
<li>RS_RDF/N3</li>
<li>RS_JSON</li>
<li>RS_RDF</li>
</ul>
</p>
--%>
</div><!-- content -->
</body></html>

View file

@ -0,0 +1,12 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<h3>SPARQL Update Test</h3>
<p>This is an expermental SPARQL update service.</p>
<form action="${urls.base}/sparqlUpdateTest" method="post">
<p>
<textarea name="update" rows="20" cols="80" ></textarea>
<input type="submit" />
</p>
</form>