From ffe163c59ce72d0d2d103968e886fd5782c5a056 Mon Sep 17 00:00:00 2001 From: j2blake Date: Thu, 8 Sep 2011 17:07:18 +0000 Subject: [PATCH] NIHVIVO-2811 Make the webapp directory more closely resemble the product base directory - move tlds, filegraph, ontologies, dwr.xml and web.xml into web/WEB-INF. Adjust the build script accordingly. --- .../WEB-INF/ontologies/app/application.owl | 134 ++++ .../loadedAtStartup/displayModelListViews.rdf | 23 + webapp/web/WEB-INF/ontologies/app/menu.n3 | 35 + .../ontologies/app/menuload/displayDisplay.n3 | 96 +++ .../ontologies/app/menuload/displayTBOX.n3 | 176 +++++ .../search/vitroSearchProhibited.n3 | 27 + .../WEB-INF/ontologies/system/vitro-0.7.owl | 155 ++++ .../WEB-INF/ontologies/system/vitroPublic.owl | 69 ++ webapp/web/WEB-INF/tlds/ListSparqlTag.tld | 51 ++ .../web/WEB-INF/tlds/StringProcessorTag.tld | 28 + webapp/web/WEB-INF/tlds/VitroUtils.tld | 40 + webapp/web/WEB-INF/tlds/c.tld | 563 +++++++++++++ webapp/web/WEB-INF/tlds/database.tld | 185 +++++ webapp/web/WEB-INF/tlds/fn.tld | 207 +++++ webapp/web/WEB-INF/tlds/form.tld | 66 ++ webapp/web/WEB-INF/tlds/sparqltag.tld | 279 +++++++ webapp/web/WEB-INF/tlds/taglibs-mailer.tld | 254 ++++++ webapp/web/WEB-INF/tlds/taglibs-random.tld | 88 +++ webapp/web/WEB-INF/tlds/taglibs-string.tld | 743 ++++++++++++++++++ webapp/web/WEB-INF/tlds/vitroForm.tld | 222 ++++++ 20 files changed, 3441 insertions(+) create mode 100644 webapp/web/WEB-INF/ontologies/app/application.owl create mode 100644 webapp/web/WEB-INF/ontologies/app/loadedAtStartup/displayModelListViews.rdf create mode 100644 webapp/web/WEB-INF/ontologies/app/menu.n3 create mode 100644 webapp/web/WEB-INF/ontologies/app/menuload/displayDisplay.n3 create mode 100644 webapp/web/WEB-INF/ontologies/app/menuload/displayTBOX.n3 create mode 100644 webapp/web/WEB-INF/ontologies/search/vitroSearchProhibited.n3 create mode 100644 webapp/web/WEB-INF/ontologies/system/vitro-0.7.owl create mode 100644 webapp/web/WEB-INF/ontologies/system/vitroPublic.owl create mode 100644 webapp/web/WEB-INF/tlds/ListSparqlTag.tld create mode 100644 webapp/web/WEB-INF/tlds/StringProcessorTag.tld create mode 100644 webapp/web/WEB-INF/tlds/VitroUtils.tld create mode 100644 webapp/web/WEB-INF/tlds/c.tld create mode 100644 webapp/web/WEB-INF/tlds/database.tld create mode 100644 webapp/web/WEB-INF/tlds/fn.tld create mode 100644 webapp/web/WEB-INF/tlds/form.tld create mode 100644 webapp/web/WEB-INF/tlds/sparqltag.tld create mode 100644 webapp/web/WEB-INF/tlds/taglibs-mailer.tld create mode 100644 webapp/web/WEB-INF/tlds/taglibs-random.tld create mode 100644 webapp/web/WEB-INF/tlds/taglibs-string.tld create mode 100644 webapp/web/WEB-INF/tlds/vitroForm.tld diff --git a/webapp/web/WEB-INF/ontologies/app/application.owl b/webapp/web/WEB-INF/ontologies/app/application.owl new file mode 100644 index 000000000..18f1d8b90 --- /dev/null +++ b/webapp/web/WEB-INF/ontologies/app/application.owl @@ -0,0 +1,134 @@ + + + + + + + + +]> + + + + + + + + + + + This represents a menu item or other general navigation item. + + + + + + + + + + + + + + individual-menu.ftl + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Indicates that a page requires a body template. + + + + + + + + + Values from HttpRequest.getPathInfo() will be mapped to values from urlMapping. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/webapp/web/WEB-INF/ontologies/app/loadedAtStartup/displayModelListViews.rdf b/webapp/web/WEB-INF/ontologies/app/loadedAtStartup/displayModelListViews.rdf new file mode 100644 index 000000000..4a17524f5 --- /dev/null +++ b/webapp/web/WEB-INF/ontologies/app/loadedAtStartup/displayModelListViews.rdf @@ -0,0 +1,23 @@ + + + + + + + +]> + + + + + + listViewConfig-hasElement.xml + + + \ No newline at end of file diff --git a/webapp/web/WEB-INF/ontologies/app/menu.n3 b/webapp/web/WEB-INF/ontologies/app/menu.n3 new file mode 100644 index 000000000..098fc8a74 --- /dev/null +++ b/webapp/web/WEB-INF/ontologies/app/menu.n3 @@ -0,0 +1,35 @@ +# $This file is distributed under the terms of the license in /doc/license.txt$ + +@prefix owl: . +@prefix display: . +@prefix rdf: . + +### 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 . + +########## Data Getter ############ + + + a . \ No newline at end of file diff --git a/webapp/web/WEB-INF/ontologies/app/menuload/displayDisplay.n3 b/webapp/web/WEB-INF/ontologies/app/menuload/displayDisplay.n3 new file mode 100644 index 000000000..bda8b4566 --- /dev/null +++ b/webapp/web/WEB-INF/ontologies/app/menuload/displayDisplay.n3 @@ -0,0 +1,96 @@ +@prefix rdfs: . +@prefix xsd: . +@prefix owl: . +@prefix rdf: . + + + + """# $This file is distributed under the terms of the license in /doc/license.txt$ + +@prefix owl: . +@prefix display: . +@prefix rdf: . +@prefix core: . +@prefix vivoweb: . + +### This file defines the default menu for vivo. ### + +#### Default Menu #### + +display:DefaultMenu + a display:MainMenu ; + display:hasElement display:EventsMenuItem ; + display:hasElement display:HomeMenuItem ; + display:hasElement display:OrganizationsMenuItem ; + display:hasElement display:PeopleMenuItem ; + display:hasElement display:ResearchMenuItem . + +#### Menu Items for Default Menu #### + +display:HomeMenuItem + a display:NavigationElement ; + display:menuPosition 1; + display:linkText \"Home\"; + display:toPage display:Home . + +display:PeopleMenuItem + a display:NavigationElement ; + display:menuPosition 2; + display:linkText \"People\"; + display:toPage display:People . + +display:OrganizationsMenuItem + a display:NavigationElement ; + display:menuPosition 3; + display:linkText \"Organizations\"; + display:toPage display:Organizations . + +display:ResearchMenuItem + a display:NavigationElement ; + display:menuPosition 4; + display:linkText \"Research\"; + display:toPage display:Research . + +display:EventsMenuItem + a display:NavigationElement ; + display:menuPosition 5; + display:linkText \"Events\"; + display:toPage display:Events . + +########## Pages ############ + +display:Home + a display:HomePage ; + a display:Page ; + display:title \"Home\" ; + display:urlMapping \"/\" . + +display:Events + a display:Page ; + a display:ClassGroupPage; + display:forClassGroup vivoweb:vitroClassGroupevents ; + display:title \"Events\" ; + display:urlMapping \"/events\" . + +display:Organizations + a display:Page ; + a display:ClassGroupPage; + display:forClassGroup vivoweb:vitroClassGrouporganizations ; + display:title \"Organizations\" ; + display:urlMapping \"/organizations\" . + +display:People + a display:Page ; + a display:ClassGroupPage; + display:forClassGroup vivoweb:vitroClassGrouppeople ; + display:requiresBodyTemplate \"menupage--classgroup-people.ftl\" ; + display:title \"People\" ; + display:urlMapping \"/people\" . + +display:Research + a display:Page ; + a display:ClassGroupPage; + display:forClassGroup vivoweb:vitroClassGrouppublications ; + display:title \"Research\" ; + display:urlMapping \"/research\" . +""" . diff --git a/webapp/web/WEB-INF/ontologies/app/menuload/displayTBOX.n3 b/webapp/web/WEB-INF/ontologies/app/menuload/displayTBOX.n3 new file mode 100644 index 000000000..14d647f80 --- /dev/null +++ b/webapp/web/WEB-INF/ontologies/app/menuload/displayTBOX.n3 @@ -0,0 +1,176 @@ +# $This file is distributed under the terms of the license in /doc/license.txt$ + +@prefix rdfs: . +@prefix xsd: . +@prefix owl: . +@prefix rdf: . + + +#########Classes######### +###Basic +owl:Class + a owl:Class . + +owl:Ontology + a owl:Class . + +owl:AnnotationProperty + a owl:Class . + +owl:DatatypeProperty + a owl:Class . + +owl:ObjectProperty + a owl:Class . + +###Display Model + + a owl:Class ; + + "individual-menu.ftl"^^xsd:string . + + + a owl:Class . + + + a owl:Class . + + + a owl:Class . + + + a owl:Class . + + + a owl:Class . + + + a owl:Class . + + + a owl:Class . + + + +########Data Properties######### + +###Basic + +rdfs:comment + a owl:DatatypeProperty . + +rdfs:label + a owl:DatatypeProperty . + +owl:versionInfo + a owl:DatatypeProperty . + +###Vitro model + + + a owl:DatatypeProperty . + + a owl:DatatypeProperty . + + + a owl:DatatypeProperty . + +###Display model + + + a owl:DatatypeProperty . + + a owl:DatatypeProperty . + + + a owl:DatatypeProperty . + + + a owl:DatatypeProperty . + + + a owl:DatatypeProperty ; + + "1"^^xsd:int . + + + a owl:DatatypeProperty . + + + a owl:DatatypeProperty . + + + a owl:DatatypeProperty . + + +######### Object Properties######### +###Basic +rdfs:range + a owl:ObjectProperty . +rdfs:domain + a owl:ObjectProperty . +owl:topObjectProperty + a owl:ObjectProperty . + +###Vitro properties without which individual templates throw errors as are required + + + a owl:ObjectProperty ; + rdfs:range ; + rdfs:subPropertyOf , owl:topObjectProperty . + + + a owl:ObjectProperty ; + rdfs:label "Primary Link"@en-US ; + rdfs:range ; + rdfs:subPropertyOf , owl:topObjectProperty ; + + "defaultLinkForm.jsp"^^xsd:string ; + + "true"^^xsd:boolean ; + + "true"^^xsd:boolean ; + + "false"^^xsd:boolean ; + + "true"^^xsd:boolean . + + + a owl:ObjectProperty ; + rdfs:label "Additional Link"@en-US ; + rdfs:range ; + rdfs:subPropertyOf , owl:topObjectProperty ; + + "defaultLinkForm.jsp"^^xsd:string ; + + "true"^^xsd:boolean ; + + "true"^^xsd:boolean ; + + "false"^^xsd:boolean ; + + "true"^^xsd:boolean . + +###Display model + + a owl:ObjectProperty . + + + a owl:ObjectProperty . + + + a owl:ObjectProperty . + + + a owl:ObjectProperty . + + + a owl:ObjectProperty . + + + a owl:ObjectProperty . + + + a owl:ObjectProperty . + + diff --git a/webapp/web/WEB-INF/ontologies/search/vitroSearchProhibited.n3 b/webapp/web/WEB-INF/ontologies/search/vitroSearchProhibited.n3 new file mode 100644 index 000000000..ba3ed6838 --- /dev/null +++ b/webapp/web/WEB-INF/ontologies/search/vitroSearchProhibited.n3 @@ -0,0 +1,27 @@ +# $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. + +# All .n3 or .rdf files in this directory will be used 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: . +# @prefix vitroDisplay: . +# @prefix rdf: . +# @prefix example: . +# +# vitroDisplay:SearchIndex +# rdf:type owl:Thing ; +# vitroDisplay:excludeClass example:classToExclude ; \ No newline at end of file diff --git a/webapp/web/WEB-INF/ontologies/system/vitro-0.7.owl b/webapp/web/WEB-INF/ontologies/system/vitro-0.7.owl new file mode 100644 index 000000000..67db4843e --- /dev/null +++ b/webapp/web/WEB-INF/ontologies/system/vitro-0.7.owl @@ -0,0 +1,155 @@ + + + + ]> + + + + + + + + + + Vitro internals + 0.7 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/webapp/web/WEB-INF/ontologies/system/vitroPublic.owl b/webapp/web/WEB-INF/ontologies/system/vitroPublic.owl new file mode 100644 index 000000000..d1f51520a --- /dev/null +++ b/webapp/web/WEB-INF/ontologies/system/vitroPublic.owl @@ -0,0 +1,69 @@ + + + +]> + + + + + + + Vitro public constructs + 0.1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/webapp/web/WEB-INF/tlds/ListSparqlTag.tld b/webapp/web/WEB-INF/tlds/ListSparqlTag.tld new file mode 100644 index 000000000..d9cdcf6e5 --- /dev/null +++ b/webapp/web/WEB-INF/tlds/ListSparqlTag.tld @@ -0,0 +1,51 @@ + + + + + List SPARQL JSP taglib + 1.0 + sparql + http://mannlib.cornell.edu/vitro/ListSparqlTag/0.1/ + + + SPARQL select tag. (Must be nested inside sparql:sparql) + SPARQL select tag + select + edu.cornell.mannlib.vitro.webapp.web.jsptags.ListSparqlTag + tagdependent + + + var + java.util.List + AT_BEGIN + + + + + model + true + true + com.hp.hpl.jena.rdf.model.Model + + + + + var + true + true + java.lang.String + + + true + + + + + + + + \ No newline at end of file diff --git a/webapp/web/WEB-INF/tlds/StringProcessorTag.tld b/webapp/web/WEB-INF/tlds/StringProcessorTag.tld new file mode 100644 index 000000000..6a6bff18b --- /dev/null +++ b/webapp/web/WEB-INF/tlds/StringProcessorTag.tld @@ -0,0 +1,28 @@ + + + + + 1.0 + http://vitro.mannlib.cornell.edu/vitro/tags/StringProcessorTag + + + + + process + edu.cornell.mannlib.vitro.webapp.web.jsptags.StringProcessorTag + String Processor + + Processes output using "StringProcessor" from request. + + + scriptless + + + \ No newline at end of file diff --git a/webapp/web/WEB-INF/tlds/VitroUtils.tld b/webapp/web/WEB-INF/tlds/VitroUtils.tld new file mode 100644 index 000000000..1cfd4a585 --- /dev/null +++ b/webapp/web/WEB-INF/tlds/VitroUtils.tld @@ -0,0 +1,40 @@ + + + + + + Vitro Utilities taglib + 1.0 + + Library of JSP utility tags for Vitro + + + + confirmAuthorization + Confirm that the user is authorized for the actions that this page requires. + + Confirm that the user is authorized to perform all of the RequestedActions that + this page requires. If any of the actions is not authorized, the user will be + redirected to the appropriate page. + + The actions must be found in the "requestedActions" attribute of the request. + The attribute may be a RequestedAction or an array of RequestedActions. + + If the user is not authorized because he is not logged in, he will be directed + to the login page, with the current request stored as a post-login destination. + + If the user is logged in but without sufficient authorization, he will be + directed to the home page, which will display an "insufficient authorization" + message. + + edu.cornell.mannlib.vitro.webapp.web.jsptags.ConfirmAuthorization + empty + + + \ No newline at end of file diff --git a/webapp/web/WEB-INF/tlds/c.tld b/webapp/web/WEB-INF/tlds/c.tld new file mode 100644 index 000000000..22698c97d --- /dev/null +++ b/webapp/web/WEB-INF/tlds/c.tld @@ -0,0 +1,563 @@ + + + + + JSTL 1.1 core library + JSTL core + 1.1 + c + http://java.sun.com/jsp/jstl/core + + + + Provides core validation features for JSTL tags. + + + org.apache.taglibs.standard.tlv.JstlCoreTLV + + + + + + Catches any Throwable that occurs in its body and optionally + exposes it. + + catch + org.apache.taglibs.standard.tag.common.core.CatchTag + JSP + + +Name of the exported scoped variable for the +exception thrown from a nested action. The type of the +scoped variable is the type of the exception thrown. + + var + false + false + + + + + + Simple conditional tag that establishes a context for + mutually exclusive conditional operations, marked by + <when> and <otherwise> + + choose + org.apache.taglibs.standard.tag.common.core.ChooseTag + JSP + + + + + Simple conditional tag, which evalutes its body if the + supplied condition is true and optionally exposes a Boolean + scripting variable representing the evaluation of this condition + + if + org.apache.taglibs.standard.tag.rt.core.IfTag + JSP + + +The test condition that determines whether or +not the body content should be processed. + + test + true + true + boolean + + + +Name of the exported scoped variable for the +resulting value of the test condition. The type +of the scoped variable is Boolean. + + var + false + false + + + +Scope for var. + + scope + false + false + + + + + + Retrieves an absolute or relative URL and exposes its contents + to either the page, a String in 'var', or a Reader in 'varReader'. + + import + org.apache.taglibs.standard.tag.rt.core.ImportTag + org.apache.taglibs.standard.tei.ImportTEI + JSP + + +The URL of the resource to import. + + url + true + true + + + +Name of the exported scoped variable for the +resource's content. The type of the scoped +variable is String. + + var + false + false + + + +Scope for var. + + scope + false + false + + + +Name of the exported scoped variable for the +resource's content. The type of the scoped +variable is Reader. + + varReader + false + false + + + +Name of the context when accessing a relative +URL resource that belongs to a foreign +context. + + context + false + true + + + +Character encoding of the content at the input +resource. + + charEncoding + false + true + + + + + + The basic iteration tag, accepting many different + collection types and supporting subsetting and other + functionality + + forEach + org.apache.taglibs.standard.tag.rt.core.ForEachTag + org.apache.taglibs.standard.tei.ForEachTEI + JSP + + +Collection of items to iterate over. + + items + false + true + java.lang.Object + + + +If items specified: +Iteration begins at the item located at the +specified index. First item of the collection has +index 0. +If items not specified: +Iteration begins with index set at the value +specified. + + begin + false + true + int + + + +If items specified: +Iteration ends at the item located at the +specified index (inclusive). +If items not specified: +Iteration ends when index reaches the value +specified. + + end + false + true + int + + + +Iteration will only process every step items of +the collection, starting with the first one. + + step + false + true + int + + + +Name of the exported scoped variable for the +current item of the iteration. This scoped +variable has nested visibility. Its type depends +on the object of the underlying collection. + + var + false + false + + + +Name of the exported scoped variable for the +status of the iteration. Object exported is of type +javax.servlet.jsp.jstl.core.LoopTagStatus. This scoped variable has nested +visibility. + + varStatus + false + false + + + + + + Iterates over tokens, separated by the supplied delimeters + + forTokens + org.apache.taglibs.standard.tag.rt.core.ForTokensTag + JSP + + +String of tokens to iterate over. + + items + true + true + java.lang.String + + + +The set of delimiters (the characters that +separate the tokens in the string). + + delims + true + true + java.lang.String + + + +Iteration begins at the token located at the +specified index. First token has index 0. + + begin + false + true + int + + + +Iteration ends at the token located at the +specified index (inclusive). + + end + false + true + int + + + +Iteration will only process every step tokens +of the string, starting with the first one. + + step + false + true + int + + + +Name of the exported scoped variable for the +current item of the iteration. This scoped +variable has nested visibility. + + var + false + false + + + +Name of the exported scoped variable for the +status of the iteration. Object exported is of +type +javax.servlet.jsp.jstl.core.LoopTag +Status. This scoped variable has nested +visibility. + + varStatus + false + false + + + + + + Like <%= ... >, but for expressions. + + out + org.apache.taglibs.standard.tag.rt.core.OutTag + JSP + + +Expression to be evaluated. + + value + true + true + + + +Default value if the resulting value is null. + + default + false + true + + + +Determines whether characters <,>,&,'," in the +resulting string should be converted to their +corresponding character entity codes. Default value is +true. + + escapeXml + false + true + + + + + + + Subtag of <choose> that follows <when> tags + and runs only if all of the prior conditions evaluated to + 'false' + + otherwise + org.apache.taglibs.standard.tag.common.core.OtherwiseTag + JSP + + + + + Adds a parameter to a containing 'import' tag's URL. + + param + org.apache.taglibs.standard.tag.rt.core.ParamTag + JSP + + +Name of the query string parameter. + + name + true + true + + + +Value of the parameter. + + value + false + true + + + + + + Redirects to a new URL. + + redirect + org.apache.taglibs.standard.tag.rt.core.RedirectTag + JSP + + +The URL of the resource to redirect to. + + url + false + true + + + +Name of the context when redirecting to a relative URL +resource that belongs to a foreign context. + + context + false + true + + + + + + Removes a scoped variable (from a particular scope, if specified). + + remove + org.apache.taglibs.standard.tag.common.core.RemoveTag + empty + + +Name of the scoped variable to be removed. + + var + true + false + + + +Scope for var. + + scope + false + false + + + + + + Sets the result of an expression evaluation in a 'scope' + + set + org.apache.taglibs.standard.tag.rt.core.SetTag + JSP + + +Name of the exported scoped variable to hold the value +specified in the action. The type of the scoped variable is +whatever type the value expression evaluates to. + + var + false + false + + + +Expression to be evaluated. + + value + false + true + + + +Target object whose property will be set. Must evaluate to +a JavaBeans object with setter property property, or to a +java.util.Map object. + + target + false + true + + + +Name of the property to be set in the target object. + + property + false + true + + + +Scope for var. + + scope + false + false + + + + + + Creates a URL with optional query parameters. + + url + org.apache.taglibs.standard.tag.rt.core.UrlTag + JSP + + +Name of the exported scoped variable for the +processed url. The type of the scoped variable is +String. + + var + false + false + + + +Scope for var. + + scope + false + false + + + +URL to be processed. + + value + false + true + + + +Name of the context when specifying a relative URL +resource that belongs to a foreign context. + + context + false + true + + + + + + Subtag of <choose> that includes its body if its + condition evalutes to 'true' + + when + org.apache.taglibs.standard.tag.rt.core.WhenTag + JSP + + +The test condition that determines whether or not the +body content should be processed. + + test + true + true + boolean + + + + diff --git a/webapp/web/WEB-INF/tlds/database.tld b/webapp/web/WEB-INF/tlds/database.tld new file mode 100644 index 000000000..c21eb69d3 --- /dev/null +++ b/webapp/web/WEB-INF/tlds/database.tld @@ -0,0 +1,185 @@ + + + + + 1.0 + 1.1 + Sun Microsystems Press Tag library modified for Mann Library, Cornell + + + query + tags.jdbc.QueryTag + + JSP + + id + true + true + + + scope + false + true + + + update + false + true + + + + rows + tags.jdbc.RowsTag + JSP + + query + true + true + + + startRow + false + true + + + endRow + false + true + + + + columnNames + tags.jdbc.ColumnNamesTag + tags.jdbc.ColumnNamesTagInfo + JSP + + query + true + true + + + id + true + true + + + + columns + tags.jdbc.ColumnsTag + tags.jdbc.ColumnsTagInfo + JSP + + query + true + true + + + id + true + true + + + + select_columns + tags.jdbc.SelectColumnsTag + tags.jdbc.SelectColumnsTagInfo + JSP + + query + true + true + + + id + true + true + + + selectValue + true + true + + + + release + tags.jdbc.ReleaseTag + JSP + + query + true + true + + + diff --git a/webapp/web/WEB-INF/tlds/fn.tld b/webapp/web/WEB-INF/tlds/fn.tld new file mode 100644 index 000000000..12d4ca8e8 --- /dev/null +++ b/webapp/web/WEB-INF/tlds/fn.tld @@ -0,0 +1,207 @@ + + + + + JSTL 1.1 functions library + JSTL functions + 1.1 + fn + http://java.sun.com/jsp/jstl/functions + + + + Tests if an input string contains the specified substring. + + contains + org.apache.taglibs.standard.functions.Functions + boolean contains(java.lang.String, java.lang.String) + + <c:if test="${fn:contains(name, searchString)}"> + + + + + + Tests if an input string contains the specified substring in a case insensitive way. + + containsIgnoreCase + org.apache.taglibs.standard.functions.Functions + boolean containsIgnoreCase(java.lang.String, java.lang.String) + + <c:if test="${fn:containsIgnoreCase(name, searchString)}"> + + + + + + Tests if an input string ends with the specified suffix. + + endsWith + org.apache.taglibs.standard.functions.Functions + boolean endsWith(java.lang.String, java.lang.String) + + <c:if test="${fn:endsWith(filename, ".txt")}"> + + + + + + Escapes characters that could be interpreted as XML markup. + + escapeXml + org.apache.taglibs.standard.functions.Functions + java.lang.String escapeXml(java.lang.String) + + ${fn:escapeXml(param:info)} + + + + + + Returns the index withing a string of the first occurrence of a specified substring. + + indexOf + org.apache.taglibs.standard.functions.Functions + int indexOf(java.lang.String, java.lang.String) + + ${fn:indexOf(name, "-")} + + + + + + Joins all elements of an array into a string. + + join + org.apache.taglibs.standard.functions.Functions + java.lang.String join(java.lang.String[], java.lang.String) + + ${fn:join(array, ";")} + + + + + + Returns the number of items in a collection, or the number of characters in a string. + + length + org.apache.taglibs.standard.functions.Functions + int length(java.lang.Object) + + You have ${fn:length(shoppingCart.products)} in your shopping cart. + + + + + + Returns a string resulting from replacing in an input string all occurrences + of a "before" string into an "after" substring. + + replace + org.apache.taglibs.standard.functions.Functions + java.lang.String replace(java.lang.String, java.lang.String, java.lang.String) + + ${fn:replace(text, "-", "•")} + + + + + + Splits a string into an array of substrings. + + split + org.apache.taglibs.standard.functions.Functions + java.lang.String[] split(java.lang.String, java.lang.String) + + ${fn:split(customerNames, ";")} + + + + + + Tests if an input string starts with the specified prefix. + + startsWith + org.apache.taglibs.standard.functions.Functions + boolean startsWith(java.lang.String, java.lang.String) + + <c:if test="${fn:startsWith(product.id, "100-")}"> + + + + + + Returns a subset of a string. + + substring + org.apache.taglibs.standard.functions.Functions + java.lang.String substring(java.lang.String, int, int) + + P.O. Box: ${fn:substring(zip, 6, -1)} + + + + + + Returns a subset of a string following a specific substring. + + substringAfter + org.apache.taglibs.standard.functions.Functions + java.lang.String substringAfter(java.lang.String, java.lang.String) + + P.O. Box: ${fn:substringAfter(zip, "-")} + + + + + + Returns a subset of a string before a specific substring. + + substringBefore + org.apache.taglibs.standard.functions.Functions + java.lang.String substringBefore(java.lang.String, java.lang.String) + + Zip (without P.O. Box): ${fn:substringBefore(zip, "-")} + + + + + + Converts all of the characters of a string to lower case. + + toLowerCase + org.apache.taglibs.standard.functions.Functions + java.lang.String toLowerCase(java.lang.String) + + Product name: ${fn.toLowerCase(product.name)} + + + + + + Converts all of the characters of a string to upper case. + + toUpperCase + org.apache.taglibs.standard.functions.Functions + java.lang.String toUpperCase(java.lang.String) + + Product name: ${fn.UpperCase(product.name)} + + + + + + Removes white spaces from both ends of a string. + + trim + org.apache.taglibs.standard.functions.Functions + java.lang.String trim(java.lang.String) + + Name: ${fn.trim(name)} + + + + diff --git a/webapp/web/WEB-INF/tlds/form.tld b/webapp/web/WEB-INF/tlds/form.tld new file mode 100644 index 000000000..666c487aa --- /dev/null +++ b/webapp/web/WEB-INF/tlds/form.tld @@ -0,0 +1,66 @@ + + + + + 1.0 + 1.1 + Vitro Editing Form Library + + This tag library contains tags for constructing vitro + editing forms. The tag names shadow html elements + but provide additional attributes for specifying + how dynamic content should be retrieved from persistent + storage. + + + + option + edu.cornell.mannlib.vedit.tags.OptionTag + empty + + name + false + true + + + + + value + edu.cornell.mannlib.vedit.tags.ValueTag + empty + + name + false + true + + + + + dynamicFields + edu.cornell.mannlib.vedit.tags.DynamicFieldsTag + empty + + type + true + true + + + usePage + true + true + + + + + error + edu.cornell.mannlib.vedit.tags.ErrorTag + empty + + name + false + true + + + + diff --git a/webapp/web/WEB-INF/tlds/sparqltag.tld b/webapp/web/WEB-INF/tlds/sparqltag.tld new file mode 100644 index 000000000..5683802fb --- /dev/null +++ b/webapp/web/WEB-INF/tlds/sparqltag.tld @@ -0,0 +1,279 @@ + + + + + + + SPARQL JSP taglib + 1.0 + sparql + http://djpowell.net/tmp/sparql-tag/0.1/ + + + + + + SPARQL container tag.

