updates for page management
This commit is contained in:
parent
7808d72eec
commit
9ca30d634a
8 changed files with 114 additions and 58 deletions
|
@ -27,7 +27,8 @@ display:Home
|
|||
a display:Page ;
|
||||
display:title "Home" ;
|
||||
display:urlMapping "/" ;
|
||||
display:hasDataGetter display:homeDataGetter .
|
||||
display:hasDataGetter display:homeDataGetter;
|
||||
display:cannotDeletePage "true" .
|
||||
|
||||
########## Data Getter ############
|
||||
|
||||
|
@ -40,7 +41,8 @@ display:pageListPage
|
|||
display:title "Pages" ;
|
||||
display:urlMapping "/pageList" ;
|
||||
display:requiresBodyTemplate "pageList.ftl" ;
|
||||
display:hasDataGetter display:pageListData .
|
||||
display:hasDataGetter display:pageListData;
|
||||
display:cannotDeletePage "true" .
|
||||
|
||||
display:pageListData
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter>;
|
||||
|
@ -50,13 +52,14 @@ display:pageListData
|
|||
display:query """
|
||||
PREFIX display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
SELECT ?listedPageUri ?listedPageTitle ?listedPageUrlMapping ?listedPageTemplate ?listedPageMenuItem
|
||||
SELECT ?listedPageUri ?listedPageTitle ?listedPageUrlMapping ?listedPageTemplate ?listedPageMenuItem ?listedPageCannotDeletePage
|
||||
WHERE {
|
||||
?listedPageUri a display:Page .
|
||||
OPTIONAL{ ?listedPageUri display:urlMapping ?listedPageUrlMapping. }
|
||||
OPTIONAL{ ?listedPageUri display:title ?listedPageTitle. }
|
||||
OPTIONAL {?listedPageUri display:requiresBodyTemplate ?listedPageTemplate .}
|
||||
OPTIONAL {?listedPageMenuItem display:toPage ?listedPageUri .}
|
||||
OPTIONAL {?listedPageUri display:cannotDeletePage ?listedPageCannotDeletePage .}
|
||||
} """ .
|
||||
###Page Management and Data Getters
|
||||
#Data getter type labels
|
||||
|
|
|
@ -115,7 +115,10 @@ owl:versionInfo
|
|||
a owl:DatatypeProperty.
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#htmlValue>
|
||||
a owl:DatatypeProperty.
|
||||
a owl:DatatypeProperty.
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#cannotDeletePage>
|
||||
a owl:DatatypeProperty.
|
||||
|
||||
######### Object Properties#########
|
||||
###Basic
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue