Maven migration (first draft)

This commit is contained in:
Graham Triggs 2015-11-19 23:47:12 +00:00
parent 5e0329908c
commit e1ff94ccaf
2866 changed files with 1112 additions and 616 deletions

View file

@ -0,0 +1,14 @@
# $This file is distributed under the terms of the license in /doc/license.txt$
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
#Data getter type labels
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
<java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.ClassGroupPageData> rdfs:label "Class Group Page" .
<java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.BrowseDataGetter> rdfs:label "Browse Page" .
<java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.IndividualsForClassesDataGetter> rdfs:label "Class Group Page - Selected Classes" .
<java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter> rdfs:label "Sparql Query Results" .

View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rdf:RDF [
<!ENTITY display "http://vitro.mannlib.cornell.edu/ontologies/display/1.1#">
<!ENTITY owl "http://www.w3.org/2002/07/owl#">
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#">
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#">
<!ENTITY vitro "http://vitro.mannlib.cornell.edu/ns/vitro/0.7#">
]>
<rdf:RDF xml:base="http://vitro.mannlib.cornell.edu/ontologies/display/1.1/"
xmlns:display="&display;"
xmlns:owl="&owl;"
xmlns:rdf="&rdf;"
xmlns:rdfs="&rdfs;"
xmlns:vitro="&vitro;">
<rdf:Description rdf:about="http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasElement">
<display:listViewConfigFile rdf:datatype="http://www.w3.org/2001/XMLSchema#string">listViewConfig-hasElement.xml</display:listViewConfigFile>
</rdf:Description>
</rdf:RDF>

View file

@ -0,0 +1,16 @@
# $This file is distributed under the terms of the license in /doc/license.txt$
# This file is for the portions of the pageList that should not be editable, i.e.#
# that it cannot be deleted and that it requires certain permissions #
@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#> .
### This file defines the page list menu for vitro. ###
display:pageListPage
display:requiresAction <java:edu.cornell.mannlib.vitro.webapp.auth.permissions.SimplePermission#ManageMenus> ;
display:cannotDeletePage "true" .

View file

@ -0,0 +1,164 @@
# $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:ManageProxies
a display:RequiredAction ;
rdfs:label "MANAGE_PROXIES" .
action:ManageSearchIndex
a display:RequiredAction ;
rdfs:label "MANAGE_SEARCH_INDEX" .
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: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:UseIndividualControlPanel
a display:RequiredAction ;
rdfs:label "USE_INDIVIDUAL_CONTROL_PANEL" .
action:UseMiscellaneousPages
a display:RequiredAction ;
rdfs:label "USE_MISCELLANEOUS_PAGES" .
##Page specific permissions
action:PageViewableAdmin
a display:RequiredAction ;
rdfs:label "PAGE_VIEWABLE_ADMIN" .
action:PageViewableCurator
a display:RequiredAction ;
rdfs:label "PAGE_VIEWABLE_CURATOR" .
action:PageViewableEditor
a display:RequiredAction ;
rdfs:label "PAGE_VIEWABLE_EDITOR" .
action:PageViewableLoggedIn
a display:RequiredAction ;
rdfs:label "PAGE_VIEWABLE_LOGGEDIN" .
action:PageViewablePublic
a display:RequiredAction ;
rdfs:label "PAGE_VIEWABLE_PUBLIC" .

View file

@ -0,0 +1,83 @@
@prefix : <http://vitro.mannlib.cornell.edu/ns/vitro/ApplicationSetup#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
#
# configure the SearchIndexer
#
# Individuals with these types will be excluded from the search index
:searchExcluder_typeExcluder
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.exclusions.ExcludeBasedOnType> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.exclusions.SearchIndexExcluder> ;
:excludes
"http://www.w3.org/2002/07/owl#AnnotationProperty" ,
"http://www.w3.org/2002/07/owl#DatatypeProperty" ,
"http://www.w3.org/2002/07/owl#ObjectProperty" .
# Individuals with types from these namespaces will be excluded from the search index.
:searchExcluder_namespaceExcluder
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.exclusions.ExcludeBasedOnNamespace> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.exclusions.SearchIndexExcluder> ;
:excludes
"http://vitro.mannlib.cornell.edu/ns/vitro/0.7#" ,
"http://vitro.mannlib.cornell.edu/ns/vitro/public#" ,
"http://vitro.mannlib.cornell.edu/ns/bnode#" ,
"http://www.w3.org/2002/07/owl#" .
# Individuals with URIs in these namespaces will be excluded from the search index.
:searchExcluder_typeNamespaceExcluder
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.exclusions.ExcludeBasedOnTypeNamespace> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.exclusions.SearchIndexExcluder> ;
:excludes
"http://vitro.mannlib.cornell.edu/ns/vitro/role#public" .
:searchExcluder_syncingTypeExcluder
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.exclusions.SyncingExcludeBasedOnType> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.exclusions.SearchIndexExcluder> .
# ------------------------------------
:uriFinder_forDataProperties
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.IndexingUriFinder> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.AdditionalURIsForDataProperties> .
:uriFinder_forObjectProperties
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.IndexingUriFinder> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.AdditionalURIsForObjectProperties> .
:uriFinder_forTypeStatements
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.IndexingUriFinder> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.AdditionalURIsForTypeStatements> .
:uriFinder_forClassGroupChange
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.IndexingUriFinder> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.URIsForClassGroupChange> .
# ------------------------------------
:documentModifier_AllNames
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.SelectQueryDocumentModifier> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ;
rdfs:label "All labels are added to name fields." ;
:hasTargetField "nameRaw" ;
:hasSelectQuery """
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?label
WHERE {
?uri rdfs:label ?label .
}
""" .
:documentModifier_NameFieldBooster
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.FieldBooster> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ;
:hasTargetField "nameRaw" ;
:hasTargetField "nameLowercase" ;
:hasTargetField "nameUnstemmed" ;
:hasTargetField "nameStemmed" ;
:hasBoost "1.2"^^xsd:float .
:documentModifier_thumbnailImageUrl
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.ThumbnailImageURL> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> .

View file

@ -0,0 +1,25 @@
# $This file is distributed under the terms of the license in /doc/license.txt$
# All instances of a class can be excluded from the search index by adding a
# vitroDisplay:excludeClass property between vitroDisplay:SearchIndex and the
# URI of the class that you would like to exclude.
# .n3 or .rdf files can be created in this directory to configure the search
# exclusions. Each file must be a valid file in the format specified by its
# extension. Each file will be loaded individually and must be a complete
# stand alone example of its format. Each file must contain all the necessary
# prefixes, namespaces and preambles required by the format specified by its
# extension.
# If you would like to add classes to the exclusions, add a file to this
# directory ending in .n3 with N3 statements similar to this example.
#
# @prefix owl: <http://www.w3.org/2002/07/owl#> .
# @prefix vitroDisplay: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> .
# @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
# @prefix example: <http://example/ns/> .
#
# vitroDisplay:SearchIndex
# rdf:type owl:Thing ;
# vitroDisplay:excludeClass example:classToExclude ;

View file

@ -0,0 +1,137 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rdf:RDF [
<!ENTITY display "http://vitro.mannlib.cornell.edu/ontologies/display/1.1#">
<!ENTITY owl "http://www.w3.org/2002/07/owl#">
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#">
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#">
<!ENTITY vitro "http://vitro.mannlib.cornell.edu/ns/vitro/0.7#">
]>
<rdf:RDF xml:base="http://vitro.mannlib.cornell.edu/ontologies/display/1.1/"
xmlns:display="&display;"
xmlns:owl="&owl;"
xmlns:rdf="&rdf;"
xmlns:rdfs="&rdfs;"
xmlns:vitro="&vitro;">
<!-- Ontology Information -->
<owl:Ontology rdf:about=""
rdfs:label="Vitro display ontology"
owl:versionInfo="1.1"/>
<!-- Classes -->
<owl:Class rdf:about="#Menu"/>
<owl:Class rdf:about="#parameter"/>
<owl:Class rdf:about="&display;ExternallyLinkedNamespace"
rdfs:label="Externally Linked Namespace"/>
<owl:Class rdf:about="&display;NavigationElement"
rdfs:label="Navigation Element">
<rdfs:comment>This represents a menu item or other general navigation item.</rdfs:comment>
</owl:Class>
<owl:Class rdf:about="&display;Page"
rdfs:comment="Class of pages."
rdfs:label="Page"/>
<owl:Class rdf:about="&rdfs;subPropertyOf"/>
<owl:Class rdf:about="&owl;NamedIndividual"/>
<owl:Class rdf:about="&owl;DatatypeProperty"/>
<owl:Class rdf:about="&owl;ObjectProperty"/>
<owl:Class rdf:about="&owl;AnnotationProperty"/>
<owl:Class rdf:about="&owl;Class"/>
<owl:Class rdf:about="&display;MainMenu">
<vitro:customDisplayViewAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
individual-menu.ftl
</vitro:customDisplayViewAnnot>
</owl:Class>
<owl:Class rdf:about="&owl;Ontology"/>
<!-- types of pages -->
<owl:Class rdf:about="&display;HomePage"/>
<owl:Class rdf:about="&display;ClassGroupPage"/>
<owl:Class rdf:about="&display;IndividualsForClassesPage"/>
<owl:Class rdf:about="&display;InternalClassesPage"/>
<!-- For permissions -->
<owl:Class rdf:about="&display;RequiredAction"/>
<!-- Annotation Properties -->
<owl:AnnotationProperty rdf:about="&rdfs;comment"/>
<owl:AnnotationProperty rdf:about="&rdfs;label"/>
<owl:AnnotationProperty rdf:about="&owl;versionInfo"/>
<!-- Datatype Properties -->
<owl:DatatypeProperty rdf:about="&owl;DatatypeProperty"/>
<owl:DatatypeProperty rdf:about="&owl;topDataProperty"/>
<!--Originall generated - check if need these-->
<owl:DatatypeProperty rdf:about="&rdfs;comment"/>
<owl:DatatypeProperty rdf:about="&rdfs;label"/>
<owl:DatatypeProperty rdf:about="&owl;versionInfo"/>
<!--end originally generated -->
<owl:DatatypeProperty rdf:about="&display;linkText"
rdfs:comment="Text to display to a link.">
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="&display;menuPosition"
rdfs:label="menu position">
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="&display;parameterName"
rdfs:label="parameter name"/>
<owl:DatatypeProperty rdf:about="&display;parameterValue"
rdfs:label="parameter value"/>
<owl:DatatypeProperty rdf:about="&display;requiresBodyTemplate"
rdfs:label="Body Template">
<rdfs:comment>Indicates that a page requires a body template.</rdfs:comment>
<rdfs:domain rdf:resource="&display;Page"/>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="&display;title"
rdfs:comment="Value for HTML title element."
rdfs:label="title">
<rdfs:domain rdf:resource="&display;Page"/>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="&display;urlMapping">
<rdfs:comment>Values from HttpRequest.getPathInfo() will be mapped to values from urlMapping.</rdfs:comment>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="&display;listViewConfigFile"/>
<owl:DatatypeProperty rdf:about="&display;restrictResultsByInternalClass"/>
<!-- Object Properties -->
<owl:ObjectProperty rdf:about="&owl;topObjectProperty"/>
<owl:ObjectProperty rdf:about="&rdfs;domain"/>
<owl:ObjectProperty rdf:about="&rdfs;range"/>
<owl:ObjectProperty rdf:about="&display;hasElement">
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="#hasParameter">
<rdfs:domain rdf:resource="&display;Page"/>
<rdfs:range rdf:resource="#parameter"/>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="excludeClass">
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="includeClass">
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="&display;toPage">
<rdfs:domain rdf:resource="&display;NavigationElement"/>
<rdfs:range rdf:resource="&display;Page"/>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="&display;forClassGroup"/>
<owl:ObjectProperty rdf:about="&display;excludeClass"/>
<owl:ObjectProperty rdf:about="&display;restrictResultsByClass"/>
<owl:ObjectProperty rdf:about="&display;getIndividualsForClass"/>
<owl:ObjectProperty rdf:about="&display;hasDataGetter"/>
<owl:ObjectProperty rdf:about="&display;requiresAction">
</owl:ObjectProperty>
<!--Custom properties-->
</rdf:RDF>

View file

@ -0,0 +1,38 @@
# $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#> .
### This file defines the default menu for vitro. ###
#### Default Menu ####
display:DefaultMenu
a display:MainMenu ;
display:hasElement display:HomeMenuItem .
#### Menu Items for Default Menu ####
display:HomeMenuItem
a display:NavigationElement ;
display:menuPosition 1;
display:linkText "Home";
display:toPage display:Home .
########## Pages ############
display:Home
a display:HomePage ;
a display:Page ;
display:title "Home" ;
display:urlMapping "/" ;
display:hasDataGetter display:homeDataGetter;
display:cannotDeletePage "true" .
########## Data Getter ############
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#homeDataGetter>
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.BrowseDataGetter> .

View file

@ -0,0 +1,36 @@
# $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#> .
### This file defines the page list menu for vitro. These statements can be edited through the interface.###
display:pageListPage
a display:Page ;
display:title "Pages" ;
display:urlMapping "/pageList" ;
display:requiresBodyTemplate "pageList.ftl" ;
display:hasDataGetter display:pageListData.
display:pageListData
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter>;
display:saveToVar "pages" ;
display:queryModel <vitro:requestDisplayModel> ;
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 ?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 .}
} ORDER BY ?listedPageTitle """ .
###Page Management and Data Getters

View file

@ -0,0 +1,25 @@
# $This file is distributed under the terms of the license in /doc/license.txt$
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> .
@base <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> .
display:ProfilePageType rdf:type owl:Class ;
owl:equivalentClass [ rdf:type owl:Class ;
owl:oneOf ( display:standard
display:quickView
)
] .
display:quickView rdf:type display:ProfilePageType ,
owl:NamedIndividual .
display:standard rdf:type display:ProfilePageType ,
owl:NamedIndividual .
display:hasDefaultProfilePageType rdf:type owl:ObjectProperty .
display:hasDefaultProfilePageType rdfs:range display:ProfilePageType .