+

This tag must be placed around sparql:select tags to + ensure that the live ResultSet's gets closed, + when this tag goes out of scope. + ]]> + + SPARQL container tag + sparql + net.djpowell.sparqltag.SparqlTag + scriptless + + + + + + + Obtains a lock or transaction on a model until the tag is closed. + + SPARQL lock tag + lock + net.djpowell.sparqltag.LockTag + net.djpowell.sparqltag.LockTagInfo + scriptless + + + The model to lock, or execute in a transaction + model + true + true + com.hp.hpl.jena.rdf.model.Model + + + + + Indicates whether transactions should be used instead of + critical sections. + + transactions + + false + true + java.lang.String + + + + + If critical sections are being used, indicates whether a + read lock is sufficient, or whether a write-lock is required. + The default is true, meaning a read-lock. + + readonly + + false + true + java.lang.String + + + + + + + + SPARQL load tag. Convenience tag for creating a new model from an RDF/XML URI. + SPARQL load tag + load + net.djpowell.sparqltag.LoadTag + net.djpowell.sparqltag.LoadTagInfo + empty + + + var + com.hp.hpl.jena.rdf.model.Model + AT_END + + + + + var + true + true + java.lang.String + + + + + uri + true + true + java.lang.String + + + + + + + + SPARQL ask tag. (Must be nested inside sparql:sparql) + SPARQL ask tag + ask + net.djpowell.sparqltag.AskTag + tagdependent + + + + var + java.lang.Boolean + AT_END + + + + + model + true + true + com.hp.hpl.jena.rdf.model.Model + + + + + var + true + false + java.lang.String + + + true + + + + + + + + + + + + SPARQL construct tag. (Must be nested inside sparql:sparql) + SPARQL construct tag + construct + net.djpowell.sparqltag.ConstructTag + tagdependent + + + var + com.hp.hpl.jena.rdf.model.Model + AT_END + + + + + model + true + false + com.hp.hpl.jena.rdf.model.Model + + + + + var + true + true + java.lang.String + + + true + + + + + + + + + + + SPARQL describe tag. (Must be nested inside sparql:sparql) + SPARQL describe tag + describe + net.djpowell.sparqltag.DescribeTag + tagdependent + + + var + com.hp.hpl.jena.rdf.model.Model + AT_END + + + + + model + true + true + com.hp.hpl.jena.rdf.model.Model + + + + + var + true + false + java.lang.String + + + true + + + + + + + + + + + + SPARQL select tag. (Must be nested inside sparql:sparql) + SPARQL select tag + select + net.djpowell.sparqltag.SelectTag + tagdependent + + + var + net.djpowell.sparqltag.SelectTag.RSWrapper + + AT_END + + + + + model + true + true + com.hp.hpl.jena.rdf.model.Model + + + + + var + true + true + java.lang.String + + + true + + + + + + + + + + diff --git a/webapp/web/WEB-INF/tlds/taglibs-mailer.tld b/webapp/web/WEB-INF/tlds/taglibs-mailer.tld new file mode 100644 index 000000000..68d74d4f7 --- /dev/null +++ b/webapp/web/WEB-INF/tlds/taglibs-mailer.tld @@ -0,0 +1,254 @@ + + + + + 1.1 + 1.1 + mailer + http://jakarta.apache.org/taglibs/mailer-1.1 + This custom tag library is used to send e-mail.E-mail can be sent in three ways. The first way requires the name of the + SMTP host to use. The second requires the name of a JNDI Resource for a + JavaMail Session. The third requires the name of a JNDI Resource for a + JavaMail MimePartDataSource. Refer to your servlet container documentation + to determine which of these three methods you should use. During the + creation of an e-mail message, the addresses are checked for the correct + format. After the e-mail message has been created the send tag spawns a + thread to send the message in the background so that the user does not have + to wait for the SMTP host if it is busy. + +<!-- Create a message by entering the name of the SMTP host. --> +<!-- The default for this attribute is localhost; for a host other --> +<!-- than localhost supply it's name with the server attribute --> +<!-- as in the example below. The body of the e-mail is supplied in the --> +<!-- message tag. The send tag is necessary to send the message. --> +<mt:mail server="home.net" to="foo@home.net" +from="bar@home.net" subject="mail taglib"> + <mt:message>[body of message]</mt:message> + <mt:send/> +</mt:mail> + +<!-- Using a JNDI named JavaMail Session object defined by the --> +<!-- session attribute. --> +<mt:mail session="java:/comp/env/session" to="foo@home.net" +from="bar@home.net" subject="mail taglib"> + <mt:message>[body of message]</mt:message> + <mt:send/> +</mt:mail> + +<!-- Or using a JNDI named JavaMail MimePartDataSource object --> +<!-- defined by mimeMessage attribute. --> +<mt:mail mimeMessage="java:/comp/env/message" to="foo@home.net" +from="bar@home.net" subject="mail taglib"> + <mt:message>[body of message]</mt:message> + <mt:send/> +</mt:mail> +How e-mail is delivered depends on the JavaMail SMTP host settings. The + JavaMail SMTP host can be configured by your Servlet Container so that + bounced or undeliverable e-mails are returned to the sender by setting the + folowing properties.NameTypeDescriptionmail.smtp.dsn.notifyStringProperty determines if the user will be notified of undeliverable mail. + Either NEVER, or some combination of SUCCESS, FAILURE, and DELAY + (separated by commas). + mail.smtp.dsn.retStringDetermines what part of the undeliverable message will be returned in + the message to the sender. Either FULL or HDRS. + mail.smtp.sendpartialboolean + If set to true, and a message has some valid and some invalid addresses, + send the message anyway, reporting the partial failure with a + SendFailedException. If set to false (the default), the message is not + sent to any of the recipients if there is an invalid recipient address. + + + mail + org.apache.taglibs.mailer.MailTag + JSP + + server + no + yes + + + session + no + no + + + mimeMessage + no + no + + + authenticate + no + no + + + user + no + yes + + + password + no + yes + + + to + no + no + + + replyTo + no + no + + + from + no + no + + + cc + no + no + + + bcc + no + no + + + subject + no + no + + + + server + org.apache.taglibs.mailer.ServerTag + JSP + + + message + org.apache.taglibs.mailer.MessageTag + JSP + + type + no + no + + + + header + org.apache.taglibs.mailer.HeaderTag + JSP + + name + yes + no + + + value + no + no + + + + setrecipient + org.apache.taglibs.mailer.SetRecipientTag + JSP + + type + yes + no + + + address + no + no + + + + addrecipient + org.apache.taglibs.mailer.AddRecipientTag + JSP + + type + yes + no + + + address + no + no + + + + replyto + org.apache.taglibs.mailer.ReplyToTag + JSP + + + from + org.apache.taglibs.mailer.FromTag + JSP + + + attach + org.apache.taglibs.mailer.AttachTag + JSP + + file + no + no + + + url + no + no + + + type + no + no + + + + subject + org.apache.taglibs.mailer.SubjectTag + JSP + + + send + org.apache.taglibs.mailer.SendTag + JSP + + + error + org.apache.taglibs.mailer.ErrorTag + org.apache.taglibs.mailer.ErrorTEI + JSP + + id + yes + no + + + + + + + + + + + + + + + + + + + + + + diff --git a/webapp/web/WEB-INF/tlds/taglibs-random.tld b/webapp/web/WEB-INF/tlds/taglibs-random.tld new file mode 100644 index 000000000..bf0a52297 --- /dev/null +++ b/webapp/web/WEB-INF/tlds/taglibs-random.tld @@ -0,0 +1,88 @@ + + + + + 1.0.2 + 1.1 + random + http://jakarta.apache.org/taglibs/random-1.0 + + The Random tag library creates random strings and random numbers. You may + specify a set of allowable characters as well as the length for randomly + generated strings. You may specify a range of allowable integers or a + random floating point number between zero and one for randomly generated + numbers. + + string + org.apache.taglibs.random.RandomStrgTag + org.apache.taglibs.random.RandomStrgTEI + Empty + + id + yes + no + + + length + no + no + + + map + no + no + + + charset + no + no + + + algorithm + no + no + + + provider + no + no + + + + number + org.apache.taglibs.random.RandomNumTag + org.apache.taglibs.random.RandomNumTEI + Empty + + id + yes + no + + + range + no + no + + + algorithm + no + no + + + provider + no + no + + + + + + + + + + + + + + diff --git a/webapp/web/WEB-INF/tlds/taglibs-string.tld b/webapp/web/WEB-INF/tlds/taglibs-string.tld new file mode 100644 index 000000000..f22ea31f8 --- /dev/null +++ b/webapp/web/WEB-INF/tlds/taglibs-string.tld @@ -0,0 +1,743 @@ + + + + + 1.1.0 + 1.1 + string + http://jakarta.apache.org/taglibs/string-1.1 + + The String taglibrary provides a host of tags for manipulating + java.lang.Strings. The style is that the String to act upon is the + body of the tag, and attributes are used as parameters for the + manipulation. + + + length + org.apache.taglibs.string.LengthTag + JSP + + var + false + true + + + + capitalize + org.apache.taglibs.string.CapitalizeTag + JSP + + var + false + true + + + + uncapitalize + org.apache.taglibs.string.UncapitalizeTag + JSP + + var + false + true + + + + upperCase + org.apache.taglibs.string.UpperCaseTag + JSP + + var + false + true + + + + lowerCase + org.apache.taglibs.string.LowerCaseTag + JSP + + var + false + true + + + + trim + org.apache.taglibs.string.TrimTag + JSP + + var + false + true + + + + chop + org.apache.taglibs.string.ChopTag + JSP + + var + false + true + + + + chopNewline + org.apache.taglibs.string.ChopNewlineTag + JSP + + var + false + true + + + + escape + org.apache.taglibs.string.EscapeTag + JSP + + var + false + true + + + + reverse + org.apache.taglibs.string.ReverseTag + JSP + + var + false + true + + + + swapCase + org.apache.taglibs.string.SwapCaseTag + JSP + + var + false + true + + + + soundex + org.apache.taglibs.string.SoundexTag + JSP + + var + false + true + + + + metaphone + org.apache.taglibs.string.MetaphoneTag + JSP + + var + false + true + + + + quoteRegexp + org.apache.taglibs.string.QuoteRegexpTag + JSP + + var + false + true + + + + capitalizeAllWords + org.apache.taglibs.string.CapitalizeAllWordsTag + JSP + + var + false + true + + + + removeXml + org.apache.taglibs.string.RemoveXmlTag + JSP + + var + false + true + + + + encodeUrl + org.apache.taglibs.string.EncodeUrlTag + JSP + + var + false + true + + + + decodeUrl + org.apache.taglibs.string.DecodeUrlTag + JSP + + var + false + true + + + + count + org.apache.taglibs.string.CountTag + JSP + + var + false + true + + + set + true + true + + + + delete + org.apache.taglibs.string.DeleteTag + JSP + + var + false + true + + + set + true + true + + + + squeeze + org.apache.taglibs.string.SqueezeTag + JSP + + var + false + true + + + set + true + true + + + + center + org.apache.taglibs.string.CenterTag + JSP + + var + false + true + + + delimiter + false + true + + + width + true + true + + + + rightPad + org.apache.taglibs.string.RightPadTag + JSP + + var + false + true + + + delimiter + false + true + + + width + true + true + + + + leftPad + org.apache.taglibs.string.LeftPadTag + JSP + + var + false + true + + + delimiter + false + true + + + width + true + true + + + + chomp + org.apache.taglibs.string.ChompTag + JSP + + var + false + true + + + delimiter + false + true + + + + getChomp + org.apache.taglibs.string.GetChompTag + JSP + + var + false + true + + + delimiter + false + true + + + + prechomp + org.apache.taglibs.string.PrechompTag + JSP + + var + false + true + + + delimiter + false + true + + + + getPrechomp + org.apache.taglibs.string.GetPrechompTag + JSP + + var + false + true + + + delimiter + false + true + + + + strip + org.apache.taglibs.string.StripTag + JSP + + var + false + true + + + delimiter + false + true + + + + stripEnd + org.apache.taglibs.string.StripEndTag + JSP + + var + false + true + + + delimiter + false + true + + + + stripStart + org.apache.taglibs.string.StripStartTag + JSP + + var + false + true + + + delimiter + false + true + + + + reverseDelimitedString + org.apache.taglibs.string.ReverseDelimitedStringTag + JSP + + var + false + true + + + delimiter + false + true + + + + overlay + org.apache.taglibs.string.OverlayTag + JSP + + var + false + true + + + with + true + true + + + start + true + true + + + end + true + true + + + + substring + org.apache.taglibs.string.SubstringTag + JSP + + var + false + true + + + start + false + true + + + end + false + true + + + + repeat + org.apache.taglibs.string.RepeatTag + JSP + + var + false + true + + + count + true + true + + + + wordWrap + org.apache.taglibs.string.WordWrapTag + JSP + + var + false + true + + + width + false + true + + + delimiter + false + true + + + split + false + true + + + delimiterInside + false + false + + + + nestedString + org.apache.taglibs.string.NestedStringTag + JSP + + var + false + true + + + open + true + true + + + close + false + true + + + + countMatches + org.apache.taglibs.string.CountMatchesTag + JSP + + var + false + true + + + substring + true + true + + + + default + org.apache.taglibs.string.DefaultTag + JSP + + var + false + true + + + value + false + true + + + default + false + true + + + + replace + org.apache.taglibs.string.ReplaceTag + JSP + + var + false + true + + + replace + true + true + + + with + true + true + + + count + false + true + + + newlineToken + false + true + + + carriageToken + false + true + + + + randomString + org.apache.taglibs.string.RandomStringTag + JSP + + var + false + true + + + count + true + true + + + start + false + true + + + end + false + true + + + type + false + true + + + + left + org.apache.taglibs.string.LeftTag + JSP + + var + false + true + + + count + true + true + + + + right + org.apache.taglibs.string.RightTag + JSP + + var + false + true + + + count + true + true + + + + mid + org.apache.taglibs.string.MidTag + JSP + + var + false + true + + + start + false + true + + + count + true + true + + + + truncateNicely + org.apache.taglibs.string.TruncateNicelyTag + JSP + + var + false + true + + + lower + false + true + + + upper + false + true + + + appendToEnd + false + true + + + + join + org.apache.taglibs.string.JoinTag + EMPTY + + items + true + true + + + separator + false + true + + + + split + org.apache.taglibs.string.SplitTag + JSP + + separator + true + true + + + var + true + true + + + + + + + + + + + diff --git a/webapp/web/WEB-INF/tlds/vitroForm.tld b/webapp/web/WEB-INF/tlds/vitroForm.tld new file mode 100644 index 000000000..7df1377f0 --- /dev/null +++ b/webapp/web/WEB-INF/tlds/vitroForm.tld @@ -0,0 +1,222 @@ + + + + + + + SPARQL JSP taglib + 1.0 + + Vitro DAO access Form Library + + + + optionsForProperty + Options For Property + + Create the option elements for a specified subject and predicate. + + edu.cornell.mannlib.vitro.webapp.web.jsptags.OptionsForPropertyTag + empty + + subjectUri + true + true + + + predicateUri + true + true + + + selectedUri + false + true + + + + + + optionsForVClass + Options For VClass + + Create the option elements for a specified vitro class. + + edu.cornell.mannlib.vitro.webapp.web.jsptags.OptionsForClassTag + empty + + classUri + true + true + + + selectedUri + false + true + + + + + + option + Options for Form Field + + Create the option elements for a specified field using information in the + editConfiguration to build the list and the editSubmission to mark one + of the options as selected. + + edu.cornell.mannlib.vitro.webapp.web.jsptags.Options + empty + + name + true + true + + + + + jsonset + edu.cornell.mannlib.vitro.webapp.web.jsptags.JsonSet + scriptless + + var + true + true + + + + + value + value for a Form Field + + If there is a value in a edit submission object that matches the name, + Then output that value. otherwise, output nothing + + edu.cornell.mannlib.vitro.webapp.web.jsptags.Value + empty + + name + true + true + + + + + + errorMessage + errorMessage value for a Form Field + + If there is a value in a edit submission.validation object that matches the name, + Then output that value. otherwise, output nothing + + edu.cornell.mannlib.vitro.webapp.web.jsptags.ErrorMessage + empty + + name + true + true + + + + + input + Input Element Formatting + + Format a form input element of a specified element type + + edu.cornell.mannlib.vitro.webapp.web.jsptags.InputElementFormattingTag + empty + + type + false + true + + + id + true + true + + + name + false + true + + + label + false + true + + + labelClass + false + true + + + cssClass + false + true + + + value + false + true + + + error + false + true + + + size + false + true + + + rows + false + true + + + cols + false + true + + + multiple + false + true + + + listMarkup + false + true + + + cancel + false + true + + + cancelLabel + false + true + + + cancelUrl + false + true + + + disabled + false + true + + + + \ No newline at end of